Skip to content

Commit e6406e5

Browse files
committed
added documentation
1 parent 0590ad5 commit e6406e5

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

cmake/Macros.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ macro(hpcReact_add_code_checks)
4242
--suppress=unusedFunction
4343
--suppress=constStatement
4444
--suppress=unusedStructMember
45+
-DHPCREACT_HOST_DEVICE=
4546
-I../hpcReact/src )
4647

4748
if( UNCRUSTIFY_FOUND )

src/reactions/reactionsSystems/EquilibriumReactions.hpp

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,26 @@ class EquilibriumReactions
9797
ARRAY_1D_TO_CONST const & speciesConcentration0,
9898
ARRAY_1D & speciesConcentration );
9999

100+
101+
/**
102+
* @brief This method enforces equilibrium for a given set of species using
103+
* log of aggregate primary concentrations.
104+
* @tparam PARAMS_DATA The type of the parameters data.
105+
* @tparam ARRAY_1D The type of the array of species concentrations.
106+
* @tparam ARRAY_1D_TO_CONST The type of the array of species concentrations.
107+
* @param temperature The temperature of the system.
108+
* @param params The parameters for the equilibrium reactions.
109+
* @param targetAggregatePrimarySpeciesConcentration The target aggregate
110+
* primary species concentration.
111+
* @param logPrimarySpeciesConcentration0 The initial value of the log of
112+
* the primary species concentrations.
113+
* @param speciesConcentration The species concentrations to be updated.
114+
* @details This method uses the log of aggregate primary concentrations to enforce
115+
* equilibrium for a given set of species. It uses the
116+
* computeResidualAndJacobianLogAggregate method to compute the residual and
117+
* jacobian for the system and then uses a direct solver to solve the system.
118+
* The solution is then used to update the species concentrations.
119+
*/
100120
template< typename PARAMS_DATA,
101121
typename ARRAY_1D,
102122
typename ARRAY_1D_TO_CONST >

0 commit comments

Comments
 (0)