CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [Commercial meshers] Using starToFoam (https://www.cfd-online.com/Forums/openfoam-meshing/61745-using-startofoam.html)

clo April 19, 2006 05:01

Using starToFoam
 
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

stefanke April 19, 2006 05:58

you have to put your Star file
 
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

clo April 19, 2006 06:04

Thanx...I did it and another e
 
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:http://www.cfd-online.com/OpenFOAM_D...part/proud.gifstream&)
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!

stefanke April 19, 2006 06:35

this problem is mentioned in t
 
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.

clo April 19, 2006 07:43

I understand; I thought that t
 
I understand; I thought that the user guide talked about foamCorrectVrt only for spacing numbers in scientific notation...

clo April 19, 2006 08:07

Sorry stefan, 1 more question:
 
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!

stefanke April 19, 2006 08:16

yes that's right this util is
 
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.

JBeilke April 19, 2006 16:50

Put the StarCD files under the
 
Put the StarCD files under the Star directory and try again.

clo April 20, 2006 02:43

Joern, I try to put the 3 star
 
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...

stefanke April 20, 2006 03:07

the structure of the vrt-file
 
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?

clo April 20, 2006 03:11

Actually the structure it's th
 
Actually the structure it's the same...I use OpenFoam 1.3

eugene April 20, 2006 04:45

It has probably been mentioned
 
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.

clo April 20, 2006 06:23

I finally solved this problem
 
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:http://www.cfd-online.com/OpenFOAM_D...part/proud.gifstream&)
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?

vishal October 12, 2008 07:17

Hi, i am having problem whe
 
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..

vishal October 12, 2008 08:23

Hi, can anyone help me in thi
 
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

vishal October 14, 2008 07:09

Hi Fomers, Can anyone pleas
 
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

steven October 14, 2008 12:12

Hi star-cd does not have a
 
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.

vishal October 15, 2008 02:31

Hi Steven, i have tried to
 
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

olesen October 15, 2008 03:07

Vishal, The topological inf
 
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.

vishal October 15, 2008 15:11

Hi, Thanks mark for ur repl
 
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


All times are GMT -4. The time now is 05:29.