Buoyancy as sum of tracers #2970
-
Hi all, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hi Raphael, an "easy" way to do this is to define your own
Note that the only function required for buoyancy calculation in the Navier-Stokes equations is You can then use this buoyancy in the model constructor
This might be a better solution than defining your own equation of state. This is because the machinery in place assumes that an equation of state requires a |
Beta Was this translation helpful? Give feedback.
-
Thanks @simone-silvestri, that's great! |
Beta Was this translation helpful? Give feedback.
Hi Raphael, an "easy" way to do this is to define your own
BuoyancyModel
following theBuoyancyTracer
struct.To do that you have to import and extend the functions that are found in
src/BuoyancyModels/buoyancy_tracer.jl
.For example, if you want your buoyancy to be the sum of 3 tracers