From 31d593d57c545c5d6d8ebe2f0166826cf2e850b6 Mon Sep 17 00:00:00 2001 From: ignis Date: Mon, 23 Nov 2015 17:29:31 +0900 Subject: [PATCH] class specie new private constructors --- .../specie/specie/specie.H | 17 +++++++++++ .../specie/specie/specieI.H | 28 +++++++++++++++++++ 2 files changed, 45 insertions(+) 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)