CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Commercial meshers] converting Fluent mesh to openfoam standard mesh

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 23, 2016, 14:49
Default
  #21
Member
 
Join Date: Oct 2015
Posts: 63
Rep Power: 11
Scram_1 is on a distinguished road
Hey Zinedine,
Thanks for your quick reply!
This is what I get when I do checkMesh

Create polyMesh for time = 0

Time = 0

Mesh stats
points: 167512
internal points: 0
faces: 331555
internal faces: 164045
cells: 82600
faces per cell: 6
boundary patches: 8
point zones: 0
face zones: 0
cell zones: 0

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

Checking topology...
Boundary definition OK.
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_TOP 59 120 ok (non-closed singly connected)
INLET_BOTTOM 59 120 ok (non-closed singly connected)
OUTLET 118 238 ok (non-closed singly connected)
WALL_STRAIGHT_TOP 324 650 ok (non-closed singly connected)
WALL_STRAIGHT_BOTTOM324 650 ok (non-closed singly connected)
WALL_WAVY_BOTTOM 713 1430 ok (non-closed singly connected)
WALL_WAVY_TOP 713 1430 ok (non-closed singly connected)
frontAndBackPlanes 165200 167512 ok (non-closed singly connected)

Checking geometry...
Overall domain bounding box (1.688336 -3.224465 -0.1007603) (9.43028 3.224465 0.1007603)
Mesh (non-empty, non-wedge) directions (1 1 0)
Mesh (non-empty) directions (1 1 0)
All edges aligned with or perpendicular to non-empty directions.
Boundary openness (3.079742e-18 -5.752289e-17 -6.754386e-19) OK.
Max cell openness = 2.319659e-16 OK.
Max aspect ratio = 4.989274 OK.
Minimum face area = 4.319345e-05. Maximum face area = 0.00416419. Face area magnitudes OK.
Min volume = 8.704371e-06. Max volume = 3.492038e-05. Total volume = 1.330074. Cell volumes OK.
Mesh non-orthogonality Max: 33.49753 average: 9.974007
Non-orthogonality check OK.
Face pyramids OK.
Max skewness = 0.4789947 OK.
Coupled point location match (average 0) OK.

Mesh OK.

End

I want to know what are units of my mesh. This is the bounding box dimensions of checkMesh Overall domain bounding box (1.688336 -3.224465 -0.1007603) (9.43028 3.224465 0.1007603). Now the numbers here are in m or mm? The geometry that I had created in solidWorks was initially in mm. I'm asking this because my boundary conditions will change accordingly.
Thanks!!
Ram
Scram_1 is offline   Reply With Quote

Old   May 23, 2016, 14:58
Smile
  #22
New Member
 
Zinedine
Join Date: Sep 2010
Posts: 19
Rep Power: 16
Zinedine is on a distinguished road
Hi Ram
As far as I understand the output is in m.
Regards

Zinedine
Zinedine is offline   Reply With Quote

Old   May 23, 2016, 15:00
Smile
  #23
New Member
 
Zinedine
Join Date: Sep 2010
Posts: 19
Rep Power: 16
Zinedine is on a distinguished road
Hi again
Have you visualised your mesh using paraFoam for a quick check
just to be sure.

Regards

Z.
Zinedine is offline   Reply With Quote

Old   May 23, 2016, 15:14
Default
  #24
Member
 
Join Date: Oct 2015
Posts: 63
Rep Power: 11
Scram_1 is on a distinguished road
I have checked in paraview as well...The numbers are correct. But I'm not sure about the units...It is showing 9.43 but whether it is mm or m I dont know
Scram_1 is offline   Reply With Quote

Old   May 23, 2016, 15:27
Smile
  #25
New Member
 
Zinedine
Join Date: Sep 2010
Posts: 19
Rep Power: 16
Zinedine is on a distinguished road
Hi agsin
I guess it is in m

Regards

Z.
Zinedine is offline   Reply With Quote

Old   June 27, 2016, 01:58
Default fluentMeshToFoam not working (openFOAM)
  #26
New Member
 
narayana vekamulla
Join Date: Oct 2015
Posts: 15
Rep Power: 11
vnarayana is on a distinguished road
i am validating one paper, i asked my friend to send mesh from ansys. its a 2D geometry. fluentMeshToFoam temp.msh i got the following

narayana@narayana-Lenovo-G50-80:~$ cd /home/narayana/cavity
narayana@narayana-Lenovo-G50-80:~/cavity$ fluentMeshToFoam temp.msh
/*---------------------------------------------------------------------------*\\
| ========= | |
| \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\\\ / O peration | Version: 2.4.0 |
| \\\\ / A nd | Web: www.OpenFOAM.org |
| \\\\/ M anipulation | |
\\*---------------------------------------------------------------------------*/
Build : 2.4.0-f0842aea0e77
Exec : fluentMeshToFoam temp.msh
Date : Jun 26 2016
Time : 21:23:00
Host : "narayana-Lenovo-G50-80"
PID : 3078
Case : /home/narayana/cavity
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time



FINISHED LEXING


dimension of grid: 0
Creating shapes for 3-D cells
Building patch-less mesh...done.

for a trial i used icoFoam. my solver is buoyantBoussinesqSimpleFoam.
in the constant folder i found boundary file that consists of only zero value.
what should i do ?
vnarayana is offline   Reply With Quote

Old   March 28, 2017, 06:01
Default problem in fluentMeshToFoam conversion
  #27
New Member
 
Bharadwaj Bhushan
Join Date: Mar 2017
Posts: 19
Rep Power: 9
Bharath Bhushan is on a distinguished road
hi friends,


I am trying to convert .msh file to openfoam using both fluentMeshToFoam and fluent3DMeshToFoam. But I am getting an error in both the cases.

fluentMeshToFoam - Found end of section in unknown
,Embedded blocks in comment or unknown:

fluent3DMeshToFoam - Do not understand the characters:
on line 1



please can anybody let me know how to solve this


Thank you
Bharath Bhushan is offline   Reply With Quote

Old   March 28, 2017, 08:19
Default
  #28
Member
 
Ricky
Join Date: Jul 2014
Location: Germany
Posts: 78
Rep Power: 12
kera is on a distinguished road
is your ".msh" mesh file in binary or ascii format?

Quote:
Originally Posted by Bharath Bhushan View Post
hi friends,


I am trying to convert .msh file to openfoam using both fluentMeshToFoam and fluent3DMeshToFoam. But I am getting an error in both the cases.

fluentMeshToFoam - Found end of section in unknown
,Embedded blocks in comment or unknown:

fluent3DMeshToFoam - Do not understand the characters:
on line 1



please can anybody let me know how to solve this


Thank you
__________________
If it is easy, then something is fishy!
kera is offline   Reply With Quote

Old   March 29, 2017, 05:46
Default
  #29
New Member
 
yining song
Join Date: May 2016
Posts: 4
Rep Power: 10
syn1993530 is on a distinguished road
syn@syn-Lenovo:~$ fe32
syn@syn-Lenovo:~$ cd /home/syn/solids4foamphilip/tutorials/nonLinGeomSolidFoam/plateHole/system/
syn@syn-Lenovo:~/solids4foamphilip/tutorials/nonLinGeomSolidFoam/plateHole/system$ fluentMeshToFoam 1.msh
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.2 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
Build : 3.2-334ba0562a2c
Exec : fluentMeshToFoam 1.msh
Date : Mar 29 2017
Time : 16:31:08
Host : syn-Lenovo
PID : 3648
CtrlDict : "/home/syn/solids4foamphilip/tutorials/nonLinGeomSolidFoam/plateHole/system/system/controlDict"
Case : /home/syn/solids4foamphilip/tutorials/nonLinGeomSolidFoam/plateHole/system
nProcs : 1
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time



--> FOAM FATAL IO ERROR:
cannot open file

file: /home/syn/solids4foamphilip/tutorials/nonLinGeomSolidFoam/plateHole/system/system/controlDict at line 0.

From function regIOobject::readStream()
in file db/regIOobject/regIOobjectRead.C at line 61.

FOAM exiting

syn@syn-Lenovo:~/solids4foamphilip/tutorials/nonLinGeomSolidFoam/plateHole/system$



can you help me ?
Yining Song
syn1993530 is offline   Reply With Quote

Old   March 29, 2017, 05:59
Default
  #30
New Member
 
Bharadwaj Bhushan
Join Date: Mar 2017
Posts: 19
Rep Power: 9
Bharath Bhushan is on a distinguished road
Quote:
Originally Posted by kera View Post
is your ".msh" mesh file in binary or ascii format?
thanks for the quick reply kera,


file is in binary
Bharath Bhushan is offline   Reply With Quote

Old   March 29, 2017, 06:10
Default
  #31
Member
 
Ricky
Join Date: Jul 2014
Location: Germany
Posts: 78
Rep Power: 12
kera is on a distinguished road
Quote:
Originally Posted by Bharath Bhushan View Post

file is in binary
That seems to be the problem, as far as I know your ".msh" file should be in ASCII format.

Quote:
Originally Posted by syn1993530 View Post

cannot open file

file: /home/syn/solids4foamphilip/tutorials/nonLinGeomSolidFoam/plateHole/system/system/controlDict at line 0.

From function regIOobject::readStream()
in file db/regIOobject/regIOobjectRead.C at line 61.

FOAM exiting
Execute your command
Code:
fluentMeshToFoam 1.msh
from the base directory i.e., from:

Code:
syn@syn-Lenovo:~/solids4foamphilip/tutorials/nonLinGeomSolidFoam/plateHole$
Regards,
Ricky
__________________
If it is easy, then something is fishy!
kera is offline   Reply With Quote

Old   March 29, 2017, 06:59
Default
  #32
New Member
 
Bharadwaj Bhushan
Join Date: Mar 2017
Posts: 19
Rep Power: 9
Bharath Bhushan is on a distinguished road
Quote:
Originally Posted by kera View Post
That seems to be the problem, as far as I know your ".msh" file should be in ASCII format.



Execute your command
Code:
fluentMeshToFoam 1.msh
from the base directory i.e., from:

Code:
syn@syn-Lenovo:~/solids4foamphilip/tutorials/nonLinGeomSolidFoam/plateHole$
Regards,
Ricky

oh cool, then will try it. Thank you kera.

Yining Song syn1993530, I also experienced the same problem like you. One should be in the base directory to run the solver, not in any folder like 0 or constant or system.
Bharath Bhushan is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Other] OpenFoam Mesh to Fluent Mesh, 2D lordvon ANSYS Meshing & Geometry 1 January 14, 2022 13:20
Fluent converting 'wall' to 'interior' BC for hybrid mesh DarrenC FLUENT 8 January 3, 2019 07:24
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 19:57
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 10:38
[CAD formats] Converting .gtm mesh for use in OpenFOAM EVBUCF OpenFOAM Meshing & Mesh Conversion 0 December 20, 2012 18:17


All times are GMT -4. The time now is 11:46.