export mesh
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, |
Hi Sukye,
Here are two lists of the ones currently catalogued at openfoamwiki.net:
Bruno |
Thank you Bruno,
Yes, I have noticed this and use FoamMeshToFluent to generate a msh file. But my salome did not recognize it... Quote:
|
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. |
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:
|
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 |
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:
|
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 |
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 Bruno |
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 :) Quote:
|
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:
|
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 |
All times are GMT -4. The time now is 07:33. |