Model setup
This section describes all the options and features that can be used to set up a model. For more detailed information consult the API documentation.
Each structure covered in this section can be constructed and passed to the IncompressibleModel
constructor. For examples of model construction, see the examples. The verification experiments provide more advanced examples.
For reference, here are all the option or keyword arguments that can be passed to IncompressibleModel
. See the different sections on the sidebar for more details and examples for each keyword argument.
Oceananigans.Models.IncompressibleModel
— TypeIncompressibleModel(;
grid,
architecture = CPU(),
float_type = Float64,
tracers = (:T, :S),
closure = IsotropicDiffusivity(float_type, ν=ν₀, κ=κ₀),
clock = Clock{float_type}(0, 0),
buoyancy = SeawaterBuoyancy(float_type),
coriolis = nothing,
surface_waves = nothing,
forcing = ModelForcing(),
boundary_conditions = (u=UVelocityBoundaryConditions(grid),
v=VVelocityBoundaryConditions(grid),
w=WVelocityBoundaryConditions(grid)),
velocities = VelocityFields(architecture, grid, boundary_conditions),
pressures = PressureFields(architecture, grid, boundary_conditions),
diffusivities = DiffusivityFields(architecture, grid, tracernames(tracers), boundary_conditions, closure),
timestepper = :AdamsBashforth,
pressure_solver = PressureSolver(architecture, grid, PressureBoundaryConditions(grid))
)
Construct an incompressible Oceananigans.jl
model on grid
.
Keyword arguments
grid
: (required) The resolution and discrete geometry on whichmodel
is solved.architecture
:CPU()
orGPU()
. The computer architecture used to time-stepmodel
.float_type
:Float32
orFloat64
. The floating point type used formodel
data.closure
: The turbulence closure formodel
. SeeTurbulenceClosures
.buoyancy
: Buoyancy model parameters.coriolis
: Parameters for the background rotation rate of the model.forcing
: User-defined forcing functions that contribute to solution tendencies.boundary_conditions
: Named tuple containing field boundary conditions.