![]() |
Lethe Open-Source Library version 1.2.0
Developer Guide
|
#include <navier_stokes_assemblers.h>
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 > ©_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 |
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.
| dim | An integer that denotes the number of spatial dimensions |
Definition at line 721 of file navier_stokes_assemblers.h.
|
inline |
Definition at line 724 of file navier_stokes_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 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.
|
overridevirtual |
assemble_rhs Assembles the weak form of: \(-\mathbf{g} \times \alpha \times (T - T_0)\)
| scratch_data | (see base class) |
| copy_data | (see base class) |
Implements PhysicsAssemblerBase< NavierStokesScratchData< dim >, StabilizedMethodsTensorCopyData< dim > >.
Definition at line 1822 of file navier_stokes_assemblers.cc.
References 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, NavierStokesScratchData< dim >::temperature_values, and NavierStokesScratchData< dim >::thermal_expansion.
|
private |
Definition at line 754 of file navier_stokes_assemblers.h.
|
private |
Definition at line 753 of file navier_stokes_assemblers.h.