CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (https://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   OpenFOAM 1.6 CreatePatch Problem (https://www.cfd-online.com/Forums/openfoam-bugs/68201-openfoam-1-6-createpatch-problem.html)

TarifaPirata September 10, 2009 03:22

OpenFOAM 1.6 CreatePatch Problem
 
Hello all,

my first posting relates to the new version of OpenFoam 1.6.x and the CreatePatchDict formulation.

Since I've updated my OF I got an error massage that says that my CreatePatchDict misses a block called patchInfo.

If I switch back to OF 1.5.x everything works fine, but it would be very nice to be able to use OF 1.6 as well.

My CreatePatchDict looks like:

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object createPatcheDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

matchTolerance 1E-3;
pointSync true;
patches
(
{
name IN;
type patch;
constructFrom patches;
patches (
face-1
);
}

{
name OUT;
type patch;
constructFrom patches;
patches (
face-2
);
}

{
name WING;
type wall;
constructFrom patches;
patches (
face-7
);
}

{
name SYM;
type symmetryPlane;
constructFrom patches;
patches (
face-4
face-6
face-3
face-5
);
}
);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //


and the corresponding boundary file:

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6.x |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

7
(
face-7
{
type wall;
nFaces 60838;
startFace 3674117;
}
face-1
{
type wall;
nFaces 512;
startFace 3734955;
}
face-2
{
type wall;
nFaces 512;
startFace 3735467;
}
face-3
{
type wall;
nFaces 1024;
startFace 3735979;
}
face-4
{
type wall;
nFaces 1024;
startFace 3737003;
}
face-5
{
type wall;
nFaces 1024;
startFace 3738027;
}
face-6
{
type wall;
nFaces 1024;
startFace 3739051;
}
)

// ************************************************** *********************** //


Thanks everyone for your help!

I am curious about your suggestions since I was not able to find anything about the new syntax for createPatchDict in OF 1.6.x

mattijs September 10, 2009 04:35

There is a sample createPatchDict in the source directory ($FOAM_UTILITIES/mesh/manipulation/createPatch). Some of the entries got renamed for consistency reasons.


All times are GMT -4. The time now is 11:27.