interDyMFoam: Update surface fields following mesh change

This commit is contained in:
Henry
2013-09-12 17:02:02 +01:00
parent 17f2d5f189
commit 40db2359b1
2 changed files with 13 additions and 1 deletions

View File

@ -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
(

View File

@ -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)