|
[Sponsors] |
December 7, 2010, 08:34 |
Converting Salome hybrid mesh to OpenFOAM
|
#1 |
Senior Member
Arne Stahlmann
Join Date: Nov 2009
Location: Hanover, Germany
Posts: 209
Rep Power: 18 |
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 |
|
March 27, 2012, 07:50 |
|
#2 |
New Member
Thanasis
Join Date: Mar 2010
Location: Greece
Posts: 9
Rep Power: 16 |
Has anyone knows a way to convert those mixed-meshes from salome to openfoam?
|
|
March 27, 2012, 08:16 |
|
#3 |
Senior Member
|
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 |
|
March 27, 2012, 13:05 |
|
#4 |
New Member
Thanasis
Join Date: Mar 2010
Location: Greece
Posts: 9
Rep Power: 16 |
Hi Elvis,
Have you used to it to export mesh in readable format for openfoam? and what format was it? Thanks |
|
March 28, 2012, 11:24 |
|
#5 |
Senior Member
|
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. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Gambit problems | Althea | FLUENT | 22 | January 4, 2017 04:19 |
[snappyHexMesh] SnappyHexMesh for internal Flow | vishwa | OpenFOAM Meshing & Mesh Conversion | 24 | June 27, 2016 09:54 |
Moving mesh problem OpenFoam 141 | kassiotis | OpenFOAM Running, Solving & CFD | 30 | April 15, 2015 00:10 |
[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 |