CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... (http://www.cfd-online.com/Forums/openfoam-meshing-other/)
-   -   Cannot convert fluent or tgrid hexcore mesh (http://www.cfd-online.com/Forums/openfoam-meshing-other/81291-cannot-convert-fluent-tgrid-hexcore-mesh.html)

aerogt3 October 22, 2010 00:51

Cannot convert fluent or tgrid hexcore mesh
 
Hey all,

I typically export ANSA meshes to FOAM directly but in this case I want to convert a fluent hexcore case. It was generated in tgrid and converted to polyhedra and then sent to fluent. The mesh has tets and prisms, and all the wall cells are tria. I was able to convert pure tet meshes and tet+prism meshes, so I have narrowed it down to the hexcore being the issue.

I have tried the following:

Wrote out tgrid mesh as polyhedra to .msh
Wrote out tgrid mesh NOT as polyhedra to .msh
Wrote out tgrid mesh as polyhedra to .cas
Wrote out tgrid mesh NOT as polyhedra to .cas

Using fluent3DMeshToFoam as suggested here I got the following error: http://www.cfd-online.com/Forums/ope...al-meshes.html

Quote:

Zone: 24 name: a_domain type: symmetry

--> FOAM FATAL ERROR:
Do not understand characters: /
on line 30438167

From function fluentMeshToFoam::lexer
in file fluent3DMeshToFoam.L at line 746.

FOAM exiting
When I do this with fluentmeshtofoam (also on the four tgrid exports listed above) I get the following error:

Quote:

Read zone1:47 name:a_domain patchTypeID:pressure-outlet
/outlet:

--> FOAM FATAL IO ERROR:
Attempt to get back from bad stream

file: IStringStream.sourceFile at line 0.

From function void Istream::getBack(token&)
in file db/IOstreams/IOstreams/Istream.C at line 38.

FOAM exiting
When you export to fluent there is only one option, unlike the 4 from tgrid. You can only export polyhedra and only to .cas format. Using fluent3DMeshToFoam I get:

Quote:

Zone: 2 name: a_domain type: symmetry

--> FOAM FATAL ERROR:
Do not understand characters: /
on line 30040251

From function fluentMeshToFoam::lexer
in file fluent3DMeshToFoam.L at line 746.

FOAM exiting
And using fluentMeshToFoam I get:

Quote:

Found end of section in unknown:)

Read zone1:2 name:a_domain patchTypeID:symmetry
/sym-side:00

--> FOAM FATAL IO ERROR:
wrong token type - expected word found on line 0 the label 1

file: IStringStream.sourceFile at line 0.

From function operator>>(Istream&, word&)
in file primitives/strings/word/wordIO.C at line 76.

FOAM exiting

vangelis October 22, 2010 02:58

Hi Robert,

I have no answer for the mesh conversion, just a question.
Why don't you just mesh in ANSA the volume using
MESHV>Hexapoly algorithm and output in OF directly
as you have done before?

Regards
Vangelis

aerogt3 October 22, 2010 11:55

Quote:

Originally Posted by vangelis (Post 280278)
I have no answer for the mesh conversion, just a question.
Why don't you just mesh in ANSA the volume using
MESHV>Hexapoly algorithm and output in OF directly
as you have done before?

Regards
Vangelis

Well, I am converting an old mesh for a project where I no longer have the geometry to do a new mesh for.

BUT, I have figured out the problem! FOAM didn't like my boundary condition names! Some of them had a slash in them "a_domain/symmetry"

Once I change the slash to an underscore it worked (so I think, we'll see when I solve it haha!)


All times are GMT -4. The time now is 09:34.