GiD - The personal pre and post processor
unit_magnitude
<unit_magnitude>
It can contain the following fields: <unit>
The parameters are as follows,
n - Name used to reference the field, especially when writing the .dat file.
pn - Label that will be visualized by the user. It can be translated.
default - Default unit for a specific magnitude.
SI_base -Unit based in the international system units for a specific magnitude.
active - It is the default unit shown in the user interface, for a specific magnitude.
Defining magnitudes and units
The attributes involved in any field of the .spd file are 'unit_magnitude' and 'units'.
- unit_magnitude: Its value relates to the name 'n' used to reference the unit field. Please see the table below for a complete list of all the names available.
- units: Its value is the default unit shown in the GUI, which could be changed, if desired.
Some functions are useful for writing data with units defined into the calculation file. For more information about this issue, see the section called Writing the input file for calculation.
Example:
<value n="ini_temp" pn="Initial temperature" v="20.0" unit_magnitude="Temp" units="°C"/>
Note: For instance, it is convenient to change magnitudes like unit_magnitude="F/L^2" by unit_magnitude="P".
The table below gives a summary of the names used for all unit magnitudes available.
pn | n | Unit by default |
Length | L | m |
Mass | M | kg |
Time | T | s |
Temperature | Temp | K |
Frequency | Frequency | Hz |
Force | F | N |
Pressure | P | Pa |
Energy | Energy | J |
Power | Power | W |
Angle | Angle | rad |
Solid_angle | Solid_angle | sr |
Velocity | Velocity | m/s |
Acceleration | Acceleration | m/s^2 |
Area | Area | m^2 |
Volume | Volume | m^3 |
Density | Density | kg/m^3 |
Electric current | Electric_current | A |
Amount of substance | Amount_of_substance | mol |
Luminous intensity | Luminous_intensity | cd |
Electric charge | Electric_charge | C |
Electric potential | Electric_potential | V |
Capacitance | Capacitance | F |
Electric resistance | Electric_resistance | ? |
Electric conductance | Electric_conductance | S |
Magnetic flux | Magnetic_flux | Wb |
Magnetic flux density | Magnetic_flux_density | T |
Inductance | Inductance | H |
Delta phi | DeltaPhi | Δφ |
Delta temperature | DeltaTemp | ΔK |
Luminous flux | Luminous_flux | lm |
Illuminance | Illuminance | lx |
KinematicViscosity | KinematicViscosity | m^2/s |
Viscosity | Viscosity | Pa*s |
Permeability | Permeability | m^2 |
The default magnitudes and conversion factors could be seen at the file scripts\customLib\customLib\units.xml
COPYRIGHT © 2022 · GID · CIMNE