Multiphysics#
This subsection defines the multiphysics interface of Lethe and enables the solution of Auxiliary Physics in addition to traditional fluid dynamics simulations.
subsection multiphysics
set fluid dynamics = true
# Thermal physics
set heat transfer = false
set viscous dissipation = false
set thermal buoyancy force = false
# Tracer
set tracer = false
# Multiphase flow
# Conservative Level-Set method
set cls = false
# Cahn-Hilliard equations
set cahn hilliard = false
# Electromagnetics
set electromagnetics = false
set microwave heating = false
#Euler-Euler model for solid phase
set continuum solid dynamics = false
# Quadrature method of moments (requires QMOMKit)
set qmom = false
end
fluid dynamics: controls if the fluid dynamics are solved. This istrueby default and can be turned tofalseto enable calculation of an auxiliary physic only. When appropriate, this can decrease drastically the computation time.
Tip
fluid dynamics = false and heat transfer = true enables to solve the heat transfer equations with a large time step, with the fluid velocity being defined from the Initial Conditions.
heat transfer: controls if the heat transfer auxiliary physics are solved. This is an advection-diffusion equation.- When
set heat transfer = true, these optional parameters can be used: viscous dissipation: controls if the viscous dissipation is taken into account in the heat transfer equation.thermal buoyancy force: controls if the thermal buoyancy force is taken into account in the Navier-Stokes equations. The thermal buoyancy force is calculated using the Boussinesq approximation.
- When
See also
The heat transfer solver is used in the example Warming up a Viscous Fluid.
The
tracerparameter adds a passive tracer auxiliary physics. This is an advection-diffusion equation.
See also
The tracer solver is used in the example Tracer in Static Mixer.
CLS: enables multiphase flow simulations, with two fluids separated by a free surface, using the Conservative Level-Set method.See Conservative Level-Set (Multiphase Flow) for advanced CLS parameters, Initial Conditions for the definition of the CLS conditions and Physical properties - two phase simulations for the definition of the physical properties of both fluids.
See also
The CLS solver is used in the example Dam-Break.
The
cahn hilliardparameter enables multiphase flow simulations, with two fluids separated by a free surface, using the Cahn-Hilliard equations.See Cahn-Hilliard for advanced Cahn-Hilliard parameters, Initial Conditions for the definition of the Cahn-Hilliard conditions and Physical properties - two phase simulations for the definition of the physical properties of both fluids.
The
electromagneticsparameter enables the solution of the time-harmonic Maxwell equations.See Time-Harmonic Maxwell for advanced time-harmonic Maxwell parameters, Boundary Conditions - Multiphysics for the definition of the electromagnetic boundary conditions and Physical Properties for the definition of the physical properties of the medium.
With the unresolved CFD-DEM solvers (
lethe-fluid-vansandlethe-fluid-particles), the electromagnetic properties of the fluid region can account for the particles through an effective medium model. See Physical properties - Unresolved dispersed phase.When
set heat transfer = true, in addition to the electromagnetic solver, the optional parametermicrowave heatingcan be used to enable the calculation of the heat source due to the electromagnetic fields. Ifset microwave heating = true, the following heat source is calculated and added to the right-hand side of the heat transfer equation:\[Q_\text{em}=-\nabla \cdot \overline{\mathbf{S}} = \frac{1}{2}\sigma|\mathbf{E}|^2 + \frac{1}{2}\omega\varepsilon_0\varepsilon_\mathrm{im}|\mathbf{E}|^2 + \frac{1}{2}\omega\mu_0\mu_\mathrm{im}|\mathbf{H}|^2,\]where \(\overline{\mathbf{S}}\) is the time-averaged Poynting vector, \(\sigma\) is the conductivity, \(\varepsilon_0\) is the vacuum permittivity, \(\varepsilon_\mathrm{im}\) is the imaginary part of the relative permittivity, \(\mu_0\) is the vacuum permeability, \(\mu_\mathrm{im}\) is the imaginary part of the relative permeability, and \(\mathbf{E}\) and \(\mathbf{H}\) are the electric and magnetic fields, respectively.
See also
The electromagnetic solver can be used on its own, an example is available in Waveguide.
continuum solid dynamics: enables the solid phase of the Euler-Euler model, in which the particles are treated as an interpenetrating continuum described by a solid velocity and a solid volume fraction. It can only be enabled with a volume-averaged Navier-Stokes (VANS) solver.
Warning
The solid phase is under development. Its fields are allocated, written to the output files and checkpointed, but its equations are not solved yet.
qmom: enables the quadrature method of moments (QMOM) auxiliary physics, which transports user-defined scalars, together with the moments of the particle size distribution. The numbers of user-defined scalars and moments are set in theQMOMsubsection. The moments of particle size distributions, the reconstruction of the quadrature and the evolution of the moments in phase space are computed by the QMOMKit library, so Lethe must be compiled with-DLETHE_WITH_QMOMKIT=ON(see Regular Installation on Linux). Its parameters are described in Quadrature Method of Moments.
Warning
The QMOM physics is under development. Only the transport of the moments in physical space, with their source terms, is implemented: the scalars and the evolution of the moments in phase space are not available yet (see Quadrature Method of Moments).