coord_adapt module reference
Regrid columns for the adaptive coordinate
Data Types
Control structure for adaptive coordinates (coord_adapt). |
Functions/Subroutines
Initialise an adapt_CS with parameters |
|
Clean up the coordinate control structure |
|
This subtroutine can be used to set the parameters for coord_adapt module |
|
Type Documentation
- type, public :: adapt_CS
Control structure for adaptive coordinates (coord_adapt).
- Parameters
nk
Nominal near-surface resolution [H ~> m or kg m-2]
coordinateResolution
Ratio of optimisation and diffusion timescales [nondim]
adaptTimeRatio
Nondimensional coefficient determining how much optimisation to apply [nondim]
adaptAlpha
Near-surface zooming depth [H ~> m or kg m-2]
adaptZoom
Near-surface zooming coefficient [nondim]
adaptZoomCoeff
Stratification-dependent diffusion coefficient [nondim]
adaptBuoyCoeff
Reference density difference for stratification-dependent diffusion [R ~> kg m-3]
adaptDrho0
If true, form a HYCOM1-like mixed layet by preventing interfaces from becoming shallower than the depths set by coordinateResolution
Functions/Subroutine Documentation
- subroutine init_coord_adapt(CS, nk, coordinateResolution, m_to_H, kg_m3_to_R)
Initialise an adapt_CS with parameters
- Parameters
CS
Unassociated pointer to hold the control structure
nk [in]
Number of layers in the grid
coordinateResolution [in]
Nominal near-surface resolution [m] or other units specified with m_to_H
m_to_H [in]
A conversion factor from m to the units of thicknesses, perhaps in units of [H m-1 ~> 1 or kg m-3]
kg_m3_to_R [in]
A conversion factor from kg m-3 to the units of density, perhaps in units of [R m3 kg-1 ~> 1]
- subroutine end_coord_adapt(CS)
Clean up the coordinate control structure
- Parameters
CS
The control structure for this module
- subroutine set_adapt_params(CS, adaptTimeRatio, adaptAlpha, adaptZoom, adaptZoomCoeff, adaptBuoyCoeff, adaptDrho0, adaptDoMin)
This subtroutine can be used to set the parameters for coord_adapt module
- Parameters
CS
The control structure for this module
adaptTimeRatio [in]
Ratio of optimisation and diffusion timescales [nondim]
adaptAlpha [in]
Nondimensional coefficient determining how much optimisation to apply [nondim]
adaptZoom [in]
Near-surface zooming depth [H ~> m or kg m-2]
adaptZoomCoeff [in]
Near-surface zooming coefficient [nondim]
adaptBuoyCoeff [in]
Stratification-dependent diffusion coefficient [nondim]
adaptDrho0 [in]
Reference density difference for stratification-dependent diffusion [R ~> kg m-3]
adaptDoMin [in]
If true, form a HYCOM1-like mixed layer by preventing interfaces from becoming shallower than the depths set by coordinateResolution
subroutine build_adapt_column(CS, G, GV, US, tv, i, j, zInt, tInt, sInt, h, nom_depth_H, zNext)
- Parameters
CS [in]
The control structure for this module
G [in]
The ocean's grid structure
GV [in]
The ocean's vertical grid structure
US [in]
A dimensional unit scaling type
tv [in]
A structure pointing to various thermodynamic variables
i [in]
The i-index of the column to work on
j [in]
The j-index of the column to work on
zInt [in]
Interface heights [H ~> m or kg m-2].
tInt [in]
Interface temperatures [C ~> degC]
sInt [in]
Interface salinities [S ~> ppt]
h [in]
Layer thicknesses [H ~> m or kg m-2]
nom_depth_H [in]
The bathymetric depth of this column relative to mean sea level or another locally valid reference height, converted to thickness units [H ~> m or kg m-2]
zNext [inout]
updated interface positions [H ~> m or kg m-2]