![]() |
Lethe Open-Source Library version 1.2.0
Developer Guide
|
#include <tracer_reaction_model.h>
Public Member Functions | |
| TanhLevelsetTracerReactionPrefactor (const double p_tracer_reaction_constant_outside, const double p_tracer_reaction_constant_inside, const double p_thickness, const double p_tracer_reaction_order, const double p_tracer_reaction_threshold) | |
| double | value (const std::map< field, double > &field_values) override |
| void | vector_value (const std::map< field, std::vector< double > > &field_vectors, std::vector< double > &property_vector) override |
| double | jacobian (const std::map< field, double > &field_values, field id) override |
| void | vector_jacobian (const std::map< field, std::vector< double > > &field_vectors, const field id, std::vector< double > &jacobian_vector) override |
| Public Member Functions inherited from PhysicalPropertyModel | |
| PhysicalPropertyModel () | |
| virtual | ~PhysicalPropertyModel ()=default |
| bool | depends_on (const field &id) |
| void | provide_simulation_control (std::shared_ptr< SimulationControl > &p_simulation_control) |
| double | numerical_jacobian (const std::map< field, double > &field_values, const field id) |
| void | vector_numerical_jacobian (const std::map< field, std::vector< double > > &field_vectors, const field id, std::vector< double > &jacobian_vector) |
Private Attributes | |
| const double | tracer_reaction_constant_outside |
| const double | tracer_reaction_constant_inside |
| const double | thickness |
| const double | delta_reaction_constant |
| const double | tracer_reaction_order |
| const double | tracer_reaction_threshold |
Additional Inherited Members | |
| Public Types inherited from PhysicalPropertyModel | |
| enum class | ComplexComponent : std::int8_t { real , imag } |
| Static Public Member Functions inherited from TracerReactionPrefactorModel | |
| static std::shared_ptr< TracerReactionPrefactorModel > | model_cast (const Parameters::Material &material_properties) |
| Protected Member Functions inherited from PhysicalPropertyModel | |
| std::shared_ptr< SimulationControl > & | get_simulation_control () |
| Protected Attributes inherited from PhysicalPropertyModel | |
| std::map< field, bool > | model_depends_on |
Tanh level-set-dependent tracer reaction prefactor.
This model computes a prefactor that depends on the level-set function, smoothly transitioning between a reaction constant (\alpha) inside and outside the solid.
Definition at line 277 of file tracer_reaction_model.h.
|
inline |
Constructor.
| [in] | p_tracer_reaction_constant_outside | Reaction constant (\alpha) outside the solid. |
| [in] | p_tracer_reaction_constant_inside | Reaction constant (\alpha) inside the solid. |
| [in] | p_thickness | Thickness for the tanh smoothing function. |
| [in] | p_tracer_reaction_order | The reaction order. |
| [in] | p_tracer_reaction_threshold | The threshold value used to smoothly floor the concentration. |
Definition at line 292 of file tracer_reaction_model.h.
References delta_reaction_constant, levelset, PhysicalPropertyModel::model_depends_on, thickness, tracer_concentration, tracer_reaction_constant_inside, tracer_reaction_constant_outside, tracer_reaction_order, and tracer_reaction_threshold.
|
inlineoverridevirtual |
Compute the jacobian (partial derivative) of the prefactor with respect to a specified field.
| [in] | field_values | Map of field values. |
| [in] | id | The field identifier with respect to which the derivative is computed. |
Implements PhysicalPropertyModel.
Definition at line 381 of file tracer_reaction_model.h.
References calculate_d_effective_concentration_dC(), calculate_effective_concentration(), delta_reaction_constant, levelset, thickness, tracer_concentration, tracer_reaction_constant_inside, tracer_reaction_order, and tracer_reaction_threshold.
|
inlineoverridevirtual |
Compute the tracer reaction prefactor.
| [in] | field_values | Map of field values. |
Implements PhysicalPropertyModel.
Definition at line 317 of file tracer_reaction_model.h.
References calculate_effective_concentration(), delta_reaction_constant, levelset, thickness, tracer_concentration, tracer_reaction_constant_inside, tracer_reaction_order, and tracer_reaction_threshold.
|
inlineoverridevirtual |
Compute the vector jacobian (partial derivatives) of the prefactor with respect to a field.
| [in] | field_vectors | Map of field vectors. |
| [in] | id | The field identifier with respect to which the derivative is computed. |
| [out] | jacobian_vector | Vector to be filled with computed derivative values. |
Implements PhysicalPropertyModel.
Definition at line 429 of file tracer_reaction_model.h.
References calculate_d_effective_concentration_dC(), calculate_effective_concentration(), delta_reaction_constant, levelset, thickness, tracer_concentration, tracer_reaction_constant_inside, tracer_reaction_order, and tracer_reaction_threshold.
|
inlineoverridevirtual |
Compute a vector of tracer reaction prefactor values.
| [in] | field_vectors | Map of field vectors. |
| [out] | property_vector | Vector to be filled with computed prefactor values. |
Implements PhysicalPropertyModel.
Definition at line 342 of file tracer_reaction_model.h.
References calculate_effective_concentration(), delta_reaction_constant, levelset, thickness, tracer_concentration, tracer_reaction_constant_inside, tracer_reaction_order, and tracer_reaction_threshold.
|
private |
Definition at line 487 of file tracer_reaction_model.h.
|
private |
Definition at line 486 of file tracer_reaction_model.h.
|
private |
Definition at line 485 of file tracer_reaction_model.h.
|
private |
Definition at line 484 of file tracer_reaction_model.h.
|
private |
Definition at line 488 of file tracer_reaction_model.h.
|
private |
Definition at line 489 of file tracer_reaction_model.h.