Skip to content

Commit

Permalink
Updates in pimpleDyMOversetFoam
Browse files Browse the repository at this point in the history
Solving pEqn to a tight tolerance in all last PISO correctors.
  • Loading branch information
Vuko Vukcevic committed Sep 22, 2016
1 parent d6fad2e commit f719e7a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
6 changes: 4 additions & 2 deletions src/pimpleDyMOversetFoam/Make/options
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ EXE_INC = \
-I$(LIB_SRC)/transportModels \
-I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I../oversetMesh/lnInclude
-I../oversetMesh/lnInclude \
-I../oversetDynamicFvMesh/lnInclude

EXE_LIBS = \
-ldynamicFvMesh \
Expand All @@ -20,4 +21,5 @@ EXE_LIBS = \
-lfiniteVolume \
-llduSolvers \
-L$(MESQUITE_LIB_DIR) -lmesquite \
-L$(FOAM_USER_LIBBIN) -loversetMesh
-L$(FOAM_USER_LIBBIN) -loversetMesh \
-L$(FOAM_USER_LIBBIN) -loversetDynamicFvMesh
18 changes: 15 additions & 3 deletions src/pimpleDyMOversetFoam/pEqn.H
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,22 @@
om.correctNonOrthoFluxes(pEqn, U);

pEqn.setReference(pRefCell, pRefValue);
pEqn.solve

if
(
mesh.solutionDict().solver(p.select(pimple.finalInnerIter()))
);
(
pimple.corrPISO() == 1
|| pimple.corrPISO() == pimple.nCorrPISO()
)
&& pimple.finalNonOrthogonalIter()
)
{
pEqn.solve(mesh.solutionDict().solver("pFinal"));
}
else
{
pEqn.solve();
}

if (pimple.finalNonOrthogonalIter())
{
Expand Down

0 comments on commit f719e7a

Please sign in to comment.