The constants definition file
The constants are defined in a file called constants.xml which is in the same directory as the program executable. The file's structure is as follows:
<Constants>
<Constant>
<Name>permeability</Name>
<Abbreviation>ยต0</Abbreviation>
<Unit>H/m</Unit>
<Value>1.25663706144e-6</Value>
</Constant>
<Constant>
<Name>speed of light</Name>
<Abbreviation>c</Abbreviation>
<Unit>m/s</Unit>
<Value>299792458</Value>
</Constant>
</Constants>
The number of Constant entries is theoretically unlimited. Their order defines the order in which they appear on the constants form. The current element names are self explaining, although I will most likely make them shorter, in order to decrease the file size. Note that the unit is not used in the application yet.
0 Comments:
Post a Comment
<< Home