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)

rudy November 30, 2009 13:28

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::printStack(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

olesen December 1, 2009 02:40

Quote:

Originally Posted by rudy (Post 238217)
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.

rudy December 1, 2009 13:35

Thanks Olesen,it works now and I successfully converted the mesh to opnfoam form...Thanks a lot...

rudy December 7, 2009 05:45

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.

olesen December 7, 2009 06:48

Quote:

Originally Posted by rudy (Post 238947)
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.

rudy December 7, 2009 09:05

ohh,i m sorry,from next time onwards i ll keep it in mind...
thanks,
rudy

Kart January 28, 2010 05:54

starToFoam problems
 
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::printStack(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>::operator=(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

trex930 June 17, 2010 20:35

(This post has been deleted)

j-avdeev December 12, 2011 05:13

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
...
...


emirust September 20, 2012 11:52

Hey all!

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

I have a similar problem ;-)

j-avdeev September 26, 2012 03:11

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.

vangelis September 26, 2012 03:20

Quote:

Originally Posted by j-avdeev (Post 383657)
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?

j-avdeev September 26, 2012 03:38

Quote:

Originally Posted by vangelis (Post 383660)
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.

emirust September 26, 2012 04:04

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:

http://www.cfd-online.com/Forums/ope...tml#post316994

Check out post #29 ;-)


All times are GMT -4. The time now is 07:19.