Fix: boundary names

This commit is contained in:
L-Nafaryus 2021-06-20 18:04:12 +05:00
parent c7678a2f0d
commit 42bedb8d60
No known key found for this signature in database
GPG Key ID: C76D8DCD2727DBB7
6 changed files with 13 additions and 133 deletions

View File

@ -235,7 +235,7 @@ def computeFlow(case):
return returncode
openfoam.createPatch(dictfile = "system/createPatchDict.symetry")
openfoam.createPatch(dictfile = "system/createPatchDict")
openfoam.foamDictionary(
"constant/polyMesh/boundary",

View File

@ -12,7 +12,7 @@ format = "%(levelname)s: %(message)s"
[base]
simple = true
bodyCentered = true
bodyCentered = false
faceCentered = true
###

View File

@ -41,6 +41,12 @@ boundaryField
type fixedValue;
value uniform (0 0 0);
}
strips
{
type fixedValue;
value uniform (0 0 0);
}
defaultFaces
{
type fixedValue;

View File

@ -40,6 +40,11 @@ boundaryField
{
type zeroGradient;
}
strips
{
type zeroGradient;
}
defaultFaces
{
type zeroGradient;

View File

@ -1,131 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2012 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object createPatchDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
pointSync false;
// Patches to create.
patches
(
{
name inlet;
patchInfo
{
type patch;
inGroups (inlet);
}
constructFrom patches;
patches (inlet_);
}
{
name outlet;
patchInfo
{
type patch;
inGroups (outlet);
}
constructFrom patches;
patches (outlet_);
}
{
name cyclicPlaneFW;
patchInfo
{
type cyclicAMI;
neighbourPatch cyclicPlaneBW;
transform translational;
separationVector (2 2 0);
matchTolerance 1e-4;
inGroups (cyclic);
}
constructFrom patches;
patches (symetryPlaneFW_);
}
{
name cyclicPlaneBW;
patchInfo
{
type cyclicAMI;
neighbourPatch cyclicPlaneFW;
transform translational;
separationVector (-2 -2 0);
matchTolerance 1e-4;
inGroups (cyclic);
}
constructFrom patches;
patches (symetryPlaneBW_);
}
{
name cyclicPlaneL;
patchInfo
{
type cyclicAMI;
neighbourPatch cyclicPlaneR;
transform translational;
separationVector (-2 2 0);
matchTolerance 1e-4;
inGroups (cyclic);
}
constructFrom patches;
patches (symetryPlaneL_);
}
{
name cyclicPlaneR;
patchInfo
{
type cyclicAMI;
neighbourPatch cyclicPlaneL;
transform translational;
separationVector (2 -2 0);
matchTolerance 1e-4;
inGroups (cyclic);
}
constructFrom patches;
patches (symetryPlaneR_);
}
{
name wall;
patchInfo
{
type wall;
inGroups (wall);
}
constructFrom patches;
patches (wall_);
}
);
// ************************************************************************* //