CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   converting tetgenToFoam (http://www.cfd-online.com/Forums/openfoam/94151-converting-tetgentofoam.html)

vahid_paris November 7, 2011 12:54

converting tetgenToFoam
 
Hi everybody,
I want to convert .stl (test.stl) file to openFoam. First, I used tetgen to convert .stl file to (.ele, .face, .node and .smesh) with the common order:
./tetgen test.stl

And then, I used the following command to convert tetgen files (test.1.ele, test.1.node, test.1.face and test.1.smesh) to Foam:

tetgenToFoam test.1

But, and I have the following error:

/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.0.1 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.0.1-51f1de99a4bc
Exec : tetgenToFoam test.1
Date : Nov 07 2011
Time : 17:29:05
Host : ST2016X
PID : 21807
Case : /home/simuser/TEST/tutorials/incompressible/channelFoam/channel395
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time
Files:
nodes : "test.1.node"
elems : "test.1.ele"
faces : "test.1.face"
Reading .face file for boundary information

--> FOAM FATAL ERROR:
Cannot read "test.1.node" or "test.1.ele"
From function tetgenToFoam
in file tetgenToFoam.C at line 136.
FOAM exiting

any idea?
Actually, I used an example in the tutorial and I just replaced blockMeshDict file in polyMesh folder with test.stl file (wich has a different geometry). I just wanted to check the mesh conversion (from .stl to openFoam). Should I change any other files in channel395 folder?
Thanks

Flexwars December 4, 2012 12:42

Hey Vahid,
i have the exact same problem. Did you find a solution yet?
Hopfully, its quite a long time ago ;)

Thx
Felix


All times are GMT -4. The time now is 20:12.