Difference between revisions of "Units"

From wiki.fine.cz
Jump to navigation Jump to search
m
 
(3 intermediate revisions by the same user not shown)
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, e. g. <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> , e. g. <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:


==Popis jednotek==
V úloze nebo v uložených datech je určen aktuálně používaný systém jednotek z následujících možností:
{| class="wikitable"
{| class="wikitable"
|+
|+
Unit Systems
Unit Systems
!Název
!Name
!XML
!XML
!Popis
!Description
|-
|-
|Metrický
|Metric
|<code>Metric</code>
|<sup>[[Legend of XML elements|[V]]]</sup> <code>Metric</code>
|Metrický systém jednotek používaný všude kromě USA
|Metric unit system used elsewhere in the World except the USA
|-
|-
|Imperiální
|Imperial / English
|<code>Imperial</code>
|<sup>[[Legend of XML elements|[V]]]</sup> <code>Imperial</code>
|Imperiální systém jednotek, palce, stopy, libry atd.
|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.
The unit is determined by the unit type (e.g. <code>Force/Length^2</code> and consists of one or more basic units (<code>Force</code>, <code>Length</code>). The special unit type is <code>Undefined</code>, for which the unit description is specified by the user.  
 
{| class="wikitable"
{| class="wikitable"
|+
|+
Unit Types
Unit Types
|-
|-
!UnitType
!UnitType
!UnitType
!UnitType
!UnitType
Line 33: Line 36:
|-
|-
|Undefined
|Undefined
|
|
|
|
|
Line 39: Line 43:
|Force
|Force
|Mass
|Mass
|DataCapacity
|-
|-
|Length^2
|Length^2
|Force*Length
|Force*Length
|Mass/Length^2
|Mass/Length^2
|
|-
|-
|Length^3
|Length^3
|Force*Length/Length
|Force*Length/Length
|Mass/Length^3
|Mass/Length^3
|
|-
|-
|Length^4
|Length^4
|Force*Length/Angle
|Force*Length/Angle
|Mass^0.5
|Mass^0.5
|
|-
|-
|Length^5
|Length^5
|Force*Length/Length/Angle
|Force*Length/Length/Angle
|1/Mass
|1/Mass
|
|-
|-
|Length^6
|Length^6
|Force*Length/Angle/Length
|Force*Length/Angle/Length
|1/Mass^0.5
|1/Mass^0.5
|
|-
|-
|Length/Length
|Length/Length
|Force*Length^2
|Force*Length^2
|Temp
|Temp
|
|-
|-
|Length/Time
|Length/Time
|Force/Length
|Force/Length
|ΔTemp
|ΔTemp
|
|-
|-
|Length/Time^2
|Length/Time^2
|Force/Length/Length
|Force/Length/Length
|Temp/Length
|Temp/Length
|
|-
|-
|Length^2/Length
|Length^2/Length
|Force/Length^2
|Force/Length^2
|1/ΔTemp
|1/ΔTemp
|
|-
|-
|Length^2/Length^2
|Length^2/Length^2
|Force/Length^3
|Force/Length^3
|Frequency
|Frequency
|
|-
|-
|Length^2/Force
|Length^2/Force
|Force/Length^4
|Force/Length^4
|Time
|Time
|
|-
|-
|Length^2/Time
|Length^2/Time
|Force/Angle
|Force/Angle
|1/Time
|1/Time
|
|-
|-
|Length^3/Length
|Length^3/Length
|Angle
|Angle
|Energy
|Energy
|
|-
|-
|Length^3/Length/Time
|Length^3/Length/Time
|Angle/Time
|Angle/Time
|Energy/Length^2
|Energy/Length^2
|
|-
|-
|Length^3/Time/Length
|Length^3/Time/Length
|Ratio
|Ratio
|Energy/Mass/ΔTemp
|Energy/Mass/ΔTemp
|
|-
|-
|Length^3/Time
|Length^3/Time
|Stress
|Stress
|Power
|Power
|
|-
|-
|Length^4/Length
|Length^4/Length
|Stress/Length
|Stress/Length
|Power/Length/ΔTemp
|Power/Length/ΔTemp
|
|-
|-
|1/Length
|1/Length
|Stress/Length^2
|Stress/Length^2
|Quantity
|Quantity
|
|-
|-
|1/Length^2
|1/Length^2
|Stress/Length^3
|Stress/Length^3
|Quantity/Length
|Quantity/Length
|
|-
|-
|1/Length^3
|1/Length^3
|Stress/Length^4
|Stress/Length^4
|Quantity/Length^2
|Quantity/Length^2
|
|-
|-
|AltitudeLength
|AltitudeLength
|1/Stress
|1/Stress
|1/Quantity
|1/Quantity
|
|}
|}
{| class="wikitable"
{| class="wikitable"
|+Základní jednotky
|+Basic Units
!Length
!Length
!Force
!Force
Line 138: Line 164:
!Power
!Power
!Quantity
!Quantity
!DataCapacity
|-
|-
|m
|m
Line 151: Line 178:
|W
|W
|piece
|piece
|B
|-
|-
|cm
|cm
Line 164: Line 192:
|kW
|kW
|
|
|kB
|-
|-
|mm
|mm
Line 177: Line 206:
|MW
|MW
|
|
|MB
|-
|-
|in
|in
Line 190: Line 220:
|
|
|
|
|GB
|-
|-
|dm
|dm
Line 203: Line 234:
|
|
|
|
|TB
|-
|-
|ft
|ft
Line 213: Line 245:
|
|
|week
|week
|
|
|
|
|
Line 226: Line 259:
|
|
|month
|month
|
|
|
|
|
Line 239: Line 273:
|
|
|year
|year
|
|
|
|
|
Line 248: Line 283:
|
|
|GPa
|GPa
|
|
|
|
|
Line 257: Line 293:
|}
|}


====Výjimky====
====Exceptions====
Pokud je typ jednotky <code>Force/Length^3</code>, popis se upraví pro následující kombinace základních jednotek
If the Unit Type is <code>Force/Length^3</code>, the description is adjusted for the following combinations of basic units:
 
{| class="wikitable"
{| class="wikitable"
!Force
!Force
Line 280: Line 317:
|kcf
|kcf
|}
|}
Pokud je typ jednotky <code>AltitudeLength</code>, přidá se k popisu jednotky " <code>n. m.</code>", tedy např. "m n. m."
If the Unit Type is <code>AltitudeLength</code>, the description is completed with "<code>n. m.</code>", e. g.  "<code>m n. m.</code>"

Latest revision as of 21:22, 25 June 2022

Unit specification in XML file

The unit type is written to the XML Template by writing according to the Unit types table, e. g. 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 | , e. g. 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:

Unit Systems
Name XML Description
Metric [V] Metric Metric unit system used elsewhere in the World except the USA
Imperial / English [V] Imperial Imperial (English) unit system, inches, feet, pounds etc.

The unit is determined by the unit type (e.g. Force/Length^2 and consists of one or more basic units (Force, Length). The special unit type is Undefined, for which the unit description is specified by the user.

Unit Types
UnitType UnitType UnitType UnitType
Undefined
Length Force Mass DataCapacity
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
Basic Units
Length Force Angle Ratio Stress Mass Temp Freq Time Energy Power Quantity DataCapacity
m MN deg fraction MPa kg DegCelsius Hz ms J W piece B
cm kN rad percent kPa q Kelvin kHz s kJ kW kB
mm N mrad permille Pa t DegFahrenheit MHz min MJ MW MB
in lbf grad psi lb hour GB
dm kip ksi kip_m day TB
ft psf week
km ksf month
mile tsf year
GPa

Exceptions

If the Unit Type is Force/Length^3, the description is adjusted for the following combinations of basic units:

Force Length Popis
lbf in pci
lbf ft pcf
kip in kci
kip ft kcf

If the Unit Type is AltitudeLength, the description is completed with "n. m.", e. g. "m n. m."