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

#include <navier_stokes_assemblers.h>

Inheritance diagram for ThermalBuoyancyAssembly< dim >:
[legend]

Public Member Functions

 ThermalBuoyancyAssembly (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 ThermalBuoyancyAssembly< dim >

Class that assembles a thermal buoyancy forcing term using the Boussinesq approximation. For more information, read Chapter 10 of Transport phenomena by Bird et al., or "Boussinesq approximation (buoyancy)" page on Wikipedia.

Template Parameters
dimAn integer that denotes the number of spatial dimensions

Definition at line 721 of file navier_stokes_assemblers.h.

Constructor & Destructor Documentation

◆ ThermalBuoyancyAssembly()

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

Definition at line 724 of file navier_stokes_assemblers.h.

References reference_temperature, and simulation_control.

Member Function Documentation

◆ assemble_matrix()

template<int dim>
void ThermalBuoyancyAssembly< 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 1799 of file navier_stokes_assemblers.cc.

References NavierStokesScratchData< dim >::force, NavierStokesScratchData< dim >::n_q_points, reference_temperature, StabilizedMethodsTensorCopyData< dim >::strong_residual, NavierStokesScratchData< dim >::temperature_values, and NavierStokesScratchData< dim >::thermal_expansion.

◆ assemble_rhs()

Member Data Documentation

◆ reference_temperature

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

Definition at line 754 of file navier_stokes_assemblers.h.

◆ simulation_control

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

Definition at line 753 of file navier_stokes_assemblers.h.


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