![]() |
Lethe Open-Source Library version 1.2.0
Developer Guide
|
#include <navier_stokes_cls_assemblers.h>
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 > ©_data) override |
| virtual void | assemble_rhs (const NavierStokesScratchData< dim > &scratch_data, StabilizedMethodsTensorCopyData< dim > ©_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 |
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.
| dim | An integer that denotes the number of spatial dimensions |
Definition at line 122 of file navier_stokes_cls_assemblers.h.
|
inline |
Definition at line 125 of file navier_stokes_cls_assemblers.h.
References enable_darcy_multiply_by_density, and phase_change_parameters_vector.
|
overridevirtual |
assemble_matrix Assembles the matrix of: \(-\beta_D \mathbf{u}\).
| scratch_data | (see base class) |
| copy_data | (see base class) |
Implements PhysicsAssemblerBase< NavierStokesScratchData< dim >, StabilizedMethodsTensorCopyData< dim > >.
Definition at line 472 of file navier_stokes_cls_assemblers.cc.
References NavierStokesScratchData< dim >::density_0, NavierStokesScratchData< dim >::density_1, enable_darcy_multiply_by_density, NavierStokesScratchData< dim >::filtered_phase_values, NavierStokesScratchData< dim >::JxW, StabilizedMethodsTensorCopyData< dim >::local_matrix, NavierStokesScratchData< dim >::n_dofs, NavierStokesScratchData< dim >::n_q_points, phase_change_parameters_vector, NavierStokesScratchData< dim >::phi_u, StabilizedMethodsTensorCopyData< dim >::strong_jacobian, StabilizedMethodsTensorCopyData< dim >::strong_residual, NavierStokesScratchData< dim >::temperature_values, and NavierStokesScratchData< dim >::velocity_values.
|
overridevirtual |
assemble_rhs Assembles the weak form of: \(-\beta_D \mathbf{u} \)
| scratch_data | (see base class) |
| copy_data | (see base class) |
Implements PhysicsAssemblerBase< NavierStokesScratchData< dim >, StabilizedMethodsTensorCopyData< dim > >.
Definition at line 552 of file navier_stokes_cls_assemblers.cc.
References NavierStokesScratchData< dim >::density_0, NavierStokesScratchData< dim >::density_1, enable_darcy_multiply_by_density, NavierStokesScratchData< dim >::filtered_phase_values, NavierStokesScratchData< dim >::JxW, StabilizedMethodsTensorCopyData< dim >::local_rhs, NavierStokesScratchData< dim >::n_dofs, NavierStokesScratchData< dim >::n_q_points, phase_change_parameters_vector, NavierStokesScratchData< dim >::phi_u, StabilizedMethodsTensorCopyData< dim >::strong_residual, NavierStokesScratchData< dim >::temperature_values, and NavierStokesScratchData< dim >::velocity_values.
|
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.
|
private |
Definition at line 156 of file navier_stokes_cls_assemblers.h.