OGS
ChemistryLib::SelfContainedSolverData::FirstOrderReaction Struct Reference

Detailed Description

First-order reaction.

The rate law of the first-order reaction has the form of

\[ Rate = k * c \]

\( k \) is the first-order rate constant [1/s], and \( c \) is the concentration [mol/m3]

Definition at line 44 of file ChemicalReaction.h.

#include <ChemicalReaction.h>

Inheritance diagram for ChemistryLib::SelfContainedSolverData::FirstOrderReaction:
[legend]
Collaboration diagram for ChemistryLib::SelfContainedSolverData::FirstOrderReaction:
[legend]

Public Member Functions

 FirstOrderReaction (std::vector< double > stoichiometric_vector_, double first_order_rate_constant_)
 
double getKineticPrefactor () const override
 
- Public Member Functions inherited from ChemistryLib::SelfContainedSolverData::ChemicalReaction
 ChemicalReaction (std::vector< double > stoichiometric_vector_)
 
virtual ~ChemicalReaction ()=default
 

Private Attributes

double first_order_rate_constant
 the first order rate constant for first-order reaction.
 

Additional Inherited Members

- Public Attributes inherited from ChemistryLib::SelfContainedSolverData::ChemicalReaction
std::vector< double > stoichiometric_vector
 

Constructor & Destructor Documentation

◆ FirstOrderReaction()

ChemistryLib::SelfContainedSolverData::FirstOrderReaction::FirstOrderReaction ( std::vector< double > stoichiometric_vector_,
double first_order_rate_constant_ )
inline

Definition at line 46 of file ChemicalReaction.h.

48 : ChemicalReaction(std::move(stoichiometric_vector_)),
49 first_order_rate_constant(first_order_rate_constant_)
50 {
51 }
ChemicalReaction(std::vector< double > stoichiometric_vector_)
double first_order_rate_constant
the first order rate constant for first-order reaction.

Member Function Documentation

◆ getKineticPrefactor()

double ChemistryLib::SelfContainedSolverData::FirstOrderReaction::getKineticPrefactor ( ) const
inlineoverridevirtual

Reimplemented from ChemistryLib::SelfContainedSolverData::ChemicalReaction.

Definition at line 53 of file ChemicalReaction.h.

54 {
56 }

References first_order_rate_constant.

Member Data Documentation

◆ first_order_rate_constant

double ChemistryLib::SelfContainedSolverData::FirstOrderReaction::first_order_rate_constant
private

the first order rate constant for first-order reaction.

Definition at line 60 of file ChemicalReaction.h.

Referenced by getKineticPrefactor().


The documentation for this struct was generated from the following file: