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
Merge requests
!227
Enh/tutorials/channel395 dfsem
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Enh/tutorials/channel395 dfsem
ENH/tutorials/channel395DFSEM
into
develop
Overview
0
Commits
14
Changes
26
Closed
Kutalmış Berçin
requested to merge
ENH/tutorials/channel395DFSEM
into
develop
6 years ago
Overview
0
Commits
14
Changes
26
Expand
0
0
Merge request reports
Compare
develop
version 2
9788c25f
6 years ago
version 1
7aebfc13
6 years ago
develop (base)
and
latest version
latest version
9788c25f
14 commits,
6 years ago
version 2
9788c25f
20 commits,
6 years ago
version 1
7aebfc13
19 commits,
6 years ago
26 files
+
147
−
177
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
26
Search (e.g. *.vue) (Ctrl+P)
applications/solvers/multiphase/interIsoFoam/alphaEqn.H
+
9
−
8
Options
@@ -2,31 +2,32 @@
@@ -2,31 +2,32 @@
if
(
pimple
.
nCorrPIMPLE
()
>
1
)
if
(
pimple
.
nCorrPIMPLE
()
>
1
)
{
{
// If nOuterCorrectors > 1 then for all but the first loop the advection
// If nOuterCorrectors > 1 then for all but the first loop the advection
// of alpha is done using an average, 0.5*phi+0.5*phiNew where phi is
// of alpha is done using an average, 0.5*phi+0.5*phiNew where phi is
// the flux at the beginning of the time step and phiNew is the flux
// the flux at the beginning of the time step and phiNew is the flux
// estimate at the end of the time step from the previous outer
// estimate at the end of the time step from the previous outer
// iteration. Similarly we use 0.5*U + 0.5*UNew in later iterations.
// iteration. Similarly we use 0.5*U + 0.5*UNew in later iterations.
if
(
pimple
.
firstIter
())
if
(
pimple
.
firstIter
())
{
{
// To recalculate the alpha1 update in subsequent iterations, we
// To recalculate the alpha1 update in subsequent iterations, we
// must store its current value before overwriting with the new
// must store its current value before overwriting with the new
// value
// value
alpha1
.
p
revIter
();
alpha1
.
storeP
revIter
();
// Storing initial phi and U for use in later outer iterations.
// Storing initial phi and U for use in later outer iterations.
phi
.
storePrevIter
();
phi
.
storePrevIter
();
U
.
storePrevIter
();
U
.
storePrevIter
();
}
}
else
else
{
{
// Resetting alpha1 to value before advection in first PIMPLE
// Resetting alpha1 to value before advection in first PIMPLE
// iteration.
// iteration.
alpha1
=
alpha1
.
prevIter
();
alpha1
=
alpha1
.
prevIter
();
// Setting U and phi with which to advect interface.
// Setting U and phi with which to advect interface.
U
=
0
.
5
*
U
.
prevIter
()
+
0
.
5
*
U
;
U
=
0
.
5
*
U
.
prevIter
()
+
0
.
5
*
U
;
phi
=
0
.
5
*
phi
.
prevIter
()
+
0
.
5
*
phi
;
phi
=
0
.
5
*
phi
.
prevIter
()
+
0
.
5
*
phi
;
}
}
}
}
// Updating alpha1
// Updating alpha1
advector
.
advect
();
advector
.
advect
();
#include
"rhofs.H"
#include
"rhofs.H"
Loading