From 3ea6e0cd6902e10494f98db5a80bbff15644e5a4 Mon Sep 17 00:00:00 2001 From: OmarMahfoze17 <31227063+OmarMahfoze17@users.noreply.github.com> Date: Thu, 9 Jan 2025 11:04:24 +0000 Subject: [PATCH 1/3] Update compressibleInterFlow.C Fix moving mesh bug in compressibleInterFlow --- .../compressibleInterFlow/compressibleInterFlow.C | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/solver/compressibleInterFlow/compressibleInterFlow.C b/solver/compressibleInterFlow/compressibleInterFlow.C index 09700486..5252c7f3 100644 --- a/solver/compressibleInterFlow/compressibleInterFlow.C +++ b/solver/compressibleInterFlow/compressibleInterFlow.C @@ -133,13 +133,13 @@ int main(int argc, char *argv[]) { MRF.update(); - advector->surf().mapAlphaField(); - alpha2 = 1.0 - alpha1; - alpha2.correctBoundaryConditions(); - rho == alpha1*rho1 + alpha2*rho2; - rho.correctBoundaryConditions(); - rho.oldTime() = rho; - alpha2.oldTime() = alpha2; + // advector->surf().mapAlphaField(); + // alpha2 = 1.0 - alpha1; + // alpha2.correctBoundaryConditions(); + // rho == alpha1*rho1 + alpha2*rho2; + // rho.correctBoundaryConditions(); + // rho.oldTime() = rho; + // alpha2.oldTime() = alpha2; Info<< "Execution time for mesh.update() = " << runTime.elapsedCpuTime() - timeBeforeMeshUpdate From 6d1d05f145f788b1a7a7853552bbf294830e1687 Mon Sep 17 00:00:00 2001 From: OmarMahfoze17 <31227063+OmarMahfoze17@users.noreply.github.com> Date: Thu, 9 Jan 2025 11:05:08 +0000 Subject: [PATCH 2/3] Update interFlow.C Fix moving mesh bug in interFlow --- solver/interFlow/interFlow.C | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/solver/interFlow/interFlow.C b/solver/interFlow/interFlow.C index 33a65d3c..9009d6ad 100644 --- a/solver/interFlow/interFlow.C +++ b/solver/interFlow/interFlow.C @@ -86,13 +86,13 @@ int main(int argc, char *argv[]) // gets recompute by surfaces forces // gh = (g & mesh.C()) - ghRef; // ghf = (g & mesh.Cf()) - ghRef; - advector->surf().mapAlphaField(); - alpha2 = 1.0 - alpha1; - alpha2.correctBoundaryConditions(); - rho == alpha1*rho1 + alpha2*rho2; - rho.correctBoundaryConditions(); - rho.oldTime() = rho; - alpha2.oldTime() = alpha2; + // advector->surf().mapAlphaField(); + // alpha2 = 1.0 - alpha1; + // alpha2.correctBoundaryConditions(); + // rho == alpha1*rho1 + alpha2*rho2; + // rho.correctBoundaryConditions(); + // rho.oldTime() = rho; + // alpha2.oldTime() = alpha2; MRF.update(); @@ -159,4 +159,4 @@ int main(int argc, char *argv[]) } -// ************************************************************************* // \ No newline at end of file +// ************************************************************************* // From 23f294a60ab4851070b4e2e4f22fcd48a8beaaae Mon Sep 17 00:00:00 2001 From: OmarMahfoze17 <31227063+OmarMahfoze17@users.noreply.github.com> Date: Thu, 9 Jan 2025 11:06:34 +0000 Subject: [PATCH 3/3] Update solveFluid.H Fix moving mesh bug --- .../multiRegionPhaseChangeFlow/fluid/solveFluid.H | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/solver/multiRegionPhaseChangeFlow/fluid/solveFluid.H b/solver/multiRegionPhaseChangeFlow/fluid/solveFluid.H index bc8644c6..a47f018c 100644 --- a/solver/multiRegionPhaseChangeFlow/fluid/solveFluid.H +++ b/solver/multiRegionPhaseChangeFlow/fluid/solveFluid.H @@ -32,13 +32,13 @@ if (finalIter) { MRF.update(); - advector.surf().mapAlphaField(); - alpha2 = 1.0 - alpha1; - alpha2.correctBoundaryConditions(); - rho == alpha1*rho1 + alpha2*rho2; - rho.correctBoundaryConditions(); - rho.oldTime() = rho; - alpha2.oldTime() = alpha2; + // advector.surf().mapAlphaField(); + // alpha2 = 1.0 - alpha1; + // alpha2.correctBoundaryConditions(); + // rho == alpha1*rho1 + alpha2*rho2; + // rho.correctBoundaryConditions(); + // rho.oldTime() = rho; + // alpha2.oldTime() = alpha2; Info<< "Execution time for mesh.update() = " << runTime.elapsedCpuTime() - timeBeforeMeshUpdate