|
[Sponsors] |
[snappyHexMesh] snappyHexMesh - problem using *.obj file |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 3, 2013, 07:09 |
snappyHexMesh - problem using *.obj file
|
#1 |
Member
Vishal
Join Date: Jul 2013
Posts: 73
Rep Power: 13 |
Hi all,
I am using a *.obj file as my geometry file instead of a *.stl file. The problem is that stl files do not show curves whereas the curves on the geometry can be seen in *.obj file. Thus i am trying to use an obj file. The obj file i am trying to use has been generated using ProE wildfire 4. The geometry was exported in wavefront *.obj format. The problem is that i cannot run surfaceFeatureExtract cause openFoam gives the following error - Create time Reading surfaceFeatureExtractDict Surface : "pipe.obj" Feature line extraction is only valid on closed manifold surfaces. --> FOAM FATAL IO ERROR: wrong token type - expected word, found on line 0 the label 0 file: IStringStream.sourceFile at line 0. From function operator>>(Istream&, word&) in file primitives/strings/word/wordIO.C at line 74. FOAM exiting Also if i do not run surfaceFeatureExtract and simply run snappyHexMesh -overwrite, i get the following errors - Create time Create mesh for time = 0 Read mesh in = 2.52 s Overall mesh bounding box : (-51 -51 -1) (51 51 51) Relative tolerance : 1e-06 Absolute matching distance : 0.00015333623 --> FOAM FATAL IO ERROR: wrong token type - expected word, found on line 0 the label 0 file: IStringStream.sourceFile at line 0. From function operator>>(Istream&, word&) in file primitives/strings/word/wordIO.C at line 74. FOAM exiting Can anyone explain what i am doing wrong? The obj file seems to work flawlessly with the motorbike tutorial. I am attaching my SHMDict and obj files in this zip file - pipe.zip |
|
October 4, 2013, 02:06 |
[solved]
|
#2 |
Member
Vishal
Join Date: Jul 2013
Posts: 73
Rep Power: 13 |
I solved the problem.
Just delet everything else in the *.obj file apart from v vn vt f |
|
October 6, 2013, 18:00 |
|
#3 |
Member
Miro
Join Date: Jan 2013
Location: Europe
Posts: 51
Rep Power: 13 |
Is there a way to convert it to .stl? I bet there is. Maybe surface convert can do that?
|
|
October 7, 2013, 00:20 |
|
#4 | |
Member
Vishal
Join Date: Jul 2013
Posts: 73
Rep Power: 13 |
Quote:
Yeah there is a way to convert it to .stl. It cannot be done directly though using surfaceConvert. You have to open the .obj file in paraview and then File> Save Data - save as .vtk . Go to the directory where the file is saved and perform surfaceConvert <vtk_file_name> <stl_file_name>. |
||
October 7, 2013, 04:54 |
|
#5 |
Member
Miro
Join Date: Jan 2013
Location: Europe
Posts: 51
Rep Power: 13 |
Nice. Anyway, maybe you can do that with foamToVTK?
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] swak4foam for OpenFOAM 4.0 | mnikku | OpenFOAM Community Contributions | 80 | May 17, 2022 09:06 |
[OpenFOAM.org] Patches to compile OpenFOAM 2.2 on Mac OS X | gschaider | OpenFOAM Installation | 136 | October 10, 2017 18:25 |
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 | Seroga | OpenFOAM Community Contributions | 9 | June 12, 2015 18:18 |
[swak4Foam] swak4foam building problem | GGerber | OpenFOAM Community Contributions | 54 | April 24, 2015 17:02 |
[swak4Foam] build problem swak4Foam OF 2.2.0 | mcathela | OpenFOAM Community Contributions | 14 | April 23, 2013 14:59 |