Velocity Source#
This subsection allows you to define velocity-dependent source terms. Two families of velocity source terms are supported. They enable the simulation of problems in a Lagrangian reference frame for which the Coriolis and centrifugal forces must be added or of problems including porous media.
Rotating Frame#
Rotating frame simulations use the following parameters:
subsection velocity source
set rotating frame type = none
set omega_x = 0
set omega_y = 0
set omega_z = 0
end
The
rotating frame typeparameter specifies the type of reference frame that is selected. The options arenonefor an Eulerian reference frame orsrffor a single rotating frame. By selectingsrfthe additional contributions of the centrifugal force and Coriolis force induced by the rotating movement are taken into account in the Navier-Stokes equations.The
omega_xparameter is a double representing the \(x\) component of the angular velocity of the reference frame.The
omega_yparameter is a double representing the \(y\) component of the angular velocity of the reference frame.The
omega_zparameter is a double representing the \(z\) component of the angular velocity of the reference frame.
Darcy Penalization#
A Darcy-like source term can be added to the simulation using the following parameters:
subsection velocity source
set Darcy type = none
set enable Darcy multiply by density = false
end
The
Darcy typeparameter specifies the type of Darcy penalization term to be applied to the Navier-Stokes equations. The options arenoneorphase_change. Thephase_changemodel uses the values of theDarcy penalty liquidandDarcy penalty solidset-up within thephase changesubsection of the Physical Properties.Caution
The phase change Darcy model does not currently have a Cahn-Hilliard implementation.
The
enable Darcy multiply by densityparameter enables the multiplication by the density within the Darcy force term (\(\boldsymbol{F}_\mathrm{Darcy}\)). This is for dimensional consistency when solving the pressure (\(p\)) rather than the kinematic pressure (\(p^* = p / \rho\), with \(\rho\) the density of the fluid) in the momentum equation. This parameter should be used when coupling of the CLS equation with the incompressible Navier-Stokes equations.\[\boldsymbol{F}_\mathrm{Darcy} = \left(\rho K\right)_\mathrm{eff} \boldsymbol{u}\]where
\(\left(\rho K\right)_\mathrm{eff} = (1-\phi)\rho_0 K_\mathrm{0} + \phi \rho_1 K_\mathrm{1}\) is the effective Darcy penalization coefficient. It corresponds to the weighted product of the Darcy penalty \(\left(K_i [=] T^{-1}\right)\) and the density \(\left(\rho_i[=] M L^{-3}\right)\) by the phase indicator (\(\phi\)). If the
phase_changemodel is enabled in a fluid, the Darcy penalty in this fluid is computed with the penalty values in the liquid (\(K_{i\mathrm{,l}}\)) and solid (\(K_{i\mathrm{,s}}\)), and the liquid fraction (\(\alpha_\mathrm{l}\)): \(K_i = \alpha_\mathrm{l}K_{i\mathrm{,l}} + (1-\alpha_\mathrm{l})K_{i\mathrm{,s}}\), and;\(\boldsymbol{u}\) is the velocity vector.