![]() |
Lethe Open-Source Library version 1.2.0
Developer Guide
|
#include <navier_stokes_cls_assemblers.h>
Public Member Functions | |
| ThermalBuoyancyAssemblyCLS (const std::shared_ptr< SimulationControl > &simulation_control, const double reference_temperature) | |
| 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::shared_ptr< SimulationControl > | simulation_control |
| const double | reference_temperature |
Assembles the thermal buoyancy source term for CLS simulations. This assembler includes density explicitly in the buoyancy term since the CLS momentum equation is written as: \( \rho \frac{\partial \mathbf{u}}{\partial t} + \rho \mathbf{u} \cdot \nabla \mathbf{u} = ... \).
The weak form assembled is: \( -\rho \mathbf{g} \beta (T - T_0) \)
where \( \rho \) is the phase-indicator-weighted density.
| dim | An integer that denotes the number of spatial dimensions |
Definition at line 617 of file navier_stokes_cls_assemblers.h.
|
inline |
Definition at line 620 of file navier_stokes_cls_assemblers.h.
References reference_temperature, and simulation_control.
|
overridevirtual |
assemble_matrix Adds the buoyancy force to the strong residual used by the stabilization terms of the Jacobian. The force does not depend on the velocity or the pressure, so nothing is added to the local matrix.
| scratch_data | (see base class) |
| copy_data | (see base class) |
Implements PhysicsAssemblerBase< NavierStokesScratchData< dim >, StabilizedMethodsTensorCopyData< dim > >.
Definition at line 1485 of file navier_stokes_cls_assemblers.cc.
References NavierStokesScratchData< dim >::density_thermal_expansion, NavierStokesScratchData< dim >::force, NavierStokesScratchData< dim >::n_q_points, reference_temperature, StabilizedMethodsTensorCopyData< dim >::strong_residual, and NavierStokesScratchData< dim >::temperature_values.
|
overridevirtual |
assemble_rhs Assembles the weak form of: \(-\rho \mathbf{g} \beta (T - T_0)\)
| scratch_data | (see base class) |
| copy_data | (see base class) |
Implements PhysicsAssemblerBase< NavierStokesScratchData< dim >, StabilizedMethodsTensorCopyData< dim > >.
Definition at line 1506 of file navier_stokes_cls_assemblers.cc.
References NavierStokesScratchData< dim >::density_thermal_expansion, NavierStokesScratchData< dim >::force, NavierStokesScratchData< dim >::JxW, StabilizedMethodsTensorCopyData< dim >::local_rhs, NavierStokesScratchData< dim >::n_dofs, NavierStokesScratchData< dim >::n_q_points, NavierStokesScratchData< dim >::phi_u, reference_temperature, StabilizedMethodsTensorCopyData< dim >::strong_residual, and NavierStokesScratchData< dim >::temperature_values.
|
private |
Definition at line 650 of file navier_stokes_cls_assemblers.h.
|
private |
Definition at line 649 of file navier_stokes_cls_assemblers.h.