CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

FOAM FATAL ERROR when boundary conditions are run

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 15, 2022, 06:06
Post FOAM FATAL ERROR when boundary conditions are run
  #1
New Member
 
Join Date: Jan 2022
Posts: 20
Rep Power: 4
JD_PM is on a distinguished road
Hi all!

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 doc has the following patches

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.


Any help is appreciated
JD_PM is offline   Reply With Quote

Old   February 15, 2022, 06:35
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
try adding a ';' after the final ')'
olesen is offline   Reply With Quote

Old   February 15, 2022, 08:15
Default
  #3
New Member
 
Join Date: Jan 2022
Posts: 20
Rep Power: 4
JD_PM is on a distinguished road
Quote:
Originally Posted by olesen View Post
try adding a ';' after the final ')'
I missed it in the post but I put it in the file, so that is not the issue
JD_PM is offline   Reply With Quote

Old   February 15, 2022, 12:43
Default
  #4
New Member
 
Join Date: Jan 2022
Posts: 20
Rep Power: 4
JD_PM is on a distinguished road
Solved! I wrote all the time patches() instead of patches ()

Now it run
JD_PM is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Other] mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 13 March 7, 2022 18:22
problem during mpi in server: expected Scalar, found on line 0 the word 'nan' muth OpenFOAM Running, Solving & CFD 3 August 27, 2018 05:18
Problem in setting Boundary Condition Madhatter92 CFX 12 January 12, 2016 05:39
Overflow Error in Multiphase Modelling with Two Continuous Fluids ashtonJ CFX 6 August 11, 2014 15:32
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 15:00


All times are GMT -4. The time now is 14:17.