snappyHexMesh now generates a face-zone for the AMI-s, and createBaffles and mergeOrSplitPoints -split are used to create the patches. Before, snappy generated AMI patches directly, which were then converted to AMI-s with createPatch. This way, the AMI-s match exactly at the start of the simulation. For more complicated cases that may be derived from this tutorial, this could be important.
48 lines
1.1 KiB
C++
48 lines
1.1 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
========= |
|
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
\\ / O peration | Website: https://openfoam.org
|
|
\\ / A nd | Version: dev
|
|
\\/ M anipulation |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
version 2.0;
|
|
format ascii;
|
|
class dictionary;
|
|
object createPatchDict;
|
|
}
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
internalFacesOnly true;
|
|
|
|
baffles
|
|
{
|
|
rotating
|
|
{
|
|
type faceZone;
|
|
zoneName innerCylinder;
|
|
|
|
patches
|
|
{
|
|
master
|
|
{
|
|
name AMI1;
|
|
type cyclicAMI;
|
|
neighbourPatch AMI2;
|
|
}
|
|
|
|
slave
|
|
{
|
|
name AMI2;
|
|
type cyclicAMI;
|
|
neighbourPatch AMI1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|