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

export mesh

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 23, 2012, 12:53
Default export mesh
  #1
Member
 
Join Date: Apr 2012
Posts: 32
Rep Power: 4
sukye is on a distinguished road
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,
sukye is offline   Reply With Quote

Old   August 23, 2012, 14:50
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,433
Blog Entries: 33
Rep Power: 73
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Hi Sukye,

Here are two lists of the ones currently catalogued at openfoamwiki.net:
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   August 23, 2012, 15:07
Default
  #3
Member
 
Join Date: Apr 2012
Posts: 32
Rep Power: 4
sukye is on a distinguished road
Thank you Bruno,

Yes, I have noticed this and use FoamMeshToFluent to generate a msh file. But my salome did not recognize it...

Quote:
Originally Posted by wyldckat View Post
Hi Sukye,

Here are two lists of the ones currently catalogued at openfoamwiki.net:
Best regards,
Bruno
sukye is offline   Reply With Quote

Old   August 23, 2012, 15:30
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,433
Blog Entries: 33
Rep Power: 73
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
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.
wyldckat is offline   Reply With Quote

Old   August 23, 2012, 15:50
Default
  #5
Member
 
Join Date: Apr 2012
Posts: 32
Rep Power: 4
sukye is on a distinguished road
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:
Originally Posted by wyldckat View Post
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.
sukye is offline   Reply With Quote

Old   August 29, 2012, 04:53
Default
  #6
Senior Member
 
Elvis
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 533
Blog Entries: 4
Rep Power: 12
elvis is on a distinguished road
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
elvis is offline   Reply With Quote

Old   August 29, 2012, 11:16
Default
  #7
Member
 
Join Date: Apr 2012
Posts: 32
Rep Power: 4
sukye is on a distinguished road
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:
Originally Posted by elvis View Post
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
sukye is offline   Reply With Quote

Old   August 30, 2012, 08:12
Default
  #8
Senior Member
 
Elvis
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 533
Blog Entries: 4
Rep Power: 12
elvis is on a distinguished road
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
elvis is offline   Reply With Quote

Old   August 31, 2012, 06:37
Default
  #9
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,433
Blog Entries: 33
Rep Power: 73
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
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
As for pipe, it really depends on what you're looking for. I know of a few tutorials that fit the description:
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
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   August 31, 2012, 14:06
Default
  #10
Member
 
Join Date: Apr 2012
Posts: 32
Rep Power: 4
sukye is on a distinguished road
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
The reason is, I accept everything from the tutorial moterbike, and replace the bike geometry by my vessel model, whose mesh is generated by snappy via its stl file. So, the vessel only have one face in OF.

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:
Originally Posted by elvis View Post
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
sukye is offline   Reply With Quote

Old   August 31, 2012, 15:29
Default
  #11
Member
 
Join Date: Apr 2012
Posts: 32
Rep Power: 4
sukye is on a distinguished road
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:
Originally Posted by wyldckat View Post
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
As for pipe, it really depends on what you're looking for. I know of a few tutorials that fit the description:
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
Best regards,
Bruno
sukye is offline   Reply With Quote

Old   August 31, 2012, 19:30
Default
  #12
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,433
Blog Entries: 33
Rep Power: 73
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
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
wyldckat 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 Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20
Export 2D mesh from ICEM to Fluent BuilttoSpill ANSYS Meshing & Geometry 4 August 28, 2010 09:16
external flow with snappyHexMesh chelvistero OpenFOAM 11 January 15, 2010 20:43
2D mesh export of an original 3D model Yogendra Shastri Main CFD Forum 0 February 22, 2008 14:14
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55


All times are GMT -4. The time now is 22:15.