|
[Sponsors] |
August 23, 2012, 11:53 |
export mesh
|
#1 |
Member
Join Date: Apr 2012
Posts: 32
Rep Power: 14 |
I have generated mesh via snappyHexMesh from a .stl geometry file. How can I export the mesh to other format, eg .hdf or .UNV?
Thanks, |
|
August 23, 2012, 13:50 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 |
Hi Sukye,
Here are two lists of the ones currently catalogued at openfoamwiki.net:
Bruno
__________________
|
|
August 23, 2012, 14:07 |
|
#3 | |
Member
Join Date: Apr 2012
Posts: 32
Rep Power: 14 |
Thank you Bruno,
Yes, I have noticed this and use FoamMeshToFluent to generate a msh file. But my salome did not recognize it... Quote:
|
||
August 23, 2012, 14:30 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 |
I think the only solution is to create the utility foamToIdeasUnv
If so far such utility doesn't exist yet, it's because this isn't the usual need. Or you could convert the surface mesh from OpenFOAM and then re-mesh in Salome... The utility is named surfaceMeshConvert.
__________________
|
|
August 23, 2012, 14:50 |
|
#5 | |
Member
Join Date: Apr 2012
Posts: 32
Rep Power: 14 |
The valid types of surfaceMeshConvert do not include msh or hdf.
I think the problem lies in salome, not openfoam. I installed caelinux in which salome only reads hdf files. Quote:
|
||
August 29, 2012, 03:53 |
|
#6 |
Senior Member
|
Hi,
but I think that surfaceMeshConvert creates an STL that can be imported into salome and by saving your imported STL you have an HDF-file. Do you want to do a Fluid Structure Interaction (FSI) simulation, otherwise I do not understand why you want to import from OF to Salome! If the mesh you used for snappy hex mesh did not deform during simulation you could use directly your original STL for Salome import STL-file save as HDF-File and mesh for FEM-simulation |
|
August 29, 2012, 10:16 |
|
#7 | |
Member
Join Date: Apr 2012
Posts: 32
Rep Power: 14 |
Thank you Elvis.
I use Salome in CAELinux where it can only read hdf files. weird! Yes, you are right I dont have to export from OF. But I dont know how to define inlets and outlets in OF. There is no example of a pipe flow. Maybe I was wrong? Quote:
|
||
August 30, 2012, 07:12 |
|
#8 |
Senior Member
|
Hi,
you are looking for setSet Manipulate a cell/face/point/ set or zone interactively setsToZones Add pointZones/faceZones/cellZones to the mesh from similar named pointSets/faceSets/cellSets |
|
August 31, 2012, 05:37 |
|
#9 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
To complement Elvis' response - you can find several tutorials on creating patches after the mesh has been created! Run the following command to see which ones they are: Code:
find $FOAM_TUTORIALS -name createPatchDict Code:
basic/scalarTransportFoam/pitzDaily basic/potentialFoam/pitzDaily compressible/rhoPimpleFoam/les/pitzDaily combustion/XiFoam/les/pitzDaily3D combustion/XiFoam/les/pitzDaily incompressible/simpleFoam/pitzDaily incompressible/simpleFoam/pitzDailyExptInlet incompressible/pisoFoam/les/pitzDailyMapped incompressible/pisoFoam/les/pitzDaily incompressible/adjointShapeOptimizationFoam/pitzDaily incompressible/icoFoam/elbow incompressible/pimpleFoam/TJunction incompressible/pimpleFoam/TJunctionFan Bruno
__________________
|
|
August 31, 2012, 13:06 |
|
#10 |
Member
Join Date: Apr 2012
Posts: 32
Rep Power: 14 |
Thank you Elvis and Bruno.
Yes, setSet may do the job. I also followed this link: http://openfoamwiki.net/index.php/SetSet. But the inlets do not have their names under Code:
foamJob -s checkMesh -allTopology -allGeometry Should I generate mesh in another way? Have a good holiday! PS, if someone can help today, I will have a good one myself |
|
August 31, 2012, 14:29 |
|
#11 | |
Member
Join Date: Apr 2012
Posts: 32
Rep Power: 14 |
Thank you so much.
How can I transfer the mesh from current folder to the destination folder? Or I can generate mesh from stl file, but there is no triSurface folder for snappy in the tutorials you mentioned ... Quote:
|
||
August 31, 2012, 18:30 |
|
#12 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 |
createPatch is meant to be used after the mesh has been created. Keep in mind that createPatch relies on sets created by setSet or topoSet.
You can also try surfaceToPatch, which is also meant to be applied after the mesh is done. For more: Code:
surfaceToPatch -help
__________________
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
sliding mesh problem in CFX | Saima | CFX | 46 | September 11, 2021 07:38 |
Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 122 | June 15, 2014 06:20 |
Export 2D mesh from ICEM to Fluent | BuilttoSpill | ANSYS Meshing & Geometry | 4 | August 28, 2010 08:16 |
2D mesh export of an original 3D model | Yogendra Shastri | Main CFD Forum | 0 | February 22, 2008 13:14 |
fluent add additional zones for the mesh file | SSL | FLUENT | 2 | January 26, 2008 11:55 |