class template species::thermo new methods qc & QC
This commit is contained in:
parent
429edd9f30
commit
9916e5b5a8
2 changed files with 32 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue