CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion > OpenFOAM Meshing Format & General Technical

Importing mesh files to OpenFOAM: is obj format viable?

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

Like Tree1Likes
  • 1 Post By cutter

LinkBack Thread Tools Display Modes
Old   March 13, 2013, 18:41
Question Importing mesh files to OpenFOAM: is obj format viable?
New Member
Join Date: Feb 2013
Posts: 24
Rep Power: 7
sudo is on a distinguished road
Ok, so first of all I'm still a newbie in the whole CFD realm. For importing & exporting meshes into and from OpenFOAM, I have two questions:

1. Is the obj format a viable format to carry 3D mesh data?
2. If it is, then how (and I will need detailed instructions ) do I import a mesh in obj format to OF?
3. If it is only for surface meshes, could I still import it to OF, then use snappyhexmesh to do the volume meshing?

Reason I'm asking is that I can import mesh files from CCM+ (I know about the conversion tool, but that's for another thread) as wrl files that Mesh lab recognizes, and then does import it to obj.

Thanks in advance.
sudo is offline   Reply With Quote

Old   March 13, 2013, 21:09
Senior Member
JR22's Avatar
Jose Rey
Join Date: Oct 2012
Posts: 131
Rep Power: 11
JR22 will become famous soon enough
Check the motorbike tutorial ($FOAM_TUTORIALS/incompressible/simpleFoam/motorBike/ directory)

It pools the geometry from zipped .obj (motorBike.obj.gz) file in the "$FOAM_TUTORIALS/resources/geometry" directory.

After it is copied by the "Allrun" script into the trimesh directory, the snappyHexMesh calls it:

        type triSurfaceMesh;
        name motorBike;

        type searchableBox;
        min (-1.0 -0.7 0.0);
        max ( 8.0  0.7 2.5);
JR22 is offline   Reply With Quote

Old   March 15, 2013, 10:07
New Member
Join Date: Feb 2013
Posts: 24
Rep Power: 7
sudo is on a distinguished road
Thanks, I'll try that and report. I just want to mention that by comparing the mesh properties on the obj & wrl files with those from the original sim file, it is clear that the imported meshes on both wrl & obj files have way less elements indicating they are only surface meshes.
sudo is offline   Reply With Quote

Old   March 5, 2014, 06:14
Senior Member
Join Date: Mar 2010
Location: Germany
Posts: 154
Rep Power: 9
cutter is on a distinguished road
Some external tools require the STL file format. Use the OF tool surfaceConvert to convert between a variety of formats when necessary.

amintalezade likes this.
cutter is offline   Reply With Quote


meshlab obj wrl

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
No layers in a small gap bobburnquist OpenFOAM Native Meshers: snappyHexMesh and Others 6 August 26, 2015 09:38
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
Converting *.CDB files to a mesh format gerdschwaderer Visualization & Post-Processing 2 January 29, 2013 19:10
Heat balance in radiation simulation Rivera Phoenics 1 January 6, 2006 18:51
Format for importing Plot3d files into Star-CCM+ Meredith Siemens 1 October 12, 2005 12:28

All times are GMT -4. The time now is 02:10.