mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: mixerVesselAMI2D: set-up to use GAMG and optional parallel running
This commit is contained in:
@ -3,3 +3,4 @@ set -x
|
||||
|
||||
m4 < constant/polyMesh/blockMeshDict.m4 > constant/polyMesh/blockMeshDict
|
||||
blockMesh > log.blockMesh 2>&1
|
||||
topoSet
|
||||
|
||||
@ -14,16 +14,12 @@ FoamFile
|
||||
object decomposeParDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
/*
|
||||
preservePatches
|
||||
(
|
||||
AMI1
|
||||
AMI2
|
||||
);
|
||||
*/
|
||||
|
||||
singleProcessorFaceSets ((AMI -1));
|
||||
|
||||
numberOfSubdomains 4;
|
||||
|
||||
method simple;
|
||||
method scotch;
|
||||
|
||||
simpleCoeffs
|
||||
{
|
||||
|
||||
@ -19,16 +19,22 @@ solvers
|
||||
{
|
||||
pcorr
|
||||
{
|
||||
solver PCG;
|
||||
preconditioner DIC;
|
||||
solver GAMG;
|
||||
smoother GaussSeidel;
|
||||
nPreSweeps 0;
|
||||
nPostSweeps 2;
|
||||
cacheAgglomeration off;
|
||||
agglomerator faceAreaPair;
|
||||
nCellsInCoarsestLevel 10;
|
||||
mergeLevels 1;
|
||||
|
||||
tolerance 0.02;
|
||||
relTol 0;
|
||||
}
|
||||
|
||||
p
|
||||
{
|
||||
solver PCG;
|
||||
preconditioner DIC;
|
||||
$pcorr;
|
||||
tolerance 1e-06;
|
||||
relTol 0.01;
|
||||
}
|
||||
@ -66,8 +72,8 @@ solvers
|
||||
|
||||
PIMPLE
|
||||
{
|
||||
correctPhi yes;
|
||||
nOuterCorrectors 3;
|
||||
correctPhi no;
|
||||
nOuterCorrectors 2;
|
||||
nCorrectors 1;
|
||||
nNonOrthogonalCorrectors 0;
|
||||
|
||||
|
||||
@ -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.*";
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
// ************************************************************************* //
|
||||
Reference in New Issue
Block a user