|
[Sponsors] |
[CAD formats] Importing mesh files to OpenFOAM: is obj format viable? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 13, 2013, 18:41 |
Importing mesh files to OpenFOAM: is obj format viable?
|
#1 |
New Member
Join Date: Feb 2013
Posts: 24
Rep Power: 13 |
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. |
|
March 13, 2013, 21:09 |
|
#2 |
Senior Member
Jose Rey
Join Date: Oct 2012
Posts: 134
Rep Power: 18 |
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: Code:
geometry { motorBike.obj { type triSurfaceMesh; name motorBike; } refinementBox { type searchableBox; min (-1.0 -0.7 0.0); max ( 8.0 0.7 2.5); } }; |
|
March 15, 2013, 10:07 |
|
#3 |
New Member
Join Date: Feb 2013
Posts: 24
Rep Power: 13 |
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.
|
|
March 5, 2014, 06:14 |
|
#4 |
Senior Member
Join Date: Mar 2010
Location: Germany
Posts: 154
Rep Power: 16 |
Some external tools require the STL file format. Use the OF tool surfaceConvert to convert between a variety of formats when necessary.
Cutter |
|
Tags |
meshlab obj wrl |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] Mesh Importing Problem | cuteapathy | ANSYS Meshing & Geometry | 2 | June 24, 2017 06:29 |
[Commercial meshers] Importing ICEM Multiregion Mesh In OpenFOAM | Aditya Patil | OpenFOAM Meshing & Mesh Conversion | 1 | May 8, 2017 22:33 |
[snappyHexMesh] No layers in a small gap | bobburnquist | OpenFOAM Meshing & Mesh Conversion | 6 | August 26, 2015 10:38 |
Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 122 | June 15, 2014 07:20 |
UDF issue | MASOUD | Fluent UDF and Scheme Programming | 14 | December 6, 2012 14:39 |