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/)
-   -   foam Mesh to Fluent (http://www.cfd-online.com/Forums/openfoam-meshing-other/69321-foam-mesh-fluent.html)

tachyon_me October 19, 2009 16:25

foam Mesh to Fluent
 
I'm trying to get foam mesh converted to fluent with
foamMeshToFluent

I'm not sure how to get this correct ... my fluent mesh is missing all the cellZone information. So I dont have any additional fluid/porous zones in the mesh converted in fluent format ..

Any help appreciated .. thanks

ronaldo October 21, 2009 02:59

Hi tachyon_me,

let me know ! It is 2D or 3D?

tachyon_me October 21, 2009 10:16

Thanks, it's 3d mesh. I was able to get them after splitting the mesh based on cellzones. Let me also know if there are quick and better way of doing ....

ronaldo October 22, 2009 02:06

use fluent3DMeshToFoam and let me know ...

gwierink October 22, 2009 07:02

Code:

fluentMeshToFoam myMesh.msh -writeSets -writeZones -scale 0.001
also works most of the time for me (for a mesh called myMesh.msh in mm).

Cheers, Gijs

tachyon_me October 22, 2009 10:26

Thanks , Thats helpful...

But In my case I would like to convert SnappyHexMesh "FOAM Mesh" to fluent format while keeping all cellZone as separate fluid zones in fluent...


I guess for this matter I cant do

foamMeshToFluent -time 4 -writeSets -writeZones


But otherwise if you would like to convert fluent mesh to foam the command suggested by Wierink works without a problem ...

jignesh_thaker2007 September 9, 2011 06:39

hello every one
 
hi
how i run my openfoam case in to fluent. because when i apply foamDataToFluent then it only convert .dat file but how i generate case file?

plz tel me

Toorop January 27, 2012 07:43

Hi,

as I see, the problem of exporting the correct region names from a foamMesh to fluentMesh is still present in foamMeshToFluent command. The whole domain is exported, all the regions, but without any distinctive label, merged under the same placeholder / default region name.

How can one overcome this limitation?

How does the splitting method works that is mentioned earlier? I came up with this one:
Code:

splitMeshRegions -cellZonesOnly -makeCellZones -overwrite
I can make cellSets based on the regions, but it wont help foamMeshToFluent and I cannot see any special flag for the command.

nwpukaka October 20, 2014 22:39

Quote:

Originally Posted by Toorop (Post 341481)
Hi,

as I see, the problem of exporting the correct region names from a foamMesh to fluentMesh is still present in foamMeshToFluent command. The whole domain is exported, all the regions, but without any distinctive label, merged under the same placeholder / default region name.

How can one overcome this limitation?

How does the splitting method works that is mentioned earlier? I came up with this one:
Code:

splitMeshRegions -cellZonesOnly -makeCellZones -overwrite
I can make cellSets based on the regions, but it wont help foamMeshToFluent and I cannot see any special flag for the command.

Hi Tibor:

Are you now able to solve this limitation for foamMeshtoFluent?

Rophys September 16, 2015 14:02

Hi all,

I manage to export a mesh from fluent to OpenFoam; however, when I check the mesh (command checkMesh), I have 5 failures (see below). In addition, when I initialized the case I received a warming (see below). Anybody knows how to solve this problem?

Thanks.

CheckMesh

Code:

Create time

Create polyMesh for time = 0

Time = 0

Mesh stats
    points:          1463379
    faces:            4298112
    internal faces:  4207320
    cells:            1417572
    faces per cell:  6
    boundary patches: 5
    point zones:      0
    face zones:      1
    cell zones:      1

Overall number of cells of each type:
    hexahedra:    1417572
    prisms:        0
    wedges:        0
    pyramids:      0
    tet wedges:    0
    tetrahedra:    0
    polyhedra:    0

Checking topology...
 ****Problem with boundary patch 0 named Inlet of type patch. The patch should start on face no 4207320 and the patch specifies 4229394.
Possibly consecutive patches have this same problem. Suppressing future warnings.
 ***Boundary definition is in error.
    Cell to face addressing OK.
    Point usage OK.
    Upper triangular ordering OK.
    Face vertices OK.
    Number of regions: 1 (OK).

Checking patch topology for multiply connected surfaces...
    Patch              Faces    Points  Surface topology                 
    Inlet              9945    10132    ok (non-closed singly connected) 
    Sym                39780    40512    ok (non-closed singly connected) 
    Outlet              7527    7683    ok (non-closed singly connected) 
    Inlet2              11466    11692    ok (non-closed singly connected) 
    Wall                22074    22397    ok (non-closed singly connected) 

Checking geometry...
    Overall domain bounding box (-0.3000000142 -3.024070027e-14 -3.241690292e-09) (0.6500000309 0.800000038 0.800000038)
    Mesh (non-empty, non-wedge) directions (1 1 1)
    Mesh (non-empty) directions (1 1 1)
 ***Boundary openness (1.281722558e-05 0.01952710315 0.01952386798) possible hole in boundary description.
 ***Open cells found, max cell openness: 0.9711407906, number of open cells 4602
  <<Writing 4602 non closed cells to set nonClosedCells
  <<Writing 89739 cells with high aspect ratio to set highAspectRatioCells
    Minimum face area = 3.116805768e-07. Maximum face area = 0.0001277530998.  Face area magnitudes OK.
 ***Zero or negative cell volume detected.  Minimum negative volume: -2.707374999e-08, Number of negative volume cells: 89739
  <<Writing 89739 zero volume cells to set zeroVolumeCells
    Mesh non-orthogonality Max: 179.8440355 average: 35.79636703
 ***Number of non-orthogonality errors: 265395.
  <<Writing 265395 non-orthogonal faces to set nonOrthoFaces
 ***Error in face pyramids: 538434 faces are incorrectly oriented.
  <<Writing 273039 faces with incorrect orientation to set wrongOrientedFaces
    Max skewness = 1.793962489 OK.
    Coupled point location match (average 0) OK.

Failed 5 mesh checks.

End
Create time

Create polyMesh for time = 0

Time = 0

Mesh stats
    points:          1463379
    faces:            4298112
    internal faces:  4207320
    cells:            1417572
    faces per cell:  6
    boundary patches: 5
    point zones:      0
    face zones:      1
    cell zones:      1

Overall number of cells of each type:
    hexahedra:    1417572
    prisms:        0
    wedges:        0
    pyramids:      0
    tet wedges:    0
    tetrahedra:    0
    polyhedra:    0

Checking topology...
 ****Problem with boundary patch 0 named Inlet of type patch. The patch should start on face no 4207320 and the patch specifies 4229394.
Possibly consecutive patches have this same problem. Suppressing future warnings.
 ***Boundary definition is in error.
    Cell to face addressing OK.
    Point usage OK.
    Upper triangular ordering OK.
    Face vertices OK.
    Number of regions: 1 (OK).

Checking patch topology for multiply connected surfaces...
    Patch              Faces    Points  Surface topology                 
    Inlet              9945    10132    ok (non-closed singly connected) 
    Sym                39780    40512    ok (non-closed singly connected) 
    Outlet              7527    7683    ok (non-closed singly connected) 
    Inlet2              11466    11692    ok (non-closed singly connected) 
    Wall                22074    22397    ok (non-closed singly connected) 

Checking geometry...
    Overall domain bounding box (-0.3000000142 -3.024070027e-14 -3.241690292e-09) (0.6500000309 0.800000038 0.800000038)
    Mesh (non-empty, non-wedge) directions (1 1 1)
    Mesh (non-empty) directions (1 1 1)
 ***Boundary openness (1.281722558e-05 0.01952710315 0.01952386798) possible hole in boundary description.
 ***Open cells found, max cell openness: 0.9711407906, number of open cells 4602
  <<Writing 4602 non closed cells to set nonClosedCells
  <<Writing 89739 cells with high aspect ratio to set highAspectRatioCells
    Minimum face area = 3.116805768e-07. Maximum face area = 0.0001277530998.  Face area magnitudes OK.
 ***Zero or negative cell volume detected.  Minimum negative volume: -2.707374999e-08, Number of negative volume cells: 89739
  <<Writing 89739 zero volume cells to set zeroVolumeCells
    Mesh non-orthogonality Max: 179.8440355 average: 35.79636703
 ***Number of non-orthogonality errors: 265395.
  <<Writing 265395 non-orthogonal faces to set nonOrthoFaces
 ***Error in face pyramids: 538434 faces are incorrectly oriented.
  <<Writing 273039 faces with incorrect orientation to set wrongOrientedFaces
    Max skewness = 1.793962489 OK.
    Coupled point location match (average 0) OK.

Failed 5 mesh checks.

End

Warning during the initialization

Code:


--> FOAM Warning :
    From function List<tetIndices> polyMeshTetDecomposition::faceTetIndices(const polyMesh&, label, label)
    in file meshes/polyMesh/polyMeshTetDecomposition/polyMeshTetDecomposition.C at line 570
    No base point for face 544557, 4(4 192002 192003 6), produces a valid tet decomposition.



All times are GMT -4. The time now is 00:02.