Provides an abstract derived type which can be subtyped in order to implement an equation of state.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(equation_of_state), | intent(in) | :: | this | |||
class(scalar_field), | intent(in) | :: | temperature | A field containing the temperature of the water |
||
class(scalar_field), | intent(in) | :: | salinity | A field containing the salinity of the water |
A field containing the density of the water
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(equation_of_state), | intent(in) | :: | this | |||
class(scalar_field), | intent(in) | :: | temperature | A field containing the temperature of the water |
||
class(scalar_field), | intent(in) | :: | d_temperature | A field containing the derivative of the temperature of the
water, in teh same direction as |
||
class(scalar_field), | intent(in) | :: | salinity | A field containing the salinity of the water |
||
class(scalar_field), | intent(in) | :: | d_salinity | A field containing the derivative of the salinity of the
water, in the same direction as |
||
integer, | intent(in) | :: | dir | The direction in which to take the derivative |
A field containing the derivative of the density of the
water in direction dir
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(equation_of_state), | intent(in) | :: | this | |||
class(scalar_field), | intent(in) | :: | temperature | |||
class(scalar_field), | intent(in) | :: | salinity |
An abstract type with a procedure for calculating water density from its temperature and salinity.
procedure(get_property), public :: water_density | Returns the water density for the given temperature and salinity. |
procedure(get_property_dx), public :: water_density_derivative | Returns the derivative of the water density for the given temperature and salinity. |
procedure(get_coef), public :: haline_contraction | Returns a (possibly approximated) haline contraction coefficient. |
procedure(get_coef), public :: thermal_contraction | Returns a (possibly approximated) therma contraction coefficient. |