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

[cfMesh] Salome 9.3.0 cannot generate .fms file

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 15, 2019, 19:03
Default Salome 9.3.0 cannot generate .fms file
  #1
Member
 
Join Date: Mar 2019
Posts: 33
Rep Power: 2
celestial is on a distinguished road
first to avoid syntax errors. I had to replace all occurrences of

print ---whatever----

with

print (---whatever----)


in scripts extractFeatureEdges.py and salomeTriSurf.py ( the opening and closing parentheses are essential) (These scripts are found under the installation of cfMesh software you can download cfMesh from their site or find it part of OpenFoam 18.0.6)

I load script salomeTriSurf.py in Salome 9.3.0 after highlighting my mesh in the Mesh module and pressing Ctrl-t)
Then, when I type
triSurf().writeFms('FileName.fms')
in the command window opened up by the loaded script, I get the following error on line 113:

AttributeError: 'collections.OrderedDict' object has no attribute 'iteritems'


I am beginning to wonder if those scripts were written to be understood by python 2.7 but not by python 3.6 which is the one used by Salome 9.3.0

Has anybody encountered this error ?
celestial is offline   Reply With Quote

Old   September 27, 2019, 11:57
Default
  #2
New Member
 
igor.leo93's Avatar
 
Igor Leonardo
Join Date: Jul 2016
Location: Brazil - SP - SJC
Posts: 20
Rep Power: 5
igor.leo93 is on a distinguished road
Quote:
Originally Posted by celestial View Post
I am beginning to wonder if those scripts were written to be understood by python 2.7 but not by python 3.6 which is the one used by Salome 9.3.0
You are correct,, check this:
General workflow to create a flawless mesh in cfMesh

Alternatively, you can download salime 8.5, and it should work there.

Best regards,
Igor Carvalho
igor.leo93 is offline   Reply With Quote

Old   October 18, 2019, 12:57
Default
  #3
Member
 
Join Date: Mar 2019
Posts: 33
Rep Power: 2
celestial is on a distinguished road
Thanks Igor. I will stick with version 7.4.0 since I had already downloaded it. Version 9.3.0 does not even work when you modify the scripts using the 2to3 python conversion program. (you get TypeError updateObjBrowser() takes 1 argument but 2 were given)
celestial is offline   Reply With Quote

Old   October 21, 2019, 06:53
Default
  #4
Senior Member
 
Carlo_P
Join Date: May 2019
Location: Italy
Posts: 139
Rep Power: 3
Carlo_P is on a distinguished road
Hey, anohter way can be to export a stl file a then convert it with surfaceToFMS.
Carlo_P is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[foam-extend.org] Problems installing foam-extend-4.0 on openSUSE 42.2 and Ubuntu 16.04 ordinary OpenFOAM Installation 19 September 3, 2019 19:13
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 20:43
[swak4Foam] swak4foam building problem GGerber OpenFOAM Community Contributions 54 April 24, 2015 17:02
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit ParaView 60 September 18, 2013 04:23
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51


All times are GMT -4. The time now is 23:09.