AMIInterpolation, cyclicAMI: Removed

AMIInterpolation and cyclicAMI have been superseded by patchToPatch and
nonConformalCoupled, respectively.

The motivation behind this change is explained in the following article:

    https://cfd.direct/openfoam/free-software/non-conformal-coupling/

Information about how to convert a case which uses cyclicAMI to
nonConformalCoupled can be found here:

    https://cfd.direct/openfoam/free-software/using-non-conformal-coupling/
This commit is contained in:
Will Bainbridge
2022-09-22 10:05:41 +01:00
parent aa25763e14
commit f4ac5f8748
139 changed files with 42 additions and 14745 deletions

View File

@ -1,47 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class volVectorField;
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform (1 0 0);
boundaryField
{
#includeEtc "caseDicts/setConstraintTypes"
inlet
{
type fixedValue;
value $internalField;
}
outlet
{
type pressureInletOutletVelocity;
value $internalField;
}
walls
{
type noSlip;
}
nonCouple
{
type slip;
}
}
// ************************************************************************* //

View File

@ -1,47 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class volScalarField;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0 0 0];
internalField uniform 0;
boundaryField
{
#includeEtc "caseDicts/setConstraintTypes"
inlet
{
type fixedFluxPressure;
}
outlet
{
type entrainmentPressure;
p0 $internalField;
value $internalField;
}
walls
{
type fixedFluxPressure;
}
nonCouple
{
type fixedFluxPressure;
}
}
// ************************************************************************* //

View File

@ -1,7 +0,0 @@
#!/bin/sh
cd "${0%/*}" || exit 1
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase && rm -rf constant/fvMesh && rm -f error.eps

View File

@ -1,46 +0,0 @@
#!/bin/sh
cd "${0%/*}" || exit 1
. $WM_PROJECT_DIR/bin/tools/RunFunctions
mesh()
{
runApplication -s $1 blockMesh -dict system/blockMeshDict.$1
}
run()
{
runApplication -s $1 $(getApplication)
mv postProcessing/inletFlowRate postProcessing/inletFlowRate.$1
mv postProcessing/outletFlowRate postProcessing/outletFlowRate.$1
}
if isTest $@
then
foamDictionary -entry startFrom -set startTime system/controlDict
fi
mesh AMI
run AMI
mesh nonConformalCyclic
runApplication -s nonConformalCyclic createNonConformalCouples -overwrite nonCoupleUp nonCoupleDown
run nonConformalCyclic
inletFlowRateAMI=postProcessing/inletFlowRate.AMI/0/surfaceFieldValue.dat
outletFlowRateAMI=postProcessing/outletFlowRate.AMI/0/surfaceFieldValue.dat
inletFlowRateNonConformalCyclic=postProcessing/inletFlowRate.nonConformalCyclic/0/surfaceFieldValue.dat
outletFlowRateNonConformalCyclic=postProcessing/outletFlowRate.nonConformalCyclic/0/surfaceFieldValue.dat
gnuplot << EOF
set terminal postscript eps color enhanced
set output "error.eps"
set xlabel "Time (s)"
set ylabel "Inlet-Outlet Conservation Error (%)"
plot \
"< paste $inletFlowRateAMI $outletFlowRateAMI" \
us 1:(100*(\$4+\$2)/\$2) every ::1 w l t "AMI" , \
"< paste $inletFlowRateNonConformalCyclic $outletFlowRateNonConformalCyclic" \
us 1:(100*(\$4+\$2)/\$2) every ::1 w l t "nonConformalCyclic"
EOF

View File

@ -1,19 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "constant";
object momentumTransport;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
simulationType laminar;
// ************************************************************************* //

View File

@ -1,21 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "constant";
object physicalProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
viscosityModel constant;
nu [0 2 -1 0 0 0 0] 1e-4;
// ************************************************************************* //

View File

@ -1,44 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#include "blockMeshDict.internal"
boundary
(
#include "blockMeshDict.boundary"
coupleUp
{
type cyclicAMI;
neighbourPatch coupleDown;
faces
(
(7 8 24 23)
(8 9 25 24)
);
}
coupleDown
{
type cyclicAMI;
neighbourPatch coupleUp;
faces
(
(10 11 27 26)
(11 12 28 27)
);
}
);
// ************************************************************************* //

View File

@ -1,34 +0,0 @@
inlet
{
type patch;
faces
(
(0 1 17 16)
(1 2 18 17)
);
}
outlet
{
type patch;
faces
(
(13 14 30 29)
(14 15 31 30)
);
}
walls
{
type wall;
faces
(
(0 3 19 16)
(3 5 21 19)
(5 4 20 21)
(4 7 23 20)
(10 13 29 26)
(2 6 18 22)
(6 9 25 22)
(12 15 31 28)
);
}

View File

@ -1,47 +0,0 @@
convertToMeters 0.001;
vertices
(
(-150 0 -1) (-150 25 -1) (-150 50 -1)
( -50 0 -1) (-50 0 -1) ( -50 25 -1) ( -50 50 -1)
( 0 0 -1) ( 0 25 -1) ( 0 50 -1)
( 0 0 -1) ( 0 25 -1) ( 0 50 -1)
( 150 0 -1) ( 150 25 -1) ( 150 50 -1)
(-150 0 1) (-150 25 1) (-150 50 1)
( -50 0 1) (-50 0 1) ( -50 25 1) ( -50 50 1)
( 0 0 1) ( 0 25 1) ( 0 50 1)
( 0 0 1) ( 0 25 1) ( 0 50 1)
( 150 0 1) ( 150 25 1) ( 150 50 1)
);
blocks
(
hex (0 3 5 1 16 19 21 17) (12 5 1) simpleGrading (1 1 1)
hex (1 5 6 2 17 21 22 18) (12 5 1) simpleGrading (1 1 1)
hex (4 7 8 5 20 23 24 21) (6 5 1) simpleGrading (1 1 1)
hex (5 8 9 6 21 24 25 22) (6 5 1) simpleGrading (1 1 1)
hex (10 13 14 11 26 29 30 27) (18 6 1) simpleGrading (1 1 1)
hex (11 14 15 12 27 30 31 28) (18 6 1) simpleGrading (1 1 1)
);
edges
(
arc 7 8 30 (0 0 1)
arc 23 24 30 (0 0 1)
arc 8 9 30 (0 0 -1)
arc 24 25 30 (0 0 -1)
arc 10 11 30 (0 0 1)
arc 26 27 30 (0 0 1)
arc 11 12 30 (0 0 -1)
arc 27 28 30 (0 0 -1)
);
defaultPatch
{
name frontAndBack;
type empty;
}

View File

@ -1,44 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#include "blockMeshDict.internal"
boundary
(
#include "blockMeshDict.boundary"
nonCoupleUp
{
type patch;
inGroups (nonCouple);
faces
(
(7 8 24 23)
(8 9 25 24)
);
}
nonCoupleDown
{
type patch;
inGroups (nonCouple);
faces
(
(10 11 27 26)
(11 12 28 27)
);
}
);
// ************************************************************************* //

View File

@ -1,60 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application foamRun;
solver incompressibleFluid;
startFrom startTime;
startTime 0;
stopAt endTime;
endTime 1;
deltaT 0.005;
writeControl adjustableRunTime;
writeInterval 0.1;
purgeWrite 0;
writeFormat ascii;
writePrecision 12;
writeCompression off;
timeFormat general;
timePrecision 6;
runTimeModifiable yes;
adjustTimeStep no;
maxCo 5;
functions
{
#includeFunc patchFlowRate(patch=inlet, funcName=inletFlowRate)
#includeFunc patchFlowRate(patch=outlet, funcName=outletFlowRate)
}
// ************************************************************************* //

View File

@ -1,50 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
ddtSchemes
{
default Euler;
}
gradSchemes
{
default Gauss linear;
}
divSchemes
{
default none;
div(phi,U) Gauss linearUpwind grad(U);
div((nuEff*dev2(T(grad(U))))) Gauss linear;
}
laplacianSchemes
{
default Gauss linear corrected;
}
interpolationSchemes
{
default linear;
}
snGradSchemes
{
default corrected;
}
// ************************************************************************* //

View File

@ -1,56 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
solvers
{
p
{
solver GAMG;
smoother DICGaussSeidel;
preconditioner DIC;
tolerance 1e-8;
relTol 0.01;
}
pFinal
{
$p;
relTol 0;
}
U
{
solver smoothSolver;
smoother symGaussSeidel;
tolerance 1e-5;
relTol 0.1;
}
UFinal
{
$U;
relTol 0;
}
}
PIMPLE
{
nNonOrthogonalCorrectors 0;
nCorrectors 2;
}
// ************************************************************************* //