![]() |
Lethe Open-Source Library version 1.2.0
Developer Guide
|
#include <tracer_assemblers.h>
Public Member Functions | |
| TracerAssemblerReaction (const std::shared_ptr< SimulationControl > &simulation_control) | |
| virtual void | assemble_matrix (const TracerScratchData< dim > &scratch_data, StabilizedMethodsCopyData ©_data) override |
| virtual void | assemble_rhs (const TracerScratchData< dim > &scratch_data, StabilizedMethodsCopyData ©_data) override |
| Public Member Functions inherited from PhysicsAssemblerBase< TracerScratchData< dim >, StabilizedMethodsCopyData > | |
| virtual | ~PhysicsAssemblerBase ()=default |
Public Attributes | |
| const std::shared_ptr< SimulationControl > | simulation_control |
Class that assembles the reaction source term of the Tracer equation. It assembles the term: \( S = - R \= - k C \) Where C is the tracer concentration and k is a reaction rate prefactor that changes depending on the underlying model. For power law of base rate $\alpha$ and order $n$, the model is: \( S = - R \= - (\alpha C^(n-1)) C \).
| dim | An integer that denotes the number of spatial dimensions |
Definition at line 267 of file tracer_assemblers.h.
|
inline |
Definition at line 270 of file tracer_assemblers.h.
References simulation_control.
|
overridevirtual |
Assembles the matrix.
| [in] | scratch_data | (see base class) |
| [in,out] | copy_data | (see base class) |
Implements PhysicsAssemblerBase< TracerScratchData< dim >, StabilizedMethodsCopyData >.
Definition at line 763 of file tracer_assemblers.cc.
References TracerScratchData< dim >::grad_tracer_reaction_prefactor, TracerScratchData< dim >::JxW, StabilizedMethodsCopyData::local_matrix, TracerScratchData< dim >::n_dofs, TracerScratchData< dim >::n_q_points, TracerScratchData< dim >::phi, StabilizedMethodsCopyData::strong_jacobian, TracerScratchData< dim >::tracer_reaction_prefactor, and TracerScratchData< dim >::tracer_values.
|
overridevirtual |
Assembles the rhs.
| [in] | scratch_data | (see base class) |
| [in,out] | copy_data | (see base class) |
Implements PhysicsAssemblerBase< TracerScratchData< dim >, StabilizedMethodsCopyData >.
Definition at line 814 of file tracer_assemblers.cc.
References TracerScratchData< dim >::JxW, StabilizedMethodsCopyData::local_rhs, TracerScratchData< dim >::n_dofs, TracerScratchData< dim >::n_q_points, TracerScratchData< dim >::phi, StabilizedMethodsCopyData::strong_residual, TracerScratchData< dim >::tracer_reaction_prefactor, and TracerScratchData< dim >::tracer_values.
| const std::shared_ptr<SimulationControl> TracerAssemblerReaction< dim >::simulation_control |
Definition at line 293 of file tracer_assemblers.h.