Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
PhaseChangeDarcyCLSAssembler< dim > Class Template Reference

#include <navier_stokes_cls_assemblers.h>

Inheritance diagram for PhaseChangeDarcyCLSAssembler< dim >:
[legend]

Public Member Functions

 PhaseChangeDarcyCLSAssembler (const std::vector< Parameters::PhaseChange > &phase_change_parameters_vector, const bool enable_darcy_multiply_by_density)
virtual void assemble_matrix (const NavierStokesScratchData< dim > &scratch_data, StabilizedMethodsTensorCopyData< dim > &copy_data) override
virtual void assemble_rhs (const NavierStokesScratchData< dim > &scratch_data, StabilizedMethodsTensorCopyData< dim > &copy_data) override
Public Member Functions inherited from PhysicsAssemblerBase< NavierStokesScratchData< dim >, StabilizedMethodsTensorCopyData< dim > >
virtual ~PhysicsAssemblerBase ()=default

Private Attributes

const std::vector< Parameters::PhaseChange > phase_change_parameters_vector
const bool enable_darcy_multiply_by_density

Detailed Description

template<int dim>
class PhaseChangeDarcyCLSAssembler< dim >

Assembles a phase change Darcy forcing term for a CLS two-fluid simulation. The term \(-\phi \beta_D \mathbf{u} \) is added to the right hand-side of the Navier-Stokes equations to prohibit the motion of a material. In the phase change model, the value of the \( \beta_D \) coefficient depends on the temperature field and the material (fluid) properties. Generally, this is used to impose the stasis in the solid phase. This generally leads to a better conditioning of the linear system than increasing the viscosity of the solid phase.

Template Parameters
dimAn integer that denotes the number of spatial dimensions

Definition at line 122 of file navier_stokes_cls_assemblers.h.

Constructor & Destructor Documentation

◆ PhaseChangeDarcyCLSAssembler()

template<int dim>
PhaseChangeDarcyCLSAssembler< dim >::PhaseChangeDarcyCLSAssembler ( const std::vector< Parameters::PhaseChange > & phase_change_parameters_vector,
const bool enable_darcy_multiply_by_density )
inline

Member Function Documentation

◆ assemble_matrix()

◆ assemble_rhs()

Member Data Documentation

◆ enable_darcy_multiply_by_density

template<int dim>
const bool PhaseChangeDarcyCLSAssembler< dim >::enable_darcy_multiply_by_density
private

Enable the multiplication of the Darcy force term ( \(\vec{F}_\mathrm{Darcy}\)) by the density for dimensional consistency when solving the pressure rather than the kinematic pressure in the momentum balance.

\[\vec{F}_\mathrm{Darcy} = \rho K \vec{u} \]

with \(\rho\) the density, \(K\) the Darcy penalty, and \(\vec{u}\) the velocity.

Definition at line 171 of file navier_stokes_cls_assemblers.h.

◆ phase_change_parameters_vector

template<int dim>
const std::vector<Parameters::PhaseChange> PhaseChangeDarcyCLSAssembler< dim >::phase_change_parameters_vector
private

Definition at line 156 of file navier_stokes_cls_assemblers.h.


The documentation for this class was generated from the following files: