pygetm.vertical_mixing module
- class pygetm.vertical_mixing.GOTM(path: None | PathLike[str] | str = None)[source]
Bases:
VerticalMixingCalculate the turbulent viscosity
numand diffusivitynuhusing the General Ocean Turbulence Model (GOTM).- advance(timestep: float, ustar_s: Array, ustar_b: Array, z0s: Array, z0b: Array, NN: Array, SS: Array)[source]
Update turbulent quantities and calculate turbulent diffusivity
nuhand turbulent viscositynum- Parameters:
timestep – time step (s)
ustar_s – surface friction velocity (m s-1)
ustar_b – bottom friction velocity (m s-1)
z0s – hydrodynamic surface roughness (m)
z0b – hydrodynamic bottom roughness (m)
NN – squared buoyancy frequency (s-2)
SS – squared shear frequency (s-2)
- class pygetm.vertical_mixing.VerticalMixing[source]
Bases:
objectBase class that provides the turbulent viscosity
numand diffusivitynuh. When using this class directly, viscosity and diffusivity are prescribed, not calculated. In this case, both default to zero; assign tonum/nuhor callnum.set/nuh.setto change this.