|
[Sponsors] |
FOAM FATAL ERROR when boundary conditions are run |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 15, 2022, 06:06 |
FOAM FATAL ERROR when boundary conditions are run
|
#1 |
New Member
Join Date: Jan 2022
Posts: 20
Rep Power: 4 |
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 |
|
February 15, 2022, 06:35 |
|
#2 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40 |
try adding a ';' after the final ')'
|
|
February 15, 2022, 08:15 |
|
#3 |
New Member
Join Date: Jan 2022
Posts: 20
Rep Power: 4 |
||
February 15, 2022, 12:43 |
|
#4 |
New Member
Join Date: Jan 2022
Posts: 20
Rep Power: 4 |
Solved! I wrote all the time patches() instead of patches ()
Now it run |
|
|
|
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 |