class specie new private constructors

This commit is contained in:
ignis 2015-11-23 17:29:31 +09:00
parent 145892966a
commit 31d593d57c
2 changed files with 45 additions and 0 deletions

View file

@ -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&);

View file

@ -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)