Clean-up immersedBoundary

This commit is contained in:
Hrvoje Jasak 2017-11-16 15:24:55 +00:00
parent ef6ddbf9d7
commit d37f72cc86
4 changed files with 20 additions and 36 deletions

View file

@ -16,9 +16,15 @@ FoamFile
libs libs
( (
"libimmersedBoundary.so"
"liblduSolvers.so" "liblduSolvers.so"
) )
DebugSwitches
{
immersedBoundary 1;
}
application icoDyMFoam; application icoDyMFoam;
startFrom startTime; startFrom startTime;
@ -32,10 +38,7 @@ endTime 50;
deltaT 0.002; deltaT 0.002;
writeControl runTime; writeControl runTime;
writeInterval 0.2; writeInterval 0.1;
// writeControl timeStep;
// writeInterval 1;
purgeWrite 0; purgeWrite 0;

View file

@ -17,32 +17,23 @@ FoamFile
ddtSchemes ddtSchemes
{ {
default Euler; default Euler;
ddt(U) backward;
} }
gradSchemes gradSchemes
{ {
default Gauss linear; default Gauss linear;
grad(p) Gauss linear;
} }
divSchemes divSchemes
{ {
default none; default none;
// div(phi,U) Gauss upwind; // div(phi,U) Gauss upwind;
div(phi,U) Gauss linear; div(phi,U) Gauss linearUpwind Gauss linear;
// div(phi,U) Gauss linearUpwind Gauss linear;
// div(phi,U) Gauss vanLeer;
// div(phi,U) Gauss GammaV 0.2;
} }
laplacianSchemes laplacianSchemes
{ {
default none; default Gauss linear corrected;
laplacian(nu,U) Gauss linear corrected;
laplacian((1|A(U)),p) Gauss linear corrected;
laplacian(1,p) Gauss linear corrected;
} }
interpolationSchemes interpolationSchemes

View file

@ -19,7 +19,7 @@ solvers
p p
{ {
solver amgSolver; solver amgSolver;
cycle W-cycle; cycle V-cycle;
policy cluster; policy cluster;
nPreSweeps 2; nPreSweeps 2;
nPostSweeps 2; nPostSweeps 2;
@ -27,7 +27,7 @@ solvers
minCoarseEqns 4; minCoarseEqns 4;
nMaxLevels 100; nMaxLevels 100;
scale on; scale on;
smoother symGaussSeidel; smoother ILUC0;
minIter 1; minIter 1;
maxIter 100; maxIter 100;
@ -38,7 +38,7 @@ solvers
pFinal pFinal
{ {
solver amgSolver; solver amgSolver;
cycle W-cycle; cycle V-cycle;
policy cluster; policy cluster;
nPreSweeps 2; nPreSweeps 2;
nPostSweeps 2; nPostSweeps 2;
@ -46,12 +46,12 @@ solvers
minCoarseEqns 4; minCoarseEqns 4;
nMaxLevels 100; nMaxLevels 100;
scale on; scale on;
smoother symGaussSeidel; smoother ILUC0;
minIter 1; minIter 1;
maxIter 100; maxIter 100;
tolerance 1e-7; tolerance 1e-7;
relTol 0.0; relTol 0.01;
} }
U U
@ -60,8 +60,8 @@ solvers
preconditioner ILU0; preconditioner ILU0;
minIter 1; minIter 1;
maxIter 1000; maxIter 100;
tolerance 1e-08; tolerance 1e-07;
relTol 0; relTol 0;
} }
} }

View file

@ -14,9 +14,11 @@ FoamFile
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
numberOfSubdomains 2; // numberOfSubdomains 2;
// method simple;
method manual; numberOfSubdomains 7;
method scotch;
simpleCoeffs simpleCoeffs
{ {
@ -24,18 +26,6 @@ simpleCoeffs
delta 0.001; delta 0.001;
} }
hierarchicalCoeffs
{
n (1 1 1);
delta 0.001;
order xyz;
}
metisCoeffs
{
processorWeights 4(1 1 1 1);
}
manualCoeffs manualCoeffs
{ {
dataFile "cellDecomposition"; dataFile "cellDecomposition";