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

[mesh manipulation] export mesh

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 23, 2012, 11:53
Default export mesh
  #1
Member
 
Join Date: Apr 2012
Posts: 32
Rep Power: 13
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, 13:50
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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, 14:07
Default
  #3
Member
 
Join Date: Apr 2012
Posts: 32
Rep Power: 13
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, 14:30
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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, 14:50
Default
  #5
Member
 
Join Date: Apr 2012
Posts: 32
Rep Power: 13
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, 03:53
Default
  #6
Senior Member
 
Elvis
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 620
Blog Entries: 6
Rep Power: 24
elvis will become famous soon enough
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, 10:16
Default
  #7
Member
 
Join Date: Apr 2012
Posts: 32
Rep Power: 13
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, 07:12
Default
  #8
Senior Member
 
Elvis
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 620
Blog Entries: 6
Rep Power: 24
elvis will become famous soon enough
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, 05:37
Default
  #9
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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, 13:06
Default
  #10
Member
 
Join Date: Apr 2012
Posts: 32
Rep Power: 13
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, 14:29
Default
  #11
Member
 
Join Date: Apr 2012
Posts: 32
Rep Power: 13
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, 18:30
Default
  #12
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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 Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 19:07.