CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ...

Using starToFoam

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   April 19, 2006, 05:01
Default Hi, I'm trying to use starToFo
  #1
clo
Member
 
clo
Join Date: Mar 2009
Posts: 36
Rep Power: 8
clo is on a distinguished road
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
clo is offline   Reply With Quote

Old   April 19, 2006, 05:58
Default you have to put your Star file
  #2
Member
 
stefan
Join Date: Mar 2009
Posts: 96
Rep Power: 8
stefanke is on a distinguished road
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
stefanke is offline   Reply With Quote

Old   April 19, 2006, 06:04
Default Thanx...I did it and another e
  #3
clo
Member
 
clo
Join Date: Mar 2009
Posts: 36
Rep Power: 8
clo is on a distinguished road
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!
clo is offline   Reply With Quote

Old   April 19, 2006, 06:35
Default this problem is mentioned in t
  #4
Member
 
stefan
Join Date: Mar 2009
Posts: 96
Rep Power: 8
stefanke is on a distinguished road
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.
stefanke is offline   Reply With Quote

Old   April 19, 2006, 07:43
Default I understand; I thought that t
  #5
clo
Member
 
clo
Join Date: Mar 2009
Posts: 36
Rep Power: 8
clo is on a distinguished road
I understand; I thought that the user guide talked about foamCorrectVrt only for spacing numbers in scientific notation...
clo is offline   Reply With Quote

Old   April 19, 2006, 08:07
Default Sorry stefan, 1 more question:
  #6
clo
Member
 
clo
Join Date: Mar 2009
Posts: 36
Rep Power: 8
clo is on a distinguished road
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!
clo is offline   Reply With Quote

Old   April 19, 2006, 08:16
Default yes that's right this util is
  #7
Member
 
stefan
Join Date: Mar 2009
Posts: 96
Rep Power: 8
stefanke is on a distinguished road
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.
stefanke is offline   Reply With Quote

Old   April 19, 2006, 16:50
Default Put the StarCD files under the
  #8
Senior Member
 
Joern Beilke
Join Date: Mar 2009
Location: Dresden
Posts: 185
Rep Power: 9
JBeilke is on a distinguished road
Put the StarCD files under the Star directory and try again.
JBeilke is offline   Reply With Quote

Old   April 20, 2006, 02:43
Default Joern, I try to put the 3 star
  #9
clo
Member
 
clo
Join Date: Mar 2009
Posts: 36
Rep Power: 8
clo is on a distinguished road
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...
clo is offline   Reply With Quote

Old   April 20, 2006, 03:07
Default the structure of the vrt-file
  #10
Member
 
stefan
Join Date: Mar 2009
Posts: 96
Rep Power: 8
stefanke is on a distinguished road
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?
stefanke is offline   Reply With Quote

Old   April 20, 2006, 03:11
Default Actually the structure it's th
  #11
clo
Member
 
clo
Join Date: Mar 2009
Posts: 36
Rep Power: 8
clo is on a distinguished road
Actually the structure it's the same...I use OpenFoam 1.3
clo is offline   Reply With Quote

Old   April 20, 2006, 04:45
Default It has probably been mentioned
  #12
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 12
eugene is on a distinguished road
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.
eugene is offline   Reply With Quote

Old   April 20, 2006, 06:23
Default I finally solved this problem
  #13
clo
Member
 
clo
Join Date: Mar 2009
Posts: 36
Rep Power: 8
clo is on a distinguished road
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?
clo is offline   Reply With Quote

Old   October 12, 2008, 07:17
Default 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: 8
vishal is on a distinguished road
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......!!!"
vishal is offline   Reply With Quote

Old   October 12, 2008, 08:23
Default 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: 8
vishal is on a distinguished road
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......!!!"
vishal is offline   Reply With Quote

Old   October 14, 2008, 07:09
Default 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: 8
vishal is on a distinguished road
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......!!!"
vishal is offline   Reply With Quote

Old   October 14, 2008, 12:12
Default Hi star-cd does not have a
  #17
New Member
 
Steven Parole
Join Date: Mar 2009
Posts: 3
Rep Power: 8
steven is on a distinguished road
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.
steven is offline   Reply With Quote

Old   October 15, 2008, 02:31
Default 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: 8
vishal is on a distinguished road
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......!!!"
vishal is offline   Reply With Quote

Old   October 15, 2008, 03:07
Default Vishal, The topological inf
  #19
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.io/
Posts: 777
Rep Power: 18
olesen will become famous soon enough
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.
olesen is offline   Reply With Quote

Old   October 15, 2008, 15:11
Default 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: 8
vishal is on a distinguished road
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......!!!"
vishal is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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
StarToFoam checkMesh problems sylvain91 OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 1 June 15, 2006 04:36


All times are GMT -4. The time now is 06:17.