Difference between revisions of "Units"
Petr.Bures (talk | contribs)  | 
				Petr.Bures (talk | contribs)   | 
				||
| Line 1: | Line 1: | ||
==Unit specification in XML file==  | ==Unit specification in XML file==  | ||
The unit type is written to the XML Template by writing according to the Unit types table, eg. <code>UnitType="Length^2/Force"</code>  | The <u>unit type</u> is written to the XML Template by writing according to the Unit types table, eg. <code>UnitType="Length^2/Force"</code>  | ||
The unit definition for the specified unit type is written to the [[Named Data Template|XML Template]] as a list of basic units separated by <code>|</code> , for example <code>UnitDefMetric="m|kN" UnitDefImperial="in|kip"</code>  | The <u>unit definition</u> for the specified unit type is written to the [[Named Data Template|XML Template]] as a list of basic units separated by <code>|</code> , for example <code>UnitDefMetric="m|kN" UnitDefImperial="in|kip"</code>  | ||
The unit for certain data is written to the [[Named Data Container|XML Data]] by taking text from the Unit Types table and adding an underscore and a specific unit to each base unit specification, eg. <code>Unit="Force_kN*Length_m/Angle_rad/Length_m"</code>  | The <u>unit</u> for certain data is written to the [[Named Data Container|XML Data]] by taking text from the Unit Types table and adding an underscore and a specific unit to each base unit specification, eg. <code>Unit="Force_kN*Length_m/Angle_rad/Length_m"</code>  | ||
==Units description==  | |||
The currently used Unit System is specified in the task or in the stored data from the following options:  | |||
{| class="wikitable"  | {| class="wikitable"  | ||
|+  | |+  | ||
Unit Systems  | Unit Systems  | ||
!  | !Name  | ||
!XML  | !XML  | ||
!  | !Description  | ||
|-  | |-  | ||
|  | |Metric  | ||
|<code>Metric</code>  | |<code>Metric</code>  | ||
|  | |Metric unit system used elsewhere in the World except the USA  | ||
|-  | |-  | ||
|  | |Imperial / English  | ||
|<code>Imperial</code>  | |<code>Imperial</code>  | ||
|  | |Imperial (English) unit system, inches, feet, pounds etc.  | ||
|}  | |}  | ||
Jednotka je určena typem jednotky (např. <code>Force/Length^2</code>) a skládá se z jedné či více základních jednotek (<code>Force</code>, <code>Length</code>). Speciální typ jednotky je <code>Undefined</code>, u něj se určuje popis jednotky uživatelsky.  | Jednotka je určena typem jednotky (např. <code>Force/Length^2</code>) a skládá se z jedné či více základních jednotek (<code>Force</code>, <code>Length</code>). Speciální typ jednotky je <code>Undefined</code>, u něj se určuje popis jednotky uživatelsky.  | ||
Revision as of 14:07, 21 March 2022
Unit specification in XML file
The unit type is written to the XML Template by writing according to the Unit types table, eg. UnitType="Length^2/Force"
The unit definition for the specified unit type is written to the XML Template as a list of basic units separated by | , for example UnitDefMetric="m|kN" UnitDefImperial="in|kip"
The unit for certain data is written to the XML Data by taking text from the Unit Types table and adding an underscore and a specific unit to each base unit specification, eg. Unit="Force_kN*Length_m/Angle_rad/Length_m"
Units description
The currently used Unit System is specified in the task or in the stored data from the following options:
| Name | XML | Description | 
|---|---|---|
| Metric | Metric
 | 
Metric unit system used elsewhere in the World except the USA | 
| Imperial / English | Imperial
 | 
Imperial (English) unit system, inches, feet, pounds etc. | 
Jednotka je určena typem jednotky (např. Force/Length^2) a skládá se z jedné či více základních jednotek (Force, Length). Speciální typ jednotky je Undefined, u něj se určuje popis jednotky uživatelsky.
| UnitType | UnitType | UnitType | 
|---|---|---|
| Undefined | ||
| Length | Force | Mass | 
| Length^2 | Force*Length | Mass/Length^2 | 
| Length^3 | Force*Length/Length | Mass/Length^3 | 
| Length^4 | Force*Length/Angle | Mass^0.5 | 
| Length^5 | Force*Length/Length/Angle | 1/Mass | 
| Length^6 | Force*Length/Angle/Length | 1/Mass^0.5 | 
| Length/Length | Force*Length^2 | Temp | 
| Length/Time | Force/Length | ΔTemp | 
| Length/Time^2 | Force/Length/Length | Temp/Length | 
| Length^2/Length | Force/Length^2 | 1/ΔTemp | 
| Length^2/Length^2 | Force/Length^3 | Frequency | 
| Length^2/Force | Force/Length^4 | Time | 
| Length^2/Time | Force/Angle | 1/Time | 
| Length^3/Length | Angle | Energy | 
| Length^3/Length/Time | Angle/Time | Energy/Length^2 | 
| Length^3/Time/Length | Ratio | Energy/Mass/ΔTemp | 
| Length^3/Time | Stress | Power | 
| Length^4/Length | Stress/Length | Power/Length/ΔTemp | 
| 1/Length | Stress/Length^2 | Quantity | 
| 1/Length^2 | Stress/Length^3 | Quantity/Length | 
| 1/Length^3 | Stress/Length^4 | Quantity/Length^2 | 
| AltitudeLength | 1/Stress | 1/Quantity | 
| Length | Force | Angle | Ratio | Stress | Mass | Temp | Freq | Time | Energy | Power | Quantity | 
|---|---|---|---|---|---|---|---|---|---|---|---|
| m | MN | deg | fraction | MPa | kg | DegCelsius | Hz | ms | J | W | piece | 
| cm | kN | rad | percent | kPa | q | Kelvin | kHz | s | kJ | kW | |
| mm | N | mrad | permille | Pa | t | DegFahrenheit | MHz | min | MJ | MW | |
| in | lbf | grad | psi | lb | hour | ||||||
| dm | kip | ksi | kip_m | day | |||||||
| ft | psf | week | |||||||||
| km | ksf | month | |||||||||
| mile | tsf | year | |||||||||
| GPa | 
Výjimky
Pokud je typ jednotky Force/Length^3, popis se upraví pro následující kombinace základních jednotek
| Force | Length | Popis | 
|---|---|---|
| lbf | in | pci | 
| lbf | ft | pcf | 
| kip | in | kci | 
| kip | ft | kcf | 
Pokud je typ jednotky AltitudeLength, přidá se k popisu jednotky " n. m.", tedy např. "m n. m."