mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
ENH: Updated construction of he thermo boundary conditions from T field
This commit is contained in:
@ -35,6 +35,39 @@ License
|
||||
|
||||
// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
|
||||
|
||||
template<class BasicThermo, class MixtureType>
|
||||
Foam::wordList Foam::heThermo<BasicThermo, MixtureType>::heBoundaryBaseTypes()
|
||||
{
|
||||
const volScalarField::GeometricBoundaryField& tbf =
|
||||
this->T_.boundaryField();
|
||||
|
||||
wordList hbt(tbf.size(), word::null);
|
||||
|
||||
forAll(tbf, patchi)
|
||||
{
|
||||
if (isA<fixedJumpFvPatchScalarField>(tbf[patchi]))
|
||||
{
|
||||
const fixedJumpFvPatchScalarField& pf =
|
||||
dynamic_cast<const fixedJumpFvPatchScalarField&>(tbf[patchi]);
|
||||
|
||||
hbt[patchi] = pf.interfaceFieldType();
|
||||
}
|
||||
else if (isA<fixedJumpAMIFvPatchScalarField>(tbf[patchi]))
|
||||
{
|
||||
const fixedJumpAMIFvPatchScalarField& pf =
|
||||
dynamic_cast<const fixedJumpAMIFvPatchScalarField&>
|
||||
(
|
||||
tbf[patchi]
|
||||
);
|
||||
|
||||
hbt[patchi] = pf.interfaceFieldType();
|
||||
}
|
||||
}
|
||||
|
||||
return hbt;
|
||||
}
|
||||
|
||||
|
||||
template<class BasicThermo, class MixtureType>
|
||||
Foam::wordList Foam::heThermo<BasicThermo, MixtureType>::heBoundaryTypes()
|
||||
{
|
||||
@ -149,7 +182,8 @@ Foam::heThermo<BasicThermo, MixtureType>::heThermo
|
||||
),
|
||||
mesh,
|
||||
dimEnergy/dimMass,
|
||||
this->heBoundaryTypes()
|
||||
this->heBoundaryTypes(),
|
||||
this->heBoundaryBaseTypes()
|
||||
)
|
||||
{
|
||||
init();
|
||||
@ -179,7 +213,8 @@ Foam::heThermo<BasicThermo, MixtureType>::heThermo
|
||||
),
|
||||
mesh,
|
||||
dimEnergy/dimMass,
|
||||
this->heBoundaryTypes()
|
||||
this->heBoundaryTypes(),
|
||||
this->heBoundaryBaseTypes()
|
||||
)
|
||||
{
|
||||
init();
|
||||
|
||||
@ -68,6 +68,10 @@ protected:
|
||||
// by interrogating the temperature field boundary types
|
||||
wordList heBoundaryTypes();
|
||||
|
||||
//- Return the enthalpy/internal energy field boundary base types
|
||||
// by interrogating the temperature field boundary types
|
||||
wordList heBoundaryBaseTypes();
|
||||
|
||||
//- Correct the enthalpy/internal energy field boundaries
|
||||
void heBoundaryCorrection(volScalarField& he);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user