How to turn off convection term in Oceananigans model #2667
-
I set up an initial buoyancy field, and considered the change law of the flow velocity in all directions under the action of the buoyancy field. For comparison, I need to ignore the convection term in the N-S equation, but don't know how to turn it off in the model. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
What about setting If you don't give any value for the buoyancy argument, it is set to |
Beta Was this translation helpful? Give feedback.
-
If by convection term you mean momentum advection in the NS, you can turn it off by specifying otherwise if you want to neglect the hydrostatic pressure effects in the NS equations due to the buoyancy field, @iuryt's solution is good! (take care that if you are using the |
Beta Was this translation helpful? Give feedback.
If by convection term you mean momentum advection in the NS, you can turn it off by specifying
advection = nothing
(in theNonhydrostaticModel
) andmometum_advection=nothing
(in theHydrostaticFreeSurfaceModel
) and the same to turn it off in the tracer advection-diffusion equation (this time specifytracer_advection=nothing
in either model)otherwise if you want to neglect the hydrostatic pressure effects in the NS equations due to the buoyancy field, @iuryt's solution is good! (take care that if you are using the
HydrostaticFreeSurfaceModel
the default buoyancy model is based a linear equation of state so you have to specifybuoyancy=nothing
)