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
5459e8cd
Commit
5459e8cd
authored
Nov 06, 2015
by
Henry Weller
Browse files
reactingEulerFoam: Moved dilatation from AnisothermalPhaseModel to MovingPhaseModel
to support phase volume fraction changes due to pressure
parent
56eb6756
Changes
4
Hide whitespace changes
Inline
Side-by-side
applications/solvers/multiphase/reactingEulerFoam/phaseSystems/phaseModel/AnisothermalPhaseModel/AnisothermalPhaseModel.C
View file @
5459e8cd
...
...
@@ -37,7 +37,6 @@ Foam::AnisothermalPhaseModel<BasePhaseModel>::AnisothermalPhaseModel
)
:
BasePhaseModel
(
fluid
,
phaseName
,
index
),
divU_
(
NULL
),
K_
(
IOobject
...
...
@@ -133,25 +132,6 @@ bool Foam::AnisothermalPhaseModel<BasePhaseModel>::compressible() const
}
template
<
class
BasePhaseModel
>
const
Foam
::
tmp
<
Foam
::
volScalarField
>&
Foam
::
AnisothermalPhaseModel
<
BasePhaseModel
>::
divU
()
const
{
return
divU_
;
}
template
<
class
BasePhaseModel
>
void
Foam
::
AnisothermalPhaseModel
<
BasePhaseModel
>::
divU
(
const
tmp
<
volScalarField
>&
divU
)
{
divU_
=
divU
;
}
template
<
class
BasePhaseModel
>
const
Foam
::
volScalarField
&
Foam
::
AnisothermalPhaseModel
<
BasePhaseModel
>::
K
()
const
...
...
applications/solvers/multiphase/reactingEulerFoam/phaseSystems/phaseModel/AnisothermalPhaseModel/AnisothermalPhaseModel.H
View file @
5459e8cd
...
...
@@ -54,9 +54,6 @@ class AnisothermalPhaseModel
{
// Private data
//- Dilatation rate
tmp
<
volScalarField
>
divU_
;
//- Kinetic energy
volScalarField
K_
;
...
...
@@ -94,12 +91,6 @@ public:
//- Return true if the phase is compressible otherwise false
virtual
bool
compressible
()
const
;
//- Return the phase dilatation rate (d(alpha)/dt + div(alpha*phi))
virtual
const
tmp
<
volScalarField
>&
divU
()
const
;
//- Set the phase dilatation rate (d(alpha)/dt + div(alpha*phi))
virtual
void
divU
(
const
tmp
<
volScalarField
>&
divU
);
//- Return the phase kinetic energy
virtual
const
volScalarField
&
K
()
const
;
};
...
...
applications/solvers/multiphase/reactingEulerFoam/phaseSystems/phaseModel/MovingPhaseModel/MovingPhaseModel.C
View file @
5459e8cd
...
...
@@ -174,6 +174,7 @@ Foam::MovingPhaseModel<BasePhaseModel>::MovingPhaseModel
fluid
.
mesh
(),
dimensionedVector
(
"0"
,
dimAcceleration
,
vector
::
zero
)
),
divU_
(
NULL
),
turbulence_
(
phaseCompressibleTurbulenceModel
::
New
...
...
@@ -317,6 +318,25 @@ Foam::MovingPhaseModel<BasePhaseModel>::DUDt() const
}
template
<
class
BasePhaseModel
>
const
Foam
::
tmp
<
Foam
::
volScalarField
>&
Foam
::
MovingPhaseModel
<
BasePhaseModel
>::
divU
()
const
{
return
divU_
;
}
template
<
class
BasePhaseModel
>
void
Foam
::
MovingPhaseModel
<
BasePhaseModel
>::
divU
(
const
tmp
<
volScalarField
>&
divU
)
{
divU_
=
divU
;
}
template
<
class
BasePhaseModel
>
Foam
::
tmp
<
Foam
::
volScalarField
>
Foam
::
MovingPhaseModel
<
BasePhaseModel
>::
continuityError
()
const
...
...
applications/solvers/multiphase/reactingEulerFoam/phaseSystems/phaseModel/MovingPhaseModel/MovingPhaseModel.H
View file @
5459e8cd
...
...
@@ -80,6 +80,9 @@ class MovingPhaseModel
//- Lagrangian acceleration field (needed for virtual-mass)
volVectorField
DUDt_
;
//- Dilatation rate
tmp
<
volScalarField
>
divU_
;
//- Turbulence model
autoPtr
<
phaseCompressibleTurbulenceModel
>
turbulence_
;
...
...
@@ -151,6 +154,12 @@ public:
//- Return the substantive acceleration
virtual
tmp
<
volVectorField
>
DUDt
()
const
;
//- Return the phase dilatation rate (d(alpha)/dt + div(alpha*phi))
virtual
const
tmp
<
volScalarField
>&
divU
()
const
;
//- Set the phase dilatation rate (d(alpha)/dt + div(alpha*phi))
virtual
void
divU
(
const
tmp
<
volScalarField
>&
divU
);
//- Constant access the continuity error
virtual
tmp
<
volScalarField
>
continuityError
()
const
;
...
...
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