Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
215a3267
Commit
215a3267
authored
Nov 15, 2012
by
andy
Browse files
ENH: Updated construction of he thermo boundary conditions from T field
parent
2914433a
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/thermophysicalModels/basic/heThermo/heThermo.C
View file @
215a3267
...
...
@@ -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
();
...
...
src/thermophysicalModels/basic/heThermo/heThermo.H
View file @
215a3267
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment