mom_unit_scaling module reference¶
Provides a transparent unit rescaling type to facilitate dimensional consistency testing.
Data Types¶
Describes various unit conversion factors. |
Functions/Subroutines¶
Allocates and initializes the ocean model unit scaling type. |
|
Set the unit scaling factors for output to restart files to the unit scaling factors for this run. |
|
Deallocates a unit scaling structure. |
Detailed Description¶
Provides a transparent unit rescaling type to facilitate dimensional consistency testing.
Type Documentation¶
-
type
mom_unit_scaling/
unit_scale_type
¶ Describes various unit conversion factors.
- Type fields
%
m_to_z
[real] :: A constant that translates distances in meters to the units of depth.%
z_to_m
[real] :: A constant that translates distances in the units of depth to meters.%
m_to_l
[real] :: A constant that translates lengths in meters to the units of horizontal lengths.%
l_to_m
[real] :: A constant that translates lengths in the units of horizontal lengths to meters.%
s_to_t
[real] :: A constant that translates time intervals in seconds to the units of time.%
t_to_s
[real] :: A constant that translates the units of time to seconds.%
r_to_kg_m3
[real] :: A constant that translates the units of density to kilograms per meter cubed.%
kg_m3_to_r
[real] :: A constant that translates kilograms per meter cubed to the units of density.%
q_to_j_kg
[real] :: A constant that translates the units of enthalpy to Joules per kilogram.%
j_kg_to_q
[real] :: A constant that translates Joules per kilogram to the units of enthalpy.%
z_to_l
[real] :: Convert vertical distances to lateral lengths.%
l_to_z
[real] :: Convert lateral lengths to vertical distances.%
l_t_to_m_s
[real] :: Convert lateral velocities from L T-1 to m s-1.%
m_s_to_l_t
[real] :: Convert lateral velocities from m s-1 to L T-1.%
l_t2_to_m_s2
[real] :: Convert lateral accelerations from L T-2 to m s-2.%
z2_t_to_m2_s
[real] :: Convert vertical diffusivities from Z2 T-1 to m2 s-1.%
m2_s_to_z2_t
[real] :: Convert vertical diffusivities from m2 s-1 to Z2 T-1.%
w_m2_to_qrz_t
[real] :: Convert heat fluxes from W m-2 to Q R Z T-1.%
qrz_t_to_w_m2
[real] :: Convert heat fluxes from Q R Z T-1 to W m-2.%
rz_to_kg_m2
[real] :: Convert mass loads from R Z to kg m-2.%
kg_m2s_to_rz_t
[real] :: Convert mass fluxes from kg m-2 s-1 to R Z T-1.%
rz_t_to_kg_m2s
[real] :: Convert mass fluxes from R Z T-1 to kg m-2 s-1.%
rz3_t3_to_w_m2
[real] :: Convert turbulent kinetic energy fluxes from R Z3 T-3 to W m-2.%
w_m2_to_rz3_t3
[real] :: Convert turbulent kinetic energy fluxes from W m-2 to R Z3 T-3.%
rl2_t2_to_pa
[real] :: Convert pressures from R L2 T-2 to Pa.%
m_to_z_restart
[real] :: A copy of the m_to_Z that is used in restart files.%
m_to_l_restart
[real] :: A copy of the m_to_L that is used in restart files.%
s_to_t_restart
[real] :: A copy of the s_to_T that is used in restart files.%
kg_m3_to_r_restart
[real] :: A copy of the kg_m3_to_R that is used in restart files.%
j_kg_to_q_restart
[real] :: A copy of the J_kg_to_Q that is used in restart files.
Function/Subroutine Documentation¶
-
subroutine
mom_unit_scaling/
unit_scaling_init
(param_file, US)¶ Allocates and initializes the ocean model unit scaling type.
- Parameters
param_file :: [in] Parameter file handle/type
us :: A dimensional unit scaling type
- Call to
- Called from
mom_oda_driver_mod::init_oda
mom_ice_shelf::initialize_ice_shelf
-
subroutine
mom_unit_scaling/
fix_restart_unit_scaling
(US)¶ Set the unit scaling factors for output to restart files to the unit scaling factors for this run.
- Parameters
us :: [inout] A dimensional unit scaling type
- Called from
-
subroutine
mom_unit_scaling/
unit_scaling_end
(US)¶ Deallocates a unit scaling structure.
- Parameters
us :: A dimensional unit scaling type