class template heThermo added charge density qc_
This commit is contained in:
parent
9916e5b5a8
commit
82ef4f6289
2 changed files with 45 additions and 0 deletions
|
|
@ -108,6 +108,20 @@ Foam::heThermo<BasicThermo, MixtureType>::heThermo
|
|||
dimEnergy/dimMass,
|
||||
this->heBoundaryTypes(),
|
||||
this->heBoundaryBaseTypes()
|
||||
),
|
||||
|
||||
qc_
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
"qc",
|
||||
mesh.time().timeName(),
|
||||
mesh,
|
||||
IOobject::NO_READ,
|
||||
IOobject::NO_WRITE
|
||||
),
|
||||
mesh,
|
||||
dimCurrent*dimTime/dimMass
|
||||
)
|
||||
{
|
||||
init();
|
||||
|
|
@ -142,6 +156,20 @@ Foam::heThermo<BasicThermo, MixtureType>::heThermo
|
|||
dimEnergy/dimMass,
|
||||
this->heBoundaryTypes(),
|
||||
this->heBoundaryBaseTypes()
|
||||
),
|
||||
|
||||
qc_
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
"qc",
|
||||
mesh.time().timeName(),
|
||||
mesh,
|
||||
IOobject::NO_READ,
|
||||
IOobject::NO_WRITE
|
||||
),
|
||||
mesh,
|
||||
dimCurrent*dimTime/dimMass
|
||||
)
|
||||
{
|
||||
init();
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ protected:
|
|||
|
||||
//- Energy field
|
||||
volScalarField he_;
|
||||
volScalarField qc_;
|
||||
|
||||
|
||||
// Protected Member Functions
|
||||
|
|
@ -151,6 +152,22 @@ public:
|
|||
}
|
||||
|
||||
|
||||
// Access to thermodynamic state variables
|
||||
|
||||
//- Enthalpy/Internal energy [J/kg]
|
||||
// Non-const access allowed for transport equations
|
||||
virtual volScalarField& qc()
|
||||
{
|
||||
return qc_;
|
||||
}
|
||||
|
||||
//- Enthalpy/Internal energy [J/kg]
|
||||
virtual const volScalarField& qc() const
|
||||
{
|
||||
return qc_;
|
||||
}
|
||||
|
||||
|
||||
// Fields derived from thermodynamic state variables
|
||||
|
||||
//- Enthalpy/Internal energy
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue