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/)
-   -   [Salome] DAT file from Salome for use with Foam. (https://www.cfd-online.com/Forums/openfoam-meshing/134142-dat-file-salome-use-foam.html)

massive_turbulence April 24, 2014 23:14

DAT file from Salome for use with Foam.
 
I used Salome to generate a mesh and sent it to a dat file, mainly because the unv format would lose triangles. Basically I then tried using datToFoam
but I got this error?



Code:

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

FOAM exiting


xsa May 3, 2017 04:49

Polyhedrons from salome to openfoam
 
Hi,

this post is quite old but did you manage to generate the mesh with the funciton datToFoam?

i have made a mesh in salome with the algorythm "body Fitting" which consists of polyhedra apart from hexahedra and if i export the mesh in UNV format the polyhedra are missed. Also if i use the script "salomeToOpenFoam.py" i get an error that says "list assignment index out of range".

Does somebody know if it is possible to export polyhedra from salome to openfoam?

thank you

Xabi


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