diff --git a/src/thermophysicalModels/specie/reaction/Reactions/NonEquilibriumReversibleReaction/NonEquilibriumReversibleReaction.C b/src/thermophysicalModels/specie/reaction/Reactions/NonEquilibriumReversibleReaction/NonEquilibriumReversibleReaction.C index c4a66e7159..6c90e7c082 100644 --- a/src/thermophysicalModels/specie/reaction/Reactions/NonEquilibriumReversibleReaction/NonEquilibriumReversibleReaction.C +++ b/src/thermophysicalModels/specie/reaction/Reactions/NonEquilibriumReversibleReaction/NonEquilibriumReversibleReaction.C @@ -68,8 +68,8 @@ NonEquilibriumReversibleReaction ) : Reaction(species, thermoDatabase, dict), - fk_(species, dict), - rk_(species, dict) + fk_(species, dict.subDict("forward")), + rk_(species, dict.subDict("reverse")) {} @@ -136,8 +136,20 @@ void Foam::NonEquilibriumReversibleReaction::write ) const { Reaction::write(os); + + os << indent << "forward" << nl; + os << indent << token::BEGIN_BLOCK << nl; + os << incrIndent; fk_.write(os); + os << decrIndent; + os << indent << token::END_BLOCK << nl; + + os << indent << "reverse" << nl; + os << indent << token::BEGIN_BLOCK << nl; + os << incrIndent; rk_.write(os); + os << decrIndent; + os << indent << token::END_BLOCK << nl; } diff --git a/src/thermophysicalModels/specie/reaction/reactionRate/FallOffReactionRate/FallOffReactionRateI.H b/src/thermophysicalModels/specie/reaction/reactionRate/FallOffReactionRate/FallOffReactionRateI.H index 7a477bcd4b..8a1c8e7e4d 100644 --- a/src/thermophysicalModels/specie/reaction/reactionRate/FallOffReactionRate/FallOffReactionRateI.H +++ b/src/thermophysicalModels/specie/reaction/reactionRate/FallOffReactionRate/FallOffReactionRateI.H @@ -67,10 +67,10 @@ FallOffReactionRate const dictionary& dict ) : - k0_(species, dict), - kInf_(species, dict), - F_(dict), - thirdBodyEfficiencies_(species, dict) + k0_(species, dict.subDict("k0")), + kInf_(species, dict.subDict("kInf")), + F_(dict.subDict("F")), + thirdBodyEfficiencies_(species, dict.subDict("thirdBodyEfficiencies")) {} @@ -100,10 +100,33 @@ inline void Foam::FallOffReactionRate::write Ostream& os ) const { + os << indent << "k0" << nl; + os << indent << token::BEGIN_BLOCK << nl; + os << incrIndent; k0_.write(os); + os << decrIndent; + os << indent << token::END_BLOCK << nl; + + os << indent << "kInf" << nl; + os << indent << token::BEGIN_BLOCK << nl; + os << incrIndent; kInf_.write(os); + os << decrIndent; + os << indent << token::END_BLOCK << nl; + + os << indent << "F" << nl; + os << indent << token::BEGIN_BLOCK << nl; + os << incrIndent; F_.write(os); + os << decrIndent; + os << indent << token::END_BLOCK << nl; + + os << indent << "thirdBodyEfficiencies" << nl; + os << indent << token::BEGIN_BLOCK << nl; + os << incrIndent; thirdBodyEfficiencies_.write(os); + os << decrIndent; + os << indent << token::END_BLOCK << nl; }