gtool5 Fortran 90/95 Library 1.0.0-rc5
日本語
Loading...
Searching...
No Matches
Public Attributes | List of all members
dc_units::units Type Reference

More...

Public Attributes

real(dp) 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

Definition at line 80 of file dc_units.f90.

80 real(DP):: factor

◆ 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(:)

◆ nelems

integer dc_units::units::nelems

Number of unit elements

Definition at line 81 of file dc_units.f90.

81 integer:: nelems

◆ 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

◆ 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(:)

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