Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
openfoam
Commits
3bab081c
Commit
3bab081c
authored
13 years ago
by
Henry
Browse files
Options
Downloads
Patches
Plain Diff
multiphaseEulerFoam: Remove old file
parent
4351cb49
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
applications/solvers/multiphase/multiphaseEulerFoam/alphaEqnComp.H
+0
-105
0 additions, 105 deletions
...ons/solvers/multiphase/multiphaseEulerFoam/alphaEqnComp.H
with
0 additions
and
105 deletions
applications/solvers/multiphase/multiphaseEulerFoam/alphaEqnComp.H
deleted
100644 → 0
+
0
−
105
View file @
4351cb49
surfaceScalarField
alphaPhi1
(
"alphaPhi1"
,
phi1
);
surfaceScalarField
alphaPhi2
(
"alphaPhi2"
,
phi2
);
{
word
scheme
(
"div(phi,alpha1)"
);
word
schemer
(
"div(phir,alpha1)"
);
surfaceScalarField
phic
(
"phic"
,
phi
);
surfaceScalarField
phir
(
"phir"
,
phi1
-
phi2
);
if
(
g0
.
value
()
>
0
.
0
)
{
surfaceScalarField
alpha1f
=
fvc
::
interpolate
(
alpha1
);
surfaceScalarField
phipp
=
ppMagf
*
fvc
::
snGrad
(
alpha1
)
*
mesh
.
magSf
();
phir
+=
phipp
;
phic
+=
fvc
::
interpolate
(
alpha1
)
*
phipp
;
}
for
(
int
acorr
=
0
;
acorr
<
nAlphaCorr
;
acorr
++
)
{
volScalarField
::
DimensionedInternalField
Sp
(
IOobject
(
"Sp"
,
runTime
.
timeName
(),
mesh
),
mesh
,
dimensionedScalar
(
"Sp"
,
dgdt
.
dimensions
(),
0
.
0
)
);
volScalarField
::
DimensionedInternalField
Su
(
IOobject
(
"Su"
,
runTime
.
timeName
(),
mesh
),
// Divergence term is handled explicitly to be
// consistent with the explicit transport solution
fvc
::
div
(
phi
)
*
min
(
alpha1
,
scalar
(
1
))
);
forAll
(
dgdt
,
celli
)
{
if
(
dgdt
[
celli
]
>
0
.
0
&&
alpha1
[
celli
]
>
0
.
0
)
{
Sp
[
celli
]
-=
dgdt
[
celli
]
*
alpha1
[
celli
];
Su
[
celli
]
+=
dgdt
[
celli
]
*
alpha1
[
celli
];
}
else
if
(
dgdt
[
celli
]
<
0
.
0
&&
alpha1
[
celli
]
<
1
.
0
)
{
Sp
[
celli
]
+=
dgdt
[
celli
]
*
(
1
.
0
-
alpha1
[
celli
]);
}
}
fvScalarMatrix
alpha1Eqn
(
fvm
::
ddt
(
alpha1
)
+
fvm
::
div
(
phic
,
alpha1
,
scheme
)
+
fvm
::
div
(
-
fvc
::
flux
(
-
phir
,
alpha2
,
schemer
),
alpha1
,
schemer
)
==
fvm
::
Sp
(
Sp
,
alpha1
)
+
Su
);
if
(
g0
.
value
()
>
0
.
0
)
{
ppMagf
=
rU1Af
*
fvc
::
interpolate
(
(
1
.
0
/
(
rho1
*
(
alpha1
+
scalar
(
0
.
0001
))))
*
g0
*
min
(
exp
(
preAlphaExp
*
(
alpha1
-
alphaMax
)),
expMax
)
);
alpha1Eqn
-=
fvm
::
laplacian
(
(
fvc
::
interpolate
(
alpha1
)
+
scalar
(
0
.
0001
))
*
ppMagf
,
alpha1
,
"laplacian(alphaPpMag,alpha1)"
);
}
alpha1Eqn
.
relax
();
alpha1Eqn
.
solve
();
//***HGW temporary boundedness-fix pending the introduction of MULES
alpha1
=
max
(
min
(
alpha1
,
1
.
0
),
0
.
0
);
#include
"packingLimiter.H"
alphaPhi1
=
alpha1Eqn
.
flux
();
alphaPhi2
=
phi
-
alphaPhi1
;
alpha2
=
scalar
(
1
)
-
alpha1
;
Info
<<
"Dispersed phase volume fraction = "
<<
alpha1
.
weightedAverage
(
mesh
.
V
()).
value
()
<<
" Min(alpha1) = "
<<
min
(
alpha1
).
value
()
<<
" Max(alpha1) = "
<<
max
(
alpha1
).
value
()
<<
endl
;
}
}
rho
=
alpha1
*
rho1
+
alpha2
*
rho2
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment