- #1
JD_PM
- 1,131
- 158
- TL;DR Summary
- I get a FOAM FATAL ERROR error when I run createPatch -overwrite to create the BCs
Let's give some context. I created a Mesh via snappyHexMesh and next I am setting the boundary conditions (BCs).
First I copied the patches folder "createPatchDict" to my system's folder via the command "cp $FOAM_ETC/caseDicts/mesh/manipulation/patches/createPatchDict ./system"
Taking into account that the BCs have names that you would like to change for the computation and that could also have particular types, createPatchDict text doc has the following patches
The issue is the following. When I run createPatch -overwrite to create the new BCs I get the following error.
--> FOAM FATAL ERROR:
"ill defined primitiveEntry starting at keyword 'patches' on line 19 and ending at line 78"
The text within the mentioned lines is basically what I wrote above but I do not understand how to fix the error.
I can always provide more details if needed beAny help is appreciated
First I copied the patches folder "createPatchDict" to my system's folder via the command "cp $FOAM_ETC/caseDicts/mesh/manipulation/patches/createPatchDict ./system"
Taking into account that the BCs have names that you would like to change for the computation and that could also have particular types, createPatchDict text doc has the following patches
Code:
patches
(
{
name free_air;
patchInfo
{
type patch;
}
constructFrom patches;
patches (river_patch0);
}
{
name inlet_water;
patchInfo
{
type patch;
}
constructFrom set;
set inlet_water;
}
{
name inlet_air;
patchInfo
{
type patch;
}
constructFrom set;
set inlet_air;
}
{
name outlet;
patchInfo
{
type patch;
}
constructFrom patches;
patches (river_patch5);
}
{
name river_walls;
patchInfo
{
type wall;
}
constructFrom patches;
patches (river_patch2 river_patch4 river_patch6);
}
{
name pillar;
patchInfo
{
type wall;
}
constructFrom patches;
patches (river_patch1);
}
)
The issue is the following. When I run createPatch -overwrite to create the new BCs I get the following error.
--> FOAM FATAL ERROR:
"ill defined primitiveEntry starting at keyword 'patches' on line 19 and ending at line 78"
The text within the mentioned lines is basically what I wrote above but I do not understand how to fix the error.
I can always provide more details if needed beAny help is appreciated