From f3b7d067b74b6f33847e6d18380f1d09ca7471fb Mon Sep 17 00:00:00 2001 From: Vanja Skuric Date: Sat, 28 May 2016 12:12:37 +0200 Subject: [PATCH] Backported surfaceTracking solvers and tutorials (vanilla OF 3.0.1) --- .../bubbleInterTrackFoam/bubbleInterTrackFoam.C | 15 ++++++++------- .../bubbleInterTrackFoam/createFields.H | 1 + .../solvers/surfaceTracking/include/setRefCell.H | 4 ++-- .../surfaceTracking/interTrackFoam/createFields.H | 1 + .../interTrackFoam/interTrackFoam.C | 14 +++++++------- .../bubble2D_r0.75mm/system/fvSchemes | 5 ----- .../bubble2D_r0.75mm/system/fvSolution | 2 +- .../interTrackFoam/hydrofoil/system/fvSchemes | 5 ----- .../interTrackFoam/hydrofoil/system/fvSolution | 2 +- .../interTrackFoam/ramp/system/fvSchemes | 5 ----- .../interTrackFoam/ramp/system/fvSolution | 2 +- .../interTrackFoam/sloshing2D/system/fvSchemes | 5 ----- .../interTrackFoam/sloshing2D/system/fvSolution | 2 +- .../interTrackFoam/tank3D/system/fvSchemes | 5 ----- .../interTrackFoam/tank3D/system/fvSolution | 2 +- 15 files changed, 24 insertions(+), 46 deletions(-) diff --git a/applications/solvers/surfaceTracking/bubbleInterTrackFoam/bubbleInterTrackFoam.C b/applications/solvers/surfaceTracking/bubbleInterTrackFoam/bubbleInterTrackFoam.C index 88ef19848..e47aac371 100644 --- a/applications/solvers/surfaceTracking/bubbleInterTrackFoam/bubbleInterTrackFoam.C +++ b/applications/solvers/surfaceTracking/bubbleInterTrackFoam/bubbleInterTrackFoam.C @@ -37,7 +37,7 @@ Description #include "inletOutletFvPatchFields.H" #include "fixedGradientFvPatchFields.H" #include "boundBox.H" - +#include "pimpleControl.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -46,6 +46,9 @@ int main(int argc, char *argv[]) # include "setRootCase.H" # include "createTime.H" # include "createDynamicFvMesh.H" + + pimpleControl pimple(mesh); + # include "createFields.H" # include "initContinuityErrs.H" # include "createBubble.H" @@ -59,8 +62,6 @@ int main(int argc, char *argv[]) { Info << "Time = " << runTime.value() << endl << endl; -# include "readPISOControls.H" - interface.moveMeshPointsForOldFreeSurfDisplacement(); interface.updateDisplacementDirections(); @@ -70,7 +71,7 @@ int main(int argc, char *argv[]) Info<< "\nMax surface Courant Number = " << interface.maxCourantNumber() << endl << endl; - for (int corr=0; corr(pNeedRef, andOp()); // Find reference cell if (pNeedRef) { - point refPointi(mesh.solutionDict().subDict("PISO").lookup("pRefPoint")); + point refPointi(mesh.solutionDict().subDict("PIMPLE").lookup("pRefPoint")); label refCelli = mesh.findCell(refPointi); label hasRef = (refCelli >= 0 ? 1 : 0); label sumHasRef = returnReduce