|
[Sponsors] |
April 19, 2006, 06:01 |
Using starToFoam
|
#1 |
Member
clo
Join Date: Mar 2009
Posts: 36
Rep Power: 17 |
Hi, I'm trying to use starToFoam but I can't understand how. Let's say I've 3 files (test.bnd,test.cel,test.vrt), I put these files in a directory called "star", and a root directory called "Star" then I type:
starToFoam $HOME_RUN/tutorials/Star star test Output: --> FOAM FATAL IO ERROR : cannot open file file: /tutorials/Star/star/system/controlDict at line 0. Sorry but I tried in such a different way to do that but the results wasn't good...I also put the "test-files" in a polyMesh directory of a case instead of the other files to create the mesh, but nothing! Thanx ciao |
|
April 19, 2006, 06:58 |
you have to put your Star file
|
#2 |
Member
stefan
Join Date: Mar 2009
Posts: 96
Rep Power: 17 |
you have to put your Star files into a existing FOAM case. As you see in the error message FOAM complains about a missing controlDict file!
hth |
|
April 19, 2006, 07:04 |
Thanx...I did it and another e
|
#3 |
Member
clo
Join Date: Mar 2009
Posts: 36
Rep Power: 17 |
Thanx...I did it and another error appears:
--> FOAM FATAL ERROR : Cannot read file "test.vrt" From function starMesh::readPoints() in file readPoints.C at line 110. FOAM aborting Foam::error::printStack(Foam:stream&) Foam::error::abort() starToFoam [0x8050800] starToFoam [0x804e554] starToFoam [0x8062ad3] __libc_start_main __gxx_personality_v0 Abortito The .vrt file doesn't seem to have any problem The structure is as requires like PointsNumber xcoord ycoord zcoor with the right spaces Thanx a lot! |
|
April 19, 2006, 07:35 |
this problem is mentioned in t
|
#4 |
Member
stefan
Join Date: Mar 2009
Posts: 96
Rep Power: 17 |
this problem is mentioned in the userguide (chapter mesh conversion). You have to use foamCorrectVrt but there is no util like this in the recent versions!
I think your using a Star veriosn < 3.2.x because the problem do not show up with newer version of Star. |
|
April 19, 2006, 08:43 |
I understand; I thought that t
|
#5 |
Member
clo
Join Date: Mar 2009
Posts: 36
Rep Power: 17 |
I understand; I thought that the user guide talked about foamCorrectVrt only for spacing numbers in scientific notation...
|
|
April 19, 2006, 09:07 |
Sorry stefan, 1 more question:
|
#6 |
Member
clo
Join Date: Mar 2009
Posts: 36
Rep Power: 17 |
Sorry stefan, 1 more question: can you tell me if you know how correctly to write a .vrt file (spacing, form,...) ? So maybe I try to write a simple conversion program
Thank you! |
|
April 19, 2006, 09:16 |
yes that's right this util is
|
#7 |
Member
stefan
Join Date: Mar 2009
Posts: 96
Rep Power: 17 |
yes that's right this util is to fix the spacing problems!
Sorry I don't read your posting carefully enough. If you like you email me your Star files and I will have a look at it. |
|
April 19, 2006, 17:50 |
Put the StarCD files under the
|
#8 |
Senior Member
Joern Beilke
Join Date: Mar 2009
Location: Dresden
Posts: 530
Rep Power: 20 |
Put the StarCD files under the Star directory and try again.
|
|
April 20, 2006, 03:43 |
Joern, I try to put the 3 star
|
#9 |
Member
clo
Join Date: Mar 2009
Posts: 36
Rep Power: 17 |
Joern, I try to put the 3 starCD files everywhere but the message "--> FOAM FATAL ERROR : Cannot read file "test.vrt" " is still there...Probably as stefan said it's a spacing problem.
Has anyone a .vrt file that is known to work ? So I can fix the structure of the file... |
|
April 20, 2006, 04:07 |
the structure of the vrt-file
|
#10 |
Member
stefan
Join Date: Mar 2009
Posts: 96
Rep Power: 17 |
the structure of the vrt-file is like this:
1 0.000000000 0.000000000 -0.560000020E-02 2 0.258686100E-02-0.107151300E-02-0.635000000E-02 3 0.517372500E-02-0.214302720E-02-0.710000000E-02 . . . but your problem is not the incorrect structure of the vrt file because the error message is "Cannot read file ...". What FOAM version do you use? |
|
April 20, 2006, 04:11 |
Actually the structure it's th
|
#11 |
Member
clo
Join Date: Mar 2009
Posts: 36
Rep Power: 17 |
Actually the structure it's the same...I use OpenFoam 1.3
|
|
April 20, 2006, 05:45 |
It has probably been mentioned
|
#12 |
Senior Member
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21 |
It has probably been mentioned before, but I strongly suggest that anyone who wants to convert a star mesh to OF format use the ccm24ToFoam converter.
Of course, you have to save the case in ccm format first, but the process is generally less prone to errors since ccm is a polyhedral mesh format as well. |
|
April 20, 2006, 07:23 |
I finally solved this problem
|
#13 |
Member
clo
Join Date: Mar 2009
Posts: 36
Rep Power: 17 |
I finally solved this problem (using OF 1.3), the .vrt files need 12 spaces before the number of the point and 1 space between the coordinates.
Now I've another problem; After run starToFoam the output: Number of points = 100 Number of cells = 100 Foam::error::printStack(Foam:stream&) Foam::sigSegv::sigSegvHandler(int) /lib/tls/libpthread.so.0 [0x5967c8] starToFoam [0x8051bad] starToFoam [0x804e55c] starToFoam [0x8062ad3] __libc_start_main __gxx_personality_v0 Segmentation fault Any idea? |
|
October 12, 2008, 08:17 |
Hi,
i am having problem whe
|
#14 |
Member
Vishal Jambhekar
Join Date: Mar 2009
Location: University Stuttgart, Stuttgart Germany
Posts: 90
Blog Entries: 1
Rep Power: 17 |
Hi,
i am having problem when i run startofoam. I believe there is a bug in my data structure can anyone help me in creating a small test case with 10 by 10 cells so I can compare the .vrt .bnd and .cell data structures files with my files. Or an dany one rovide a model I can convert successfully so that I can validate..
__________________
Cheers, Vishal Jambhekar... "Simulate the way ahead......!!!" |
|
October 12, 2008, 09:23 |
Hi,
can anyone help me in thi
|
#15 |
Member
Vishal Jambhekar
Join Date: Mar 2009
Location: University Stuttgart, Stuttgart Germany
Posts: 90
Blog Entries: 1
Rep Power: 17 |
Hi,
can anyone help me in this, while converting mesh from StarToFoam i am getting following error, i am unable to detect the cause for the error.... user@zeus10:~/OpenFOAM/Vishal/run/Star/Test_1> starToFoam test /*---------------------------------------------------------------------------*\ | ========= | | | \ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \ / O peration | Version: 1.5 | | \ / A nd | Web: http://www.OpenFOAM.org | | \/ M anipulation | | \*---------------------------------------------------------------------------*/ Exec : starToFoam test Date : Oct 12 2008 Time : 17:40:27 Host : zeus10 PID : 15372 Case : /home/user/OpenFOAM/Vishal/run/Star/Test_1 nProcs : 1 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Number of points = 73 Attempt to get back from bad stream file: test.cel at line 53. From function void Istream::getBack(token& t) in file db/IOstreams/IOstreams/Istream.C at line 44. FOAM exiting user@zeus10:~/OpenFOAM/Vishal/run/Star/Test_1> Can anyone please help me in this respect.... Thanks Vishal
__________________
Cheers, Vishal Jambhekar... "Simulate the way ahead......!!!" |
|
October 14, 2008, 08:09 |
Hi Fomers,
Can anyone pleas
|
#16 |
Member
Vishal Jambhekar
Join Date: Mar 2009
Location: University Stuttgart, Stuttgart Germany
Posts: 90
Blog Entries: 1
Rep Power: 17 |
Hi Fomers,
Can anyone please tell me how to make finer mesh for a mesh which is importe from Ster-CD...? I have successfully execute the star4ToFoam utelity But Now my concer is to convert the model to finer mesh as the mesh i imported from Star-CD is very course. There is no blockmesh file created. Thanks Vishal
__________________
Cheers, Vishal Jambhekar... "Simulate the way ahead......!!!" |
|
October 14, 2008, 13:12 |
Hi
star-cd does not have a
|
#17 |
New Member
Steven Parole
Join Date: Mar 2009
Posts: 3
Rep Power: 17 |
Hi
star-cd does not have a great mesh generator. It has been difficult to export meshes from star-cd with right boundary conditions. Boundary conditions often do not match in star-cd and openfoam. As a result I found it very difficult to switch between two codes. If you find a way please let me know. |
|
October 15, 2008, 03:31 |
Hi Steven,
i have tried to
|
#18 |
Member
Vishal Jambhekar
Join Date: Mar 2009
Location: University Stuttgart, Stuttgart Germany
Posts: 90
Blog Entries: 1
Rep Power: 17 |
Hi Steven,
i have tried to convert Star-cd mesh to open foam and gor it done sucessfully for some simple test model and i alsi got it for the model i was interested in ... but the issue i am facing is it does not creates blockmesh directory so i am finding difficulty to make it finer as the mesh i got is very course..... Thanks
__________________
Cheers, Vishal Jambhekar... "Simulate the way ahead......!!!" |
|
October 15, 2008, 04:07 |
Vishal,
The topological inf
|
#19 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40 |
Vishal,
The topological information contained in the blockMesh dictionary cannot be obtained from a polyMesh - except for trivial cases. NONE of the mesh converters (fluent,starcd,ccm,etc) can generate a blockMesh dictionary either. I haven't used it myself, but perhaps the 'refineMesh' utility is what you are looking for. |
|
October 15, 2008, 16:11 |
Hi,
Thanks mark for ur repl
|
#20 |
Member
Vishal Jambhekar
Join Date: Mar 2009
Location: University Stuttgart, Stuttgart Germany
Posts: 90
Blog Entries: 1
Rep Power: 17 |
Hi,
Thanks mark for ur reply. yes, i have tried "refineMesh" option with the mesh i generated in OpenFoam and i got the Refined mesh also ....can you please tell me how can i find the feaction by which it has refined the mesh.....can we select the refinement....factor by oue own... i am using OpenFoam 1.5 version acn u please tell me anything about how to use "autoRefineMesh" utelity... Thanks Vishal
__________________
Cheers, Vishal Jambhekar... "Simulate the way ahead......!!!" |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Running starToFoam creates read vrt error in 0F 14 | shaun | OpenFOAM Pre-Processing | 2 | March 14, 2013 00:41 |
[Other] StarToFoam error | Kart | OpenFOAM Meshing & Mesh Conversion | 1 | February 4, 2010 05:38 |
[Commercial meshers] StarToFoam checkMesh problems | sylvain91 | OpenFOAM Meshing & Mesh Conversion | 1 | June 15, 2006 05:36 |