ENH: mixerVesselAMI2D: set-up to use GAMG and optional parallel running

This commit is contained in:
mattijs
2011-11-09 12:36:05 +00:00
parent c1ac184893
commit 6bedf22896
4 changed files with 52 additions and 14 deletions

View File

@ -3,3 +3,4 @@ set -x
m4 < constant/polyMesh/blockMeshDict.m4 > constant/polyMesh/blockMeshDict m4 < constant/polyMesh/blockMeshDict.m4 > constant/polyMesh/blockMeshDict
blockMesh > log.blockMesh 2>&1 blockMesh > log.blockMesh 2>&1
topoSet

View File

@ -14,16 +14,12 @@ FoamFile
object decomposeParDict; object decomposeParDict;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
/*
preservePatches singleProcessorFaceSets ((AMI -1));
(
AMI1
AMI2
);
*/
numberOfSubdomains 4; numberOfSubdomains 4;
method simple; method scotch;
simpleCoeffs simpleCoeffs
{ {

View File

@ -19,16 +19,22 @@ solvers
{ {
pcorr pcorr
{ {
solver PCG; solver GAMG;
preconditioner DIC; smoother GaussSeidel;
nPreSweeps 0;
nPostSweeps 2;
cacheAgglomeration off;
agglomerator faceAreaPair;
nCellsInCoarsestLevel 10;
mergeLevels 1;
tolerance 0.02; tolerance 0.02;
relTol 0; relTol 0;
} }
p p
{ {
solver PCG; $pcorr;
preconditioner DIC;
tolerance 1e-06; tolerance 1e-06;
relTol 0.01; relTol 0.01;
} }
@ -66,8 +72,8 @@ solvers
PIMPLE PIMPLE
{ {
correctPhi yes; correctPhi no;
nOuterCorrectors 3; nOuterCorrectors 2;
nCorrectors 1; nCorrectors 1;
nNonOrthogonalCorrectors 0; nNonOrthogonalCorrectors 0;

View File

@ -0,0 +1,35 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object topoSetDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
actions
(
// Get both sides of ami
// ~~~~~~~~~~~~~~~~~~~~~
// Get all faces in cellSet
{
name AMI;
type faceSet;
action new;
source patchToFace;
sourceInfo
{
name "AMI.*";
}
}
);
// ************************************************************************* //