class template species::thermo new methods qc & QC

This commit is contained in:
ignis 2015-11-28 16:41:57 +09:00
parent 429edd9f30
commit 9916e5b5a8
2 changed files with 32 additions and 0 deletions

View file

@ -333,6 +333,22 @@ public:
) const;
// Electric charge function
// Mole specific properties
//- Electric charge [C/kmol]
inline scalar qc() const;
// Mass specific properties
//- Electric charge [C/kg]
inline scalar QC() const;
// I-O
//- Write to Ostream

View file

@ -539,4 +539,20 @@ inline Foam::species::thermo<Thermo, Type> Foam::species::operator==
}
template<class Thermo, template<class> class Type>
inline Foam::scalar
Foam::species::thermo<Thermo, Type>::qc() const
{
return this->z() * this->NA * this->e;
}
template<class Thermo, template<class> class Type>
inline Foam::scalar
Foam::species::thermo<Thermo, Type>::QC() const
{
return this->z() * this->NA * this->e / this->W();
}
// ************************************************************************* //