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   November 30, 2009, 14:28
Default
  #21
New Member
 
raul
Join Date: Nov 2009
Posts: 13
Rep Power: 7
rudy is on a distinguished road
Hi,
I am a new user of openfoam and I am having difficulty in mesh conversion from starcd form(.vrt) to openfoam-1.6. I generated mesh in Hexpress(Numeca) and exported it in .vrt form,but while using starToFoam command I get following error messege:
Create time

Number of points = 665452

Cannot read file "vfa2.cel"#0 Foam::error:rintStack(Foam::Ostream&) in "/home/rahul/OpenFOAM/OpenFOAM-1.6/lib/linuxGccDPOpt/libOpenFOAM.so"
#1 Foam::error::abort() in "/home/rahul/OpenFOAM/OpenFOAM-1.6/lib/linuxGccDPOpt/libOpenFOAM.so"
#2 starMesh::readCells() in "/home/rahul/OpenFOAM/OpenFOAM-1.6/applications/bin/linuxGccDPOpt/starToFoam"
#3 starMesh::starMesh(Foam::fileName const&, Foam::Time const&, double) in "/home/rahul/OpenFOAM/OpenFOAM-1.6/applications/bin/linuxGccDPOpt/starToFoam"
#4 main in "/home/rahul/OpenFOAM/OpenFOAM-1.6/applications/bin/linuxGccDPOpt/starToFoam"
#5 __libc_start_main in "/lib/tls/i686/cmov/libc.so.6"
#6 _start at /usr/src/packages/BUILD/glibc-2.9/csu/../sysdeps/i386/elf/start.S:122


From function starMesh::readCells()
in file readCells.C at line 249.

FOAM aborting

Aborted

Hexpress doesn't export mesh in .msh form but in .grd form for which I don't know if there is any converter available yet,another from it exports is .cgns which if I want to convert to openfoam I guess I have to program my own converter which I am not very good at.If anyone have any idea about what I am doing wrong or how can I get it done,please let me know.
Thanks.
rudy
rudy is offline   Reply With Quote

Old   December 1, 2009, 03:40
Default
  #22
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.io/
Posts: 777
Rep Power: 18
olesen will become famous soon enough
Quote:
Originally Posted by rudy View Post
Hi,
I am a new user of openfoam and I am having difficulty in mesh conversion from starcd form(.vrt) to openfoam-1.6. I generated mesh in Hexpress(Numeca) and exported it in .vrt form
If it is Star-CD form, it will have at least two files (.vrt = vertex positions, .cel = cell definitions) and perhaps also with a .inp (input file).
If you only have a single file, your data are incomplete. This is what the error message 'Cannot read file "vfa2.cel"' seems to be telling you.

Something else you need to be aware of: there is an older STAR-CD v3 format and a newer STAR-CD v4 format. You can see the difference in the first line of the respective .vrt, .cel files: the v4 format has "PROSTAR_CELL" or "PROSTAR_VERTEX".
However, since reading the vertex file apparently worked, I'd guess you have v3 format.
olesen is offline   Reply With Quote

Old   December 1, 2009, 14:35
Default
  #23
New Member
 
raul
Join Date: Nov 2009
Posts: 13
Rep Power: 7
rudy is on a distinguished road
Thanks Olesen,it works now and I successfully converted the mesh to opnfoam form...Thanks a lot...
rudy is offline   Reply With Quote

Old   December 7, 2009, 06:45
Default
  #24
New Member
 
raul
Join Date: Nov 2009
Posts: 13
Rep Power: 7
rudy is on a distinguished road
Hi,
I have another problem now...I am using Electrostatic solver and in my solution i have got potential and charge density distribution in my domain but now I want to find gradient of the potential distribution(electric field) and I am using "gradient of unstructured dataset" function from parafoam for the purpose but while applying this function in parafoam it stops inbetween and yields the following error:

Generic Warning: In /home/dm2/henry/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/VTK/Common/vtkMath.cxx, line 1645
Unable to factor linear system

can anyone tell me what does it imply and how to solve it.
Thanks,
rudy.
rudy is offline   Reply With Quote

Old   December 7, 2009, 07:48
Default
  #25
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.io/
Posts: 777
Rep Power: 18
olesen will become famous soon enough
Quote:
Originally Posted by rudy View Post
Hi,
I have another problem now...
Generic Warning: In /home/dm2/henry/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/VTK/Common/vtkMath.cxx, line 1645
Unable to factor linear system
This doesn't look like anything to do with starcd conversion, but a vtk/paraview issue. You should not be posting on this thread.
olesen is offline   Reply With Quote

Old   December 7, 2009, 10:05
Default
  #26
New Member
 
raul
Join Date: Nov 2009
Posts: 13
Rep Power: 7
rudy is on a distinguished road
ohh,i m sorry,from next time onwards i ll keep it in mind...
thanks,
rudy
rudy is offline   Reply With Quote

Old   January 28, 2010, 06:54
Default starToFoam problems
  #27
New Member
 
Arton Kosumi
Join Date: Jan 2010
Location: Stuttgart
Posts: 2
Rep Power: 0
Kart is on a distinguished road
Hello at all. I'am a new user of OpenFOAM. I'am trying to use starToFoam but I am getting the following error and I don't know that is wrong?


xxx453:~/OpenFOAM/arton-1.6/starcd/kubus> starToFoam Kubus
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 1.6-f802ff2d6c5a
Exec : starToFoam Kubus
Date : Jan 28 2010
Time : 11:37:34
Host : xxx453
PID : 9369
Case : /perm1/dschmidt/OpenFOAM/arton-1.6/starcd/kubus
nProcs : 1
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Number of points = 7655

Number of cells = 5682

Star region 457 with type WALL is now Foam patch 0
Star region 456 with type WALL is now Foam patch 1
Star region 405 with type ATTA is now Foam patch 2
Star region 404 with type ATTA is now Foam patch 3
Star region 458 with type WALL is now Foam patch 4
Star region 430 with type INLE is now Foam patch 5
Star region 429 with type INLE is now Foam patch 6
Star region 410 with type ATTA is now Foam patch 7
Star region 409 with type ATTA is now Foam patch 8
Star region 451 with type WALL is now Foam patch 9
Star region 427 with type INLE is now Foam patch 10
Star region 426 with type INLE is now Foam patch 11
Star region 402 with type ATTA is now Foam patch 12
Star region 401 with type ATTA is now Foam patch 13
Star region 435 with type WALL is now Foam patch 14
Star region 434 with type WALL is now Foam patch 15
Star region 407 with type ATTA is now Foam patch 16
Star region 406 with type ATTA is now Foam patch 17
Star region 432 with type WALL is now Foam patch 18
Star region 431 with type WALL is now Foam patch 19
Star region 442 with type WALL is now Foam patch 20
Star region 412 with type ATTA is now Foam patch 21
Star region 417 with type INLE is now Foam patch 22
Star region 201 with type INLE is now Foam patch 23
Star region 437 with type WALL is now Foam patch 24
Star region 422 with type INLE is now Foam patch 25
Star region 441 with type WALL is now Foam patch 26
Star region 411 with type ATTA is now Foam patch 27
Star region 416 with type INLE is now Foam patch 28
Star region 436 with type WALL is now Foam patch 29
Star region 421 with type INLE is now Foam patch 30
Star region 445 with type WALL is now Foam patch 31
Star region 415 with type ATTA is now Foam patch 32
Star region 420 with type INLE is now Foam patch 33
Star region 440 with type WALL is now Foam patch 34
Star region 425 with type INLE is now Foam patch 35
Star region 444 with type WALL is now Foam patch 36
Star region 202 with type INLE is now Foam patch 37
Star region 419 with type INLE is now Foam patch 38
Star region 414 with type ATTA is now Foam patch 39
Star region 439 with type WALL is now Foam patch 40
Star region 424 with type INLE is now Foam patch 41

Setting size of boundary to 42

#0 Foam::error:rintStack(Foam::Ostream&) in "/perm1/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so"
#1 Foam::sigSegv::sigSegvHandler(int) in "/perm1/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so"
#2 ?? in "/lib/libc.so.6"
#3 Foam::List<int>:perator=(Foam::List<int> const&) in "/perm1/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/starToFoam"
#4 starMesh::readBoundary() in "/perm1/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/starToFoam"
#5 starMesh::starMesh(Foam::fileName const&, Foam::Time const&, double) in "/perm1/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/starToFoam"
#6 main in "/perm1/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/starToFoam"
#7 __libc_start_main in "/lib/libc.so.6"
#8 _start at /usr/src/packages/BUILD/glibc-2.9/csu/../sysdeps/x86_64/elf/start.S:116
Segmentation fault
xxx453:~/OpenFOAM/arton-1.6/starcd/kubus>

Can anyone help me PLEASE!!

Thank you

Arton
Kart is offline   Reply With Quote

Old   June 17, 2010, 20:35
Default
  #28
Member
 
Join Date: Jun 2010
Posts: 33
Rep Power: 7
trex930 is on a distinguished road
(This post has been deleted)

Last edited by trex930; June 17, 2010 at 23:00.
trex930 is offline   Reply With Quote

Old   December 12, 2011, 06:13
Default
  #29
Member
 
Avdeev Evgeniy
Join Date: Jan 2011
Location: Togliatty, Russia
Posts: 52
Blog Entries: 1
Rep Power: 12
j-avdeev will become famous soon enough
Send a message via Skype™ to j-avdeev
I'm trying import Star-CD mesh..

Code:
$ star4ToFoam aero_OF_volume.ccm
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  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   : star4ToFoam aero_OF_volume.ccm
Date   : Dec 12 2011
Time   : 05:07:57
Host   : debian
PID    : 11590
Case   : /mnt/sda6/openfoam/2116aeroII
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

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
no constant/boundaryRegion information available
no constant/cellTable information available
Number of points  = 1103981
Number of fluids  = 0
Number of baffles = 0
Ignored   solids  = 0
Ignored   shells  = 0


--> FOAM FATAL ERROR: 
no cells in file "aero_OF_volume.cel"

    From function meshReaders::STARCD::readCells()
    in file meshReader/starcd/STARCDMeshReader.C at line 369.

FOAM aborting

#0  Foam::error::printStack(Foam::Ostream&) in "/opt/openfoam201/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#1  Foam::error::abort() in "/opt/openfoam201/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#2  Foam::meshReaders::STARCD::readCells(Foam::fileName const&) in "/opt/openfoam201/platforms/linux64GccDPOpt/lib/libconversion.so"
#3  Foam::meshReaders::STARCD::readGeometry(double) in "/opt/openfoam201/platforms/linux64GccDPOpt/lib/libconversion.so"
#4  Foam::meshReader::mesh(Foam::objectRegistry const&) in "/opt/openfoam201/platforms/linux64GccDPOpt/lib/libconversion.so"
#5  
 in "/opt/openfoam201/platforms/linux64GccDPOpt/bin/star4ToFoam"
#6  __libc_start_main in "/lib/libc.so.6"
#7  
 in "/opt/openfoam201/platforms/linux64GccDPOpt/bin/star4ToFoam"
Aborted
But aero_OF_volume.cel looks ok..
Code:
PROSTAR_CELL
        1              1      324   333716   330138        0        0        0        0        4    4
        2         330138   333716   499158   495580        0        0        0        0        4    4
        3         495580   499158   663961   660383        0        0        0        0        4    4
        4         330138   330147     1134        1        0        0        0        0        4    4
        5         495580   495589   330147   330138        0        0        0        0        4    4
...
...
j-avdeev is offline   Reply With Quote

Old   September 20, 2012, 11:52
Default
  #30
Member
 
Join Date: Sep 2012
Posts: 30
Rep Power: 4
emirust is on a distinguished road
Hey all!

j-avdeev, did you get any solution on your particular problem?

I have a similar problem ;-)
emirust is offline   Reply With Quote

Old   September 26, 2012, 03:11
Default
  #31
Member
 
Avdeev Evgeniy
Join Date: Jan 2011
Location: Togliatty, Russia
Posts: 52
Blog Entries: 1
Rep Power: 12
j-avdeev will become famous soon enough
Send a message via Skype™ to j-avdeev
No, still have this problem (in 2.1.1).
(Maybe we need to create bug report?)

star4ToFoam import succesfull only with .cel and .vrt files, which was made by foamToStarMesh.
As solution - open .ccm StarMesh file in ANSA, convert it to .msh FluentMesh and import in OpenFOAM by fluentMeshToFoam.
j-avdeev is offline   Reply With Quote

Old   September 26, 2012, 03:20
Default
  #32
Senior Member
 
Vangelis Skaperdas
Join Date: Mar 2009
Location: Thessaloniki, Greece
Posts: 163
Rep Power: 9
vangelis is on a distinguished road
Quote:
Originally Posted by j-avdeev View Post
No, still have this problem (in 2.1.1).
(Maybe we need to create bug report?)

star4ToFoam import succesfull only with .cel and .vrt files, which was made by foamToStarMesh.
As solution - open .ccm StarMesh file in ANSA, convert it to .msh FluentMesh and import in OpenFOAM by fluentMeshToFoam.
If you can read the ccm file in ANSA why not output it directly in OpenFOAM
instead of Fluent format?
vangelis is offline   Reply With Quote

Old   September 26, 2012, 03:38
Default
  #33
Member
 
Avdeev Evgeniy
Join Date: Jan 2011
Location: Togliatty, Russia
Posts: 52
Blog Entries: 1
Rep Power: 12
j-avdeev will become famous soon enough
Send a message via Skype™ to j-avdeev
Quote:
Originally Posted by vangelis View Post
If you can read the ccm file in ANSA why not output it directly in OpenFOAM
instead of Fluent format?
Oh, yes, you right. I'm forgot that ANSA support OpenFOAM mesh format.
j-avdeev is offline   Reply With Quote

Old   September 26, 2012, 04:04
Default
  #34
Member
 
Join Date: Sep 2012
Posts: 30
Rep Power: 4
emirust is on a distinguished road
Yep, I haven't got star4ToFoam to work, even if it worked also for me when I tested with a mesh generated with blockMesh, then foamToStarMesh and try to read that worked fine.

My solution was to use ccm26ToFoam, which you can read more about here:

star-ccm mesh to O\/F

Check out post #29 ;-)
emirust 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:25.