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

Converting Salome hybrid mesh to OpenFOAM

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

Reply
 
LinkBack Thread Tools Display Modes
Old   December 7, 2010, 08:34
Default Converting Salome hybrid mesh to OpenFOAM
  #1
Senior Member
 
Arne Stahlmann
Join Date: Nov 2009
Location: Hanover, Germany
Posts: 209
Rep Power: 8
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: 8
Rep Power: 7
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: 579
Blog Entries: 5
Rep Power: 13
elvis is on a distinguished road
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
elvis is offline   Reply With Quote

Old   March 27, 2012, 12:05
Default
  #4
New Member
 
Thanasis
Join Date: Mar 2010
Location: Greece
Posts: 8
Rep Power: 7
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: 579
Blog Entries: 5
Rep Power: 13
elvis is on a distinguished road
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

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving mesh problem OpenFoam 141 kassiotis OpenFOAM Running, Solving & CFD 30 April 14, 2015 23:10
SnappyHexMesh for internal Flow vishwa OpenFOAM Native Meshers: snappyHexMesh and Others 23 August 6, 2014 03:50
[TGrid] Tgrid hybrid mesh pyramid transition tony00 ANSYS Meshing & Geometry 4 November 26, 2009 05:36
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55
Gambit problems Althea FLUENT 21 February 6, 2001 08:05


All times are GMT -4. The time now is 05:28.