Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenFOAM-plus
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
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Development
OpenFOAM-plus
Commits
6d22f299
Commit
6d22f299
authored
8 years ago
by
sergio
Browse files
Options
Downloads
Patches
Plain Diff
Deleting alphaEqn.H from overInterDyMFoam
parent
0eb80c79
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!121
Merge develop into master for v1706 release
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
applications/solvers/multiphase/interFoam/overInterDyMFoam/alphaEqn.H
+0
-131
0 additions, 131 deletions
.../solvers/multiphase/interFoam/overInterDyMFoam/alphaEqn.H
with
0 additions
and
131 deletions
applications/solvers/multiphase/interFoam/overInterDyMFoam/alphaEqn.H
deleted
100644 → 0
+
0
−
131
View file @
0eb80c79
{
word
alphaScheme
(
"div(phi,alpha)"
);
word
alpharScheme
(
"div(phirb,alpha)"
);
// Standard face-flux compression coefficient
surfaceScalarField
phic
(
mixture
.
cAlpha
()
*
mag
(
phi
/
mesh
.
magSf
()));
// Add the optional isotropic compression contribution
if
(
icAlpha
>
0
)
{
phic
*=
(
1
.
0
-
icAlpha
);
phic
+=
(
mixture
.
cAlpha
()
*
icAlpha
)
*
fvc
::
interpolate
(
mag
(
U
));
}
surfaceScalarField
::
Boundary
&
phicBf
=
phic
.
boundaryFieldRef
();
// Do not compress interface at non-coupled boundary faces
// (inlets, outlets etc.)
forAll
(
phic
.
boundaryField
(),
patchi
)
{
fvsPatchScalarField
&
phicp
=
phicBf
[
patchi
];
if
(
!
phicp
.
coupled
())
{
phicp
==
0
;
}
}
tmp
<
surfaceScalarField
>
tphiAlpha
;
if
(
MULESCorr
)
{
mesh
.
interpolate
(
alpha1
);
fvScalarMatrix
alpha1Eqn
(
fv
::
EulerDdtScheme
<
scalar
>
(
mesh
).
fvmDdt
(
alpha1
)
+
fv
::
gaussConvectionScheme
<
scalar
>
(
mesh
,
phi
,
upwind
<
scalar
>
(
mesh
,
phi
)
).
fvmDiv
(
phi
,
alpha1
)
);
alpha1Eqn
.
solve
();
tmp
<
surfaceScalarField
>
tphiAlphaUD
(
alpha1Eqn
.
flux
());
alphaPhi
=
tphiAlphaUD
();
if
(
alphaApplyPrevCorr
&&
tphiAlphaCorr0
.
valid
())
{
MULES
::
correct
(
alpha1
,
alphaPhi
,
tphiAlphaCorr0
.
ref
(),
1
,
0
);
alphaPhi
+=
tphiAlphaCorr0
();
}
// Cache the upwind-flux
tphiAlphaCorr0
=
tphiAlphaUD
;
alpha2
=
1
.
0
-
alpha1
;
mixture
.
correct
();
}
for
(
int
aCorr
=
0
;
aCorr
<
nAlphaCorr
;
aCorr
++
)
{
surfaceScalarField
phir
(
phic
*
mixture
.
nHatf
());
tmp
<
surfaceScalarField
>
tphiAlphaUn
(
fvc
::
flux
(
phi
,
alpha1
,
alphaScheme
)
+
fvc
::
flux
(
-
fvc
::
flux
(
-
phir
,
alpha2
,
alpharScheme
),
alpha1
,
alpharScheme
)
);
if
(
MULESCorr
)
{
tmp
<
surfaceScalarField
>
tphiAlphaCorr
(
tphiAlphaUn
()
-
alphaPhi
);
volScalarField
alpha10
(
"alpha10"
,
alpha1
);
MULES
::
correct
(
alpha1
,
tphiAlphaUn
(),
tphiAlphaCorr
.
ref
(),
1
,
0
);
mesh
.
interpolate
(
alpha1
);
// Under-relax the correction for all but the 1st corrector
if
(
aCorr
==
0
)
{
alphaPhi
+=
tphiAlphaCorr
();
}
else
{
alpha1
=
0
.
5
*
alpha1
+
0
.
5
*
alpha10
;
alphaPhi
+=
0
.
5
*
tphiAlphaCorr
();
}
}
else
{
alphaPhi
=
tphiAlphaUn
;
MULES
::
explicitSolve
(
alpha1
,
phi
,
alphaPhi
,
1
,
0
);
mesh
.
interpolate
(
alpha1
);
}
alpha2
=
1
.
0
-
alpha1
;
mixture
.
correct
();
}
rhoPhi
=
alphaPhi
*
(
rho1
-
rho2
)
+
phi
*
rho2
;
if
(
alphaApplyPrevCorr
&&
MULESCorr
)
{
tphiAlphaCorr0
=
alphaPhi
-
tphiAlphaCorr0
;
}
Info
<<
"Phase-1 volume fraction = "
<<
alpha1
.
weightedAverage
(
mesh
.
Vsc
()).
value
()
<<
" Min(alpha1) = "
<<
min
(
alpha1
).
value
()
<<
" Max(alpha1) = "
<<
max
(
alpha1
).
value
()
<<
endl
;
}
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