converting fluent .msh file to openfoam
Hi,
I have a .msh file which opens in fluent but I am getting the following error message when I try to convert the fluent file to openfoam: --> FOAM FATAL IO ERROR: Attempt to get back from bad stream file: IStringStream.sourceFile at line 0. From function bool Foam::Istream::getBack(Foam::token&) in file db/IOstreams/IOstreams/Istream.C at line 56. FOAM exiting I am using the following command in openfoam: fluentMeshToFoam <mesh_file>.msh (I am using OF version 6) Any help would be much appreciated! Lauren |
How did you create the .msh file?
|
If it's a 3d mesh try
Code:
fluent3DMeshToFoam <mesh_file>.msh If the mesh was created on Windows try to convert this to Unix formatting first: Code:
dos2unix <mesh_file>.msh |
Hi,
I meshed the geometry in VMTK |
Quote:
fluent3DMeshToFoam but I get the following message: --> FOAM FATAL IO ERROR: wrong token type - expected int64_t, found on line 0 the word 'a' file: IStringStream.sourceFile at line 0. From function Foam::Istream& Foam::operator>>(Foam::Istream&, int64_t&) in file primitives/ints/int64/int64IO.C at line 62. FOAM exiting The mesh was created in VMTK on a linux PC. |
Quote:
IStream errors are due to input variable incompatibilities. This one e.g. expects some number in the first read line, but it gets some word beginning from the letter 'a'. Can you copy your mesh file header with some first lines? It should look a bit like (opened in some text editor): Code:
(0 grid written by ANSYS Meshing |
Here is the first few lines of my .msh file:
(0 "GAMBIT to Fluent File") (0 "Dimension:") (2 3) (10 (0 1 691ef 1 3)) (10 (1 1 691ef 1 3)( -1.2803401947e+01 -1.3421555519e+01 -5.0188274384e+01 -1.3403158188e+01 -1.3795591354e+01 -4.9609939575e+01 -1.3658709526e+01 -1.3156168938e+01 -5.0240833282e+01 1.1650079489e+00 -4.0743322372e+00 -4.4399948120e+01 1.3966637850e+00 -4.2284913063e+00 -4.5130626678e+01 1.4664224386e+00 -3.4754595757e+00 -4.5022266388e+01 I have made sure it is ASCII format and it the mesh works in Fluent. Thanks, Lauren |
All times are GMT -4. The time now is 20:06. |