|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
Join Date: Feb 2013
Posts: 20
Rep Power: 2 ![]() |
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. |
|
|
|
|
|
|
|
|
#2 |
|
Member
Jose Rey
Join Date: Oct 2012
Posts: 87
Rep Power: 6 ![]() |
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);
}
};
|
|
|
|
|
|
|
|
|
#3 |
|
New Member
Join Date: Feb 2013
Posts: 20
Rep Power: 2 ![]() |
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.
|
|
|
|
|
|
![]() |
| Tags |
| meshlab obj wrl |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 121 | March 7, 2013 17:21 |
| Converting *.CDB files to a mesh format | gerdschwaderer | Visualization & Post-Processing | 2 | January 29, 2013 18:10 |
| No layers in a small gap | bobburnquist | OpenFOAM Native Meshers: snappyHexMesh and Others | 2 | November 25, 2012 08:54 |
| Heat balance in radiation simulation | Rivera | Phoenics | 1 | January 6, 2006 17:51 |
| Format for importing Plot3d files into Star-CCM+ | Meredith | CD-adapco | 1 | October 12, 2005 12:28 |