Backported potentialIbFoam to OF 3.0.1 format
This commit is contained in:
parent
4ae909ab2b
commit
cd7a8eb4ae
2 changed files with 9 additions and 3 deletions
|
@ -1,6 +1,8 @@
|
|||
EXE_INC = \
|
||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||
-I$(LIB_SRC)/meshTools/lnInclude \
|
||||
-I$(LIB_SRC)/dynamicMesh/dynamicFvMesh/lnInclude \
|
||||
-I$(LIB_SRC)/dynamicMesh/dynamicMesh/lnInclude \
|
||||
-I$(LIB_SRC)/immersedBoundary/immersedBoundary/lnInclude
|
||||
|
||||
EXE_LIBS = \
|
||||
|
@ -9,5 +11,6 @@ EXE_LIBS = \
|
|||
-lsurfMesh \
|
||||
-lsampling \
|
||||
-ldynamicMesh \
|
||||
-ldynamicFvMesh \
|
||||
-limmersedBoundary \
|
||||
-llduSolvers
|
||||
|
|
|
@ -32,6 +32,7 @@ Description
|
|||
#include "fvCFD.H"
|
||||
#include "immersedBoundaryFvPatch.H"
|
||||
#include "immersedBoundaryAdjustPhi.H"
|
||||
#include "simpleControl.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
|
@ -43,16 +44,18 @@ int main(int argc, char *argv[])
|
|||
|
||||
# include "createTime.H"
|
||||
# include "createMesh.H"
|
||||
|
||||
simpleControl simple(mesh);
|
||||
|
||||
# include "createIbMasks.H"
|
||||
# include "createFields.H"
|
||||
# include "readSIMPLEControls.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
Info<< nl << "Calculating potential flow" << endl;
|
||||
|
||||
// Do correctors over the complete set
|
||||
for (int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++)
|
||||
while (simple.correctNonOrthogonal())
|
||||
{
|
||||
phi = faceIbMask*(linearInterpolate(U) & mesh.Sf());
|
||||
|
||||
|
@ -86,7 +89,7 @@ int main(int argc, char *argv[])
|
|||
// Correct the flux
|
||||
phi -= pEqn.flux();
|
||||
|
||||
if (nonOrth != nNonOrthCorr)
|
||||
if (!simple.finalNonOrthogonalIter())
|
||||
{
|
||||
p.relax();
|
||||
}
|
||||
|
|
Reference in a new issue