Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
OpenFOAM-plus
Commits
1765b5a4
Commit
1765b5a4
authored
May 04, 2017
by
Henry Weller
Committed by
Andrew Heather
May 22, 2017
Browse files
DPMDyMFoam, DPMDyMFoam: Corrected support for closed-domain simulations
Also added support for extrapolated pressure boundary conditions.
parent
a7711038
Changes
2
Hide whitespace changes
Inline
Side-by-side
applications/solvers/lagrangian/DPMFoam/DPMDyMFoam/pEqn.H
View file @
1765b5a4
{
volVectorField
HbyA
(
"HbyA"
,
Uc
);
HbyA
=
rAUc
*
UcEqn
.
H
();
volVectorField
HbyA
(
constrainHbyA
(
rAUc
*
UcEqn
.
H
(),
Uc
,
p
));
surfaceScalarField
phiHbyA
(
...
...
@@ -8,7 +7,6 @@
(
fvc
::
flux
(
HbyA
)
+
alphacf
*
rAUcf
*
fvc
::
ddtCorr
(
Uc
,
Ucf
)
+
phicForces
)
);
...
...
@@ -19,6 +17,8 @@
fvc
::
makeAbsolute
(
phiHbyA
,
Uc
);
}
phiHbyA
+=
phicForces
;
// Update the pressure BCs to ensure flux consistency
constrainPressure
(
p
,
Uc
,
phiHbyA
,
rAUcf
);
...
...
applications/solvers/lagrangian/DPMFoam/pEqn.H
View file @
1765b5a4
{
volVectorField
HbyA
(
"HbyA"
,
Uc
);
HbyA
=
rAUc
*
UcEqn
.
H
();
volVectorField
HbyA
(
constrainHbyA
(
rAUc
*
UcEqn
.
H
(),
Uc
,
p
));
surfaceScalarField
phiHbyA
(
...
...
@@ -8,10 +7,16 @@
(
fvc
::
flux
(
HbyA
)
+
alphacf
*
rAUcf
*
fvc
::
ddtCorr
(
Uc
,
phic
)
+
phicForces
)
);
if
(
p
.
needReference
())
{
adjustPhi
(
phiHbyA
,
Uc
,
p
);
}
phiHbyA
+=
phicForces
;
// Update the pressure BCs to ensure flux consistency
constrainPressure
(
p
,
Uc
,
phiHbyA
,
rAUcf
);
...
...
Write
Preview
Markdown
is supported
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