The unit-system section¶
The unit-system section is used in combination with the
units keyword from the system section for defining custom
system of units.
When defining a custom unit system, the units keyword
is used to select the new system
and the unit-system section is defining the base units.
[system]
units = "new-system"
[unit-system]
name = "new-system"
length = [
1.0,
"bohr",
]
mass = [
9.81e-31,
"kg",
]
energy = [
1.0,
"kcal/mol",
]
charge = "e"
Note that the unit-system section is optional.
Keywords for the unit-system section¶
For the unit-system section the scale for each dimension is
specified using the keywords:
Keyword |
Description |
|---|---|
Specify the scale and base unit for the length dimension. |
|
Specify the scale and base unit for the mass dimension. |
|
Specify the scale and base unit for the energy dimension. |
|
Specify the base unit for the charge dimension |
Keyword length¶
The length keyword specifies the scale and base unit for
the length dimension. This is done on the form:
[unit-system]
length = [1.0, "baseunit"] # [scale, base unit]
For an overview of the possible base units, please see
the description in the manual section
describing units in PyRETIS.
Also, note that the 'baseunit' string is case-sensitive!
- Default
None. This keyword must be specified if the unit-system section is used.
Keyword mass¶
The mass keyword specifies the scale and base unit for
the mass dimension. This is done on the form:
[unit-system]
mass = [1.0, "baseunit"] # [scale, base unit]
For an overview of the possible base units, please see
the description in the manual section
describing units in PyRETIS.
Also, note that the 'baseunit' string is case-sensitive!
- Default
None. This keyword must be specified if the unit-system section is used.
Keyword energy¶
The energy keyword specifies the scale and base unit for
the energy dimension. This is done on the form:
[unit-system]
energy = [1.0, "baseunit"] # [scale, base unit]
For an overview of the possible base units, please see
the description in the manual section
describing units in PyRETIS.
Also, note that the 'baseunit' string is case-sensitive!
- Default
None. This keyword must be specified if the unit-system section is used.
Keyword charge¶
The charge keyword specifies base unit for
the charge dimension. This is done on the form:
[unit-system]
charge = "baseunit"
For an overview of the possible base units, please see
the description in the manual section
describing units in PyRETIS.
Also, note that the 'baseunit' string is case-sensitive!
- Default
None. This keyword must be specified if the unit-system section is used.