diff --git a/src/thermophysicalModels/specie/specie/specie.H b/src/thermophysicalModels/specie/specie/specie.H index 958b24eb..a5855cfd 100644 --- a/src/thermophysicalModels/specie/specie/specie.H +++ b/src/thermophysicalModels/specie/specie/specie.H @@ -103,6 +103,23 @@ public: const scalar molWeight ); + //- Construct from components without name + inline specie + ( + const scalar nMoles, + const scalar molWeight, + const scalar nCharges + ); + + //- Construct from components with name + inline specie + ( + const word& name, + const scalar nMoles, + const scalar molWeight, + const scalar nCharges + ); + //- Construct as copy inline specie(const specie&); diff --git a/src/thermophysicalModels/specie/specie/specieI.H b/src/thermophysicalModels/specie/specie/specieI.H index 72b2bede..c0efbe62 100644 --- a/src/thermophysicalModels/specie/specie/specieI.H +++ b/src/thermophysicalModels/specie/specie/specieI.H @@ -58,6 +58,34 @@ inline specie::specie {} +inline specie::specie +( + const word& name, + const scalar nMoles, + const scalar molWeight, + const scalar nCharges +) +: + name_(name), + nMoles_(nMoles), + molWeight_(molWeight), + nCharges_(nCharges) +{} + + +inline specie::specie +( + const scalar nMoles, + const scalar molWeight, + const scalar nCharges +) +: + nMoles_(nMoles), + molWeight_(molWeight), + nCharges_(nCharges) +{} + + // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // inline specie::specie(const specie& st)