gtool5 Fortran 90/95 Library 1.0.0-rc5
日本語
Loading...
Searching...
No Matches
dc_units::units Type Reference

More...

Public Attributes

real(dp) factor
 Scale factor
integer nelems
 Number of unit elements
character(token), dimension(:), pointer name
 Names of unit elements
character(token) offset
 Offset string (e.g., "@273.15")
real(dp), dimension(:), pointer power
 Powers (exponents) of unit elements

Detailed Description

Derived type for representing physical units

A physical unit is represented as a product of named unit elements with powers (exponents), plus an optional scaling factor and offset. For example, "m/s2" would have name=["m","s"], power=[1,-2], factor=1.

Definition at line 79 of file dc_units.f90.

Member Data Documentation

◆ factor

real(dp) dc_units::units::factor

Scale factor

Definition at line 80 of file dc_units.f90.

80 real(DP):: factor !< @en Scale factor @enden @ja スケール係数 @endja

◆ name

character(token), dimension(:), pointer dc_units::units::name

Names of unit elements

Definition at line 82 of file dc_units.f90.

82 character(TOKEN), pointer:: name(:) !< @en Names of unit elements @enden @ja 単位要素の名前 @endja

◆ nelems

integer dc_units::units::nelems

Number of unit elements

Definition at line 81 of file dc_units.f90.

81 integer:: nelems !< @en Number of unit elements @enden @ja 単位要素の数 @endja

◆ offset

character(token) dc_units::units::offset

Offset string (e.g., "@273.15")

Definition at line 83 of file dc_units.f90.

83 character(TOKEN):: offset !< @en Offset string (e.g., "@273.15") @enden @ja オフセット文字列 @endja

◆ power

real(dp), dimension(:), pointer dc_units::units::power

Powers (exponents) of unit elements

Definition at line 84 of file dc_units.f90.

84 real(DP), pointer:: power(:) !< @en Powers (exponents) of unit elements @enden @ja 単位要素のべき乗 @endja

The documentation for this type was generated from the following file: