CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ...

Fluent Mesh into OpenFoam

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   January 31, 2014, 02:45
Default
  #21
New Member
 
sangram
Join Date: Jan 2014
Posts: 13
Rep Power: 3
sangram is on a distinguished road
Quote:
Originally Posted by Kaskade View Post
1. copy the OpenFOAM dam break tutorial to your run directory
2. rename 0 to 0.org
3. rename constant/polyMesh/boundary to constant/polyMesh/boundary.org
4. delete the other files in constant/polyMesh
5. move the .msh-file to the case directory
6. convert it (-scale 0.001 if it's in mm instead of m)
7. run paraFoam and check the mesh
8. run checkMesh -constant
9. if everything checks out, rename 0.org back to 0
10. set your boundary conditions
a. open constant/polyMesh/boundary, to see what boundaries need to be set
b. open each file under 0 and edit it, so that the correct boundary names and conditions are set

Thanks kaskade.....
Actually I am still unable to run the case because of boundary conditions......there are number of faces and points generated after meshing.....and I am unable to locate the sequence of these faces and because of which I am unable to assign boundary conditions.......is it necessary to give start face?....can you please guide on this...
sangram is offline   Reply With Quote

Old   January 31, 2014, 02:56
Default
  #22
Member
 
Onno
Join Date: Jan 2012
Location: Germany
Posts: 93
Rep Power: 6
Kaskade is on a distinguished road
Apart from the type-entries you don't have to (read: should not) edit the boundary-file manually. The startFace und nFaces entries should be fine after the mesh conversion.
Kaskade is offline   Reply With Quote

Old   January 31, 2014, 03:26
Default
  #23
New Member
 
sangram
Join Date: Jan 2014
Posts: 13
Rep Power: 3
sangram is on a distinguished road
Quote:
Originally Posted by Kaskade View Post
Apart from the type-entries you don't have to (read: should not) edit the boundary-file manually. The startFace und nFaces entries should be fine after the mesh conversion.
Thanks Kaskade

When I am running case after editing the files in 0 directory as per boundary ......I am getting following error.....

--> FOAM FATAL IO ERROR:
cannot find file

file: /home/sandeep/system/controlDict at line 0.

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

FOAM exiting
sangram is offline   Reply With Quote

Old   January 31, 2014, 03:39
Default
  #24
Member
 
Onno
Join Date: Jan 2012
Location: Germany
Posts: 93
Rep Power: 6
Kaskade is on a distinguished road
That file should exist if you copied the damBreak-Tutorial.
Kaskade is offline   Reply With Quote

Old   January 31, 2014, 05:14
Default
  #25
New Member
 
sangram
Join Date: Jan 2014
Posts: 13
Rep Power: 3
sangram is on a distinguished road
kaskade,

Names of boundaries in boundary.org file and boundary file are different......which file should I refer......should I keep both files (boundary and boundary.org) in constant directory before running the case....
sangram is offline   Reply With Quote

Old   January 31, 2014, 05:50
Default
  #26
Member
 
Onno
Join Date: Jan 2012
Location: Germany
Posts: 93
Rep Power: 6
Kaskade is on a distinguished road
The boundary.org only serves as reference for you in case you need to lookup which boundary types have been used in the original tutorial. OpenFOAM doesn't use the file due to the .org (short for original).

The boundaries in constant/polyMesh/boundary (without org) are the ones for which the BCs need to be set under 0/.
Kaskade is offline   Reply With Quote

Old   January 31, 2014, 06:12
Default
  #27
New Member
 
sangram
Join Date: Jan 2014
Posts: 13
Rep Power: 3
sangram is on a distinguished road
Thanks Kaskade.....

Now it is showing following error after running case using interFoam.....

Create time

fileName::stripInvalid() called for invalid fileName UbuntuOne
For debug level (= 2) > 1 this is considered fatal
Aborted (core dumped)
sangram is offline   Reply With Quote

Old   January 31, 2014, 06:49
Default
  #28
Member
 
Onno
Join Date: Jan 2012
Location: Germany
Posts: 93
Rep Power: 6
Kaskade is on a distinguished road
Create time fileName::stripInvalid() called for invalid fileName UbuntuOne For d
Kaskade is offline   Reply With Quote

Old   February 3, 2014, 01:16
Default
  #29
New Member
 
sangram
Join Date: Jan 2014
Posts: 13
Rep Power: 3
sangram is on a distinguished road
Thanks Kaskade.....
sangram is offline   Reply With Quote

Old   February 3, 2014, 05:18
Default
  #30
New Member
 
sangram
Join Date: Jan 2014
Posts: 13
Rep Power: 3
sangram is on a distinguished road
Hello,

I wanted to solve acoustic modelling problem in OpenFOAM.......I have difficulty in selection of solver.....guys please help me in selecting correct solver.....


Thanks in advance
sangram is offline   Reply With Quote

Old   February 19, 2014, 07:38
Default fluent mesh to foam
  #31
New Member
 
sangram
Join Date: Jan 2014
Posts: 13
Rep Power: 3
sangram is on a distinguished road
Hello All,
I am trying to import one of fluent meshing to openFoam.....but i am getting following error.....please give some suggestion

?Embedded blocks in comment or unknown:
Embedded blocks in comment or unknown:��
�]{�Found end of section in unknown:?
�Embedded blocks in comment or unknown:��
�]{�Found end of section in unknown:?
�Embedded blocks in comment or unknown:
Found end of section in unknown:�
Found end of section in unknown:�
�Dimension of grid: 9
]{?=W�
�Embedded blocks in comment or unknown:f�
�]{�Found end of section in unknown:?


--> FOAM FATAL IO ERROR:
wrong token type - expected int, found on line 0 the word '�'

file: IStringStream.sourceFile at line 0.

From function operator>>(Istream&, int&)
in file primitives/ints/int/intIO.C at line 68.

FOAM exiting
sangram is offline   Reply With Quote

Old   February 19, 2014, 10:35
Default
  #32
Senior Member
 
Ke Wu
Join Date: Jan 2012
Posts: 179
Rep Power: 5
itsme_kit is on a distinguished road
Quote:
Originally Posted by sangram View Post
Hello All,
I am trying to import one of fluent meshing to openFoam.....but i am getting following error.....please give some suggestion

?Embedded blocks in comment or unknown:
Embedded blocks in comment or unknown:��
�]{�Found end of section in unknown:?
�Embedded blocks in comment or unknown:��
�]{�Found end of section in unknown:?
�Embedded blocks in comment or unknown:
Found end of section in unknown:�
Found end of section in unknown:�
�Dimension of grid: 9
]{?=W�
�Embedded blocks in comment or unknown:f�
�]{�Found end of section in unknown:?


--> FOAM FATAL IO ERROR:
wrong token type - expected int, found on line 0 the word '�'

file: IStringStream.sourceFile at line 0.

From function operator>>(Istream&, int&)
in file primitives/ints/int/intIO.C at line 68.

FOAM exiting
Hi

Please follow this way: workbench Mesh: tool - option - meshing- export - ansys fluent - format of input file - ascii

It does work

Just let me know if you still got problem
andbe likes this.
itsme_kit is offline   Reply With Quote

Old   July 1, 2014, 09:26
Default
  #33
New Member
 
Anders
Join Date: Sep 2013
Posts: 2
Rep Power: 0
andbe is on a distinguished road
Great tip! Thanks a lot!
andbe is offline   Reply With Quote

Old   December 8, 2014, 22:00
Default Patches missing !!
  #34
Senior Member
 
Alhasan's Avatar
 
Hasan K.J.
Join Date: Dec 2011
Location: Bristol, United Kingdom
Posts: 181
Rep Power: 5
Alhasan is on a distinguished road
Hey guys im trying to import a 2D mesh from ICEM to OF

I have tried to import it couple of times no errors but this problem !!!

I have Inlet,top,bottom,curv1,curv2,outlet a total of 6 patches made in icem and I assigned the boundary condition

But when i import it into openFOAM I am getting only 4 patches Curv1, top, outlet and frontandback (automatic patch)

Can you please help me with this problem,

Thanks for your reply,

Hasan K.J
Alhasan is offline   Reply With Quote

Old   December 9, 2014, 01:47
Default
  #35
Member
 
Onno
Join Date: Jan 2012
Location: Germany
Posts: 93
Rep Power: 6
Kaskade is on a distinguished road
What commands do you use? Describe your workflow.
Kaskade is offline   Reply With Quote

Old   December 9, 2014, 07:41
Default Case
  #36
Senior Member
 
Alhasan's Avatar
 
Hasan K.J.
Join Date: Dec 2011
Location: Bristol, United Kingdom
Posts: 181
Rep Power: 5
Alhasan is on a distinguished road
I have used fluentMeshToFoam command to import,
I have save it in ANSYS Fluent format,
It is just a simple C-mesh with the C as inlet top as wall bottom as wall and outlet as outflow and the curv1 and curve as wall.

when import it in open foam only 4 patches come I have no idea why tried it many times
Alhasan is offline   Reply With Quote

Old   December 9, 2014, 08:01
Default
  #37
Member
 
Onno
Join Date: Jan 2012
Location: Germany
Posts: 93
Rep Power: 6
Kaskade is on a distinguished road
How does the mesh look in Paraview? OpenFOAM handles 2D calculations in the form of a 3D Mesh with one cell thickness. Maybe that's the problem.
Kaskade is offline   Reply With Quote

Old   December 9, 2014, 08:41
Default
  #38
Member
 
davide basso
Join Date: Jan 2012
Posts: 47
Rep Power: 5
rolloblues is on a distinguished road
fluentMeshToFoam automatically handles 2d meshes by one-cell extrusion along the third direction (infact frontandback patch is created).

my advice is to check in ICEM whether the mesh is correctly associated with the geometry or not.
Maybe "curv2" and "inlet" do not contain mesh elements whatsoever and consequently they are ignored in the conversion process.
rolloblues is offline   Reply With Quote

Old   December 9, 2014, 10:11
Default
  #39
Senior Member
 
Alhasan's Avatar
 
Hasan K.J.
Join Date: Dec 2011
Location: Bristol, United Kingdom
Posts: 181
Rep Power: 5
Alhasan is on a distinguished road
Actually the mesh looks fine in Paraview and yeah the frontandback was created by itself giving it the thickenss
I have attached the pictures here but the top patch appears in middle of the geometry

I will recheck the association like you said might be an association issue, I will recreate the entire mesh!!
Screen Shot 2014-12-09 at 14.09.47.png

Screen Shot 2014-12-09 at 14.09.21.jpg
Alhasan is offline   Reply With Quote

Old   December 9, 2014, 16:35
Default
  #40
Senior Member
 
Alhasan's Avatar
 
Hasan K.J.
Join Date: Dec 2011
Location: Bristol, United Kingdom
Posts: 181
Rep Power: 5
Alhasan is on a distinguished road
Quote:
Originally Posted by rolloblues View Post
fluentMeshToFoam automatically handles 2d meshes by one-cell extrusion along the third direction (infact frontandback patch is created).

my advice is to check in ICEM whether the mesh is correctly associated with the geometry or not.
Maybe "curv2" and "inlet" do not contain mesh elements whatsoever and consequently they are ignored in the conversion process.
Thanks for you reply, Figured the problem, It was the association !! I have redone it
Alhasan is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
converting ICEM mesh to OpenFOAM bmikuz OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 8 May 2, 2013 10:55
Fluent case to openfoam mesh Mat_fr OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 8 August 29, 2012 08:10
2D Mesh Generation Tutorial for GMSH aeroslacker Open Source Meshers: Gmsh, Netgen, CGNS, ... 12 January 19, 2012 04:52
Problem importing mesh in openfoam from fluent alessandr0 OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 3 September 4, 2008 13:41
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55


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