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

#include <navier_stokes_cls_assemblers.h>

Inheritance diagram for ThermalBuoyancyAssemblyCLS< dim >:
[legend]

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 > &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::shared_ptr< SimulationControl > simulation_control
const double reference_temperature

Detailed Description

template<int dim>
class ThermalBuoyancyAssemblyCLS< dim >

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.

Template Parameters
dimAn integer that denotes the number of spatial dimensions

Definition at line 617 of file navier_stokes_cls_assemblers.h.

Constructor & Destructor Documentation

◆ ThermalBuoyancyAssemblyCLS()

template<int dim>
ThermalBuoyancyAssemblyCLS< dim >::ThermalBuoyancyAssemblyCLS ( const std::shared_ptr< SimulationControl > & simulation_control,
const double reference_temperature )
inline

Definition at line 620 of file navier_stokes_cls_assemblers.h.

References reference_temperature, and simulation_control.

Member Function Documentation

◆ assemble_matrix()

template<int dim>
void ThermalBuoyancyAssemblyCLS< dim >::assemble_matrix ( const NavierStokesScratchData< dim > & scratch_data,
StabilizedMethodsTensorCopyData< dim > & copy_data )
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.

Parameters
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.

◆ assemble_rhs()

Member Data Documentation

◆ reference_temperature

template<int dim>
const double ThermalBuoyancyAssemblyCLS< dim >::reference_temperature
private

Definition at line 650 of file navier_stokes_cls_assemblers.h.

◆ simulation_control

template<int dim>
const std::shared_ptr<SimulationControl> ThermalBuoyancyAssemblyCLS< dim >::simulation_control
private

Definition at line 649 of file navier_stokes_cls_assemblers.h.


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