![]() |
Lethe Open-Source Library version 1.2.0
Developer Guide
|
#include <navier_stokes_assemblers.h>
Public Member Functions | |
| GLSNavierStokesAssemblerSDIRK (const std::shared_ptr< SimulationControl > &simulation_control) | |
| 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 |
Public Attributes | |
| const std::shared_ptr< SimulationControl > | simulation_control |
Class that assembles the transient term arising from SDIRK time integration for the Navier Stokes equations. For a given stage.
\[ i \]
, the following expression is assembled and treated implicitly:
\[ \frac{\mathbf{u}_i^* - \mathbf{u}_n}{h a_{ii}} - \sum_{j=0}^{i-1} \frac{a_{ij}}{a_{ii}} \mathbf{k}_j \]
where:
\[ \mathbf{u}_i^* \]
is the current stage solution,\[ \mathbf{u}_n \]
is the solution at the previous time step,\[ \mathbf{k}_j \]
coefficients are the solution increments at the previous stages,\[ h \]
is the time step size,\[ a_{ij} \), \( a_{ii} \]
are coefficients from the SDIRK Butcher tableau. These coefficients are given data by the method and constant for the entire simulation.| dim | An integer that denotes the number of spatial dimensions |
Definition at line 335 of file navier_stokes_assemblers.h.
|
inline |
Definition at line 338 of file navier_stokes_assemblers.h.
References simulation_control.
|
overridevirtual |
assemble_matrix Assembles the matrix
| scratch_data | (see base class) |
| copy_data | (see base class) |
Implements PhysicsAssemblerBase< NavierStokesScratchData< dim >, StabilizedMethodsTensorCopyData< dim > >.
Definition at line 1258 of file navier_stokes_assemblers.cc.
References SDIRKStageData::a_ij, NavierStokesScratchData< dim >::JxW, StabilizedMethodsTensorCopyData< dim >::local_matrix, NavierStokesScratchData< dim >::n_dofs, NavierStokesScratchData< dim >::n_q_points, NavierStokesScratchData< dim >::phi_u, NavierStokesScratchData< dim >::previous_velocity_values, NavierStokesScratchData< dim >::sdirk_stage_sum, NavierStokesScratchData< dim >::sdirk_table, simulation_control, StabilizedMethodsTensorCopyData< dim >::strong_jacobian, StabilizedMethodsTensorCopyData< dim >::strong_residual, velocity, and NavierStokesScratchData< dim >::velocity_values.
|
overridevirtual |
assemble_rhs Assembles the rhs
| scratch_data | (see base class) |
| copy_data | (see base class) |
Implements PhysicsAssemblerBase< NavierStokesScratchData< dim >, StabilizedMethodsTensorCopyData< dim > >.
Definition at line 1313 of file navier_stokes_assemblers.cc.
References SDIRKStageData::a_ij, NavierStokesScratchData< dim >::JxW, StabilizedMethodsTensorCopyData< dim >::local_rhs, NavierStokesScratchData< dim >::n_dofs, NavierStokesScratchData< dim >::n_q_points, NavierStokesScratchData< dim >::phi_u, NavierStokesScratchData< dim >::previous_velocity_values, NavierStokesScratchData< dim >::sdirk_stage_sum, NavierStokesScratchData< dim >::sdirk_table, simulation_control, StabilizedMethodsTensorCopyData< dim >::strong_residual, velocity, and NavierStokesScratchData< dim >::velocity_values.
| const std::shared_ptr<SimulationControl> GLSNavierStokesAssemblerSDIRK< dim >::simulation_control |
Definition at line 362 of file navier_stokes_assemblers.h.