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

Converting Salome hybrid mesh to OpenFOAM

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By elvis

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 7, 2010, 07:34
Default Converting Salome hybrid mesh to OpenFOAM
  #1
Senior Member
 
Arne Stahlmann
Join Date: Nov 2009
Location: Hanover, Germany
Posts: 209
Rep Power: 17
Arnoldinho is on a distinguished road
Hi all,

I have to convert a combined tetrahedron/hexahedron mesh created in Salome into the OpenFOAM mesh format. For not-mixed meshes, the UNV format can be used as export in Salome and ideasUnvToFoam to convert it for OpenFOAM. For mixed meshes this does not work, as Salome does not save pyramids in their UNV files. Message "During export mesh to UNV pyramid's elements will be missed".

I read about a workaround using the MED format and gmesh with med support, but this is not straight forward at all.

Is there any converter for MED to OpenFOAM mesh? If not, what could be the starting point for me to create such a converter?

Until now I used blockMesh, SHM and snapEdge, but it's not working very well for the quite complex geometries I'm using at the moment. Also, boundary layer generation either using SHM or refineWallLayer is not working as it should...

Best regards,
Arne
Arnoldinho is offline   Reply With Quote

Old   March 27, 2012, 06:50
Default
  #2
New Member
 
Thanasis
Join Date: Mar 2010
Location: Greece
Posts: 9
Rep Power: 16
thanz is on a distinguished road
Has anyone knows a way to convert those mixed-meshes from salome to openfoam?
thanz is offline   Reply With Quote

Old   March 27, 2012, 07:16
Default
  #3
Senior Member
 
Elvis
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 620
Blog Entries: 6
Rep Power: 24
elvis will become famous soon enough
Hi,

do you know pythonflu? => SALOME OpenFOAM coupling
In http://www.openfoamworkshop.org/6th_...ord_slides.pdf
on slide 18 & 19 he mentions => direct in-memory Salome to OF (vice versa) mesh writing using pythonFlu and that this way supports arbitary polyhedral meshes (and that ideasUnvToFoam does not support these).

just an idea and my 2 cents
lourencosm and aadicfd like this.
elvis is offline   Reply With Quote

Old   March 27, 2012, 12:05
Default
  #4
New Member
 
Thanasis
Join Date: Mar 2010
Location: Greece
Posts: 9
Rep Power: 16
thanz is on a distinguished road
Hi Elvis,

Have you used to it to export mesh in readable format for openfoam? and what format was it?

Thanks
thanz is offline   Reply With Quote

Old   March 28, 2012, 10:24
Default
  #5
Senior Member
 
Elvis
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 620
Blog Entries: 6
Rep Power: 24
elvis will become famous soon enough
Hi Thanasis,

I have not used it myself (now), but if you take a look at example
you see that they used the Mesh and the BC directly
=> p = volScalarField => solve( UEqn == -fvc.grad( p ) )
=>...mesh, IOobject.NO_READ, IOobject.AUTO_WRITE
=>phi = ( fvc.interpolate( U ) & mesh.Sf() ) + fvc.ddtPhiCorr( rUA, U, phi )

I guess you would like a "not so sophisticated example" that just writes OpenFoam- Files in the corresponding folders and you use/call icoFoam or so to do the calculation! It can be done that way.
elvis 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
Gambit problems Althea FLUENT 22 January 4, 2017 03:19
[snappyHexMesh] SnappyHexMesh for internal Flow vishwa OpenFOAM Meshing & Mesh Conversion 24 June 27, 2016 08:54
Moving mesh problem OpenFoam 141 kassiotis OpenFOAM Running, Solving & CFD 30 April 14, 2015 23:10
[TGrid] Tgrid hybrid mesh pyramid transition tony00 ANSYS Meshing & Geometry 4 November 26, 2009 04:36
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 11:55


All times are GMT -4. The time now is 18:54.