Skip to content
Snippets Groups Projects
Commit 40db2359 authored by Henry's avatar Henry
Browse files

interDyMFoam: Update surface fields following mesh change

parent 17f2d5f1
Branches
Tags
No related merge requests found
......@@ -3,7 +3,17 @@
if (nAlphaSubCycles > 1)
{
dimensionedScalar totalDeltaT = runTime.deltaT();
surfaceScalarField rhoPhiSum(0.0*rhoPhi);
surfaceScalarField rhoPhiSum
(
IOobject
(
"rhoPhiSum",
runTime.timeName(),
mesh
),
mesh,
dimensionedScalar("0", dimDensity, 0)
);
for
(
......
......@@ -100,6 +100,8 @@ int main(int argc, char *argv[])
// Make the flux relative to the mesh motion
fvc::makeRelative(phi, U);
interface.correct();
}
if (mesh.changing() && checkMeshCourantNo)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment