CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[PyFoam] pyFoamClearEmptyBoundaries syntax error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 6, 2015, 10:11
Default pyFoamClearEmptyBoundaries syntax error
  #1
New Member
 
Join Date: Dec 2014
Posts: 5
Rep Power: 11
pigna is on a distinguished road
Hi,
I'm using the utility of PyFoam pyFoamClearEmptyBoundaries to delete some unused patch in my mesh and i get this error:

PyFoam.RunDictionary.ParsedParameterFile.PyFoamPar serError: Error in PyFoamParser: 'Syntax error in file /home/marco/OpenFOAM/marco-2.4.x/snappy_explicit/constant/polyMesh/boundary at token' @ ';' (Type: ; ) in line 586 at position 13265

around line 586 i have

porous_grain76
{
type wall;
inGroups 1(wall); //586
nFaces 0;
startFace 1588300;
}

The strange fact is that i have already used pyFoamClearEmptyBoundaries for a coarser mesh obtained in the same way of this one and it worked properly, but now this error. I think it is a kind of bug.
If someone knows how to fix this problem.

Thanks
Attached Files
File Type: c boundary.c (22.6 KB, 9 views)
pigna is offline   Reply With Quote

Old   June 7, 2016, 09:15
Default
  #2
New Member
 
Join Date: May 2013
Posts: 11
Rep Power: 13
peppino is on a distinguished road
late reply... but maybe can be useful to someone else.
i run in the same error when running pyFoamCreateBoundaryPatches and i noticed that removing the inGroups line from the boundary file solves the issue.
(the groups will be removed too)
peppino is offline   Reply With Quote

Old   June 23, 2016, 04:39
Default removing inGroups
  #3
New Member
 
Join Date: Feb 2012
Posts: 5
Rep Power: 14
-luk- is on a distinguished road
I can confirm the behaviour. I have removed all "inGroups" lines from the boundary file and pyFoam worded. You can use sed to remove the lines:

sed '/inGroups/d' constant/polyMesh/boundary > constant/polyMesh/boundary_nogroups

Regards, Luk
-luk- 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
[OpenFOAM] an error in Calculator's equation immortality ParaView 12 June 29, 2021 01:10
[OpenFOAM.org] compile error in dynamicMesh and thermophysicalModels libraries NickG OpenFOAM Installation 3 December 30, 2019 01:21
Pressure outlet boundary condition rolando OpenFOAM Running, Solving & CFD 62 September 18, 2017 07:45
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM Community Contributions 300 October 29, 2014 19:00
Undeclared Identifier Errof UDF SteveGoat Fluent UDF and Scheme Programming 7 October 15, 2014 08:11


All times are GMT -4. The time now is 21:33.