CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   GENERATE MESH IN ICEM and OPEN IN FLUENT 12 (http://www.cfd-online.com/Forums/fluent/84424-generate-mesh-icem-open-fluent-12-a.html)

Galileo January 28, 2011 14:17

GENERATE MESH IN ICEM and OPEN IN FLUENT 12
 
Hi guys,
Can someone please explain, line by line as much as possible, with a very simple geometry like Rectangle, how to
(1) Create a Mesh in ICEM 12 and Generate .msh file
(2) Open the Mesh in Fluent 12

I have read a number of voluminous tutorials that are not organised in one location. After creating my mesh it saves as .uns and Fluent will not read it.
When I tried using Fluent_V6 as the solver and I generated a .msh file, Fluent will crash while reading it with errors like :

Error: Build_Grid: no cells in case file and at times no zone or cannot read file.

This is really frustrating...

Galileo January 31, 2011 11:28

RE: GENERATE MESH IN ICEM and OPEN IN FLUENT 12
 
TUTORIAL FILE:

http://cobweb.ecn.purdue.edu/~aerody...romScratch.pdf

The tutorial above leads to the "how" but I don't still get why my system is giving this error:

When Run as 3D
> Reading "C:\My Documents\CFD\FLUENT\TUTORIALS\fluent.msh"...
1200 nodes.
1131 quadrilateral wall faces, zone 9.

Building...
mesh
Error: Build_Grid: no cells in case file.
Clearing partially read grid.

Error: Build Grid: Aborted due to critical error.

Error: Build Grid: Aborted due to critical error.
Error Object: #f


When Run in 2D

Error: Error reading "C:\My Documents\CFD\FLUENT\TUTORIALS\fluent.msh".
Error Object: #f
Reading "C:\My Documents\CFD\FLUENT\TUTORIALS\fluent.msh"...
1200 nodes.
1131 quadrilateral cells, zone 9.
2194 2D interior faces, zone 10.

Building...
mesh
Error:
FLUENT received fatal signal (ACCESS_VIOLATION)
1. Note exact events leading to error.
2. Save case/data under new name.
3. Exit program and restart to continue.
4. Report error to your distributor.

Error:
FLUENT received fatal signal (ACCESS_VIOLATION)
1. Note exact events leading to error.
2. Save case/data under new name.
3. Exit program and restart to continue.
4. Report error to your distributor.
Error Object: #f

Galileo February 3, 2011 10:38

Resolved Reading ICEM 12.1 Mesh in Fluent 12.1
 
Thanks guys for trying to help me.

I was able to figure that I was not associating the "edges to the respective curves" properly, when that was done I was able to read in Fluent. The error displayed in Fluent was not good for a beginner and was misleading ACCESS_VIOLATION error.

PSYMN February 3, 2011 16:46

Exactly right. In ICEM CFD Hexa, only edges associated to curves generate line elements. These line elements form the boundaries for 2D meshes. These boundaries are critical and the Fluent solver can not run without them.

You must associate all the perimeter edges with the perimeter curves, even if they are straight and the edges already seem aligned.

Sorry about the error message. Usually it gives a "null pointer" error.

phanivasudev April 11, 2011 05:05

Same problem
 
Hey galileo,
I'm new to ICEM CFD. I'm facing the same problem, I read the tutorial that u have posted but i haven not come up with any solution.
I have tried in many ways to load the msh file that is created by icem. Can u please let me know how to do it? I have to submit my report in 10 days.

phanivasudev April 11, 2011 05:08

Same Issue
 
Hey Galileo,
can u let me know how to associate curves to edges ?

Galileo April 11, 2011 13:39

Simple Tutorial -To Get Some Results
 
Quote:

Originally Posted by phanivasudev (Post 303045)
Hey Galileo,
can u let me know how to associate curves to edges ?

Hi,

If you can follow this simple tutorial, I hope it will help.
Assume you are drawing a dam
_____Top____
|***** *****|
|***** *****|
|***** *****|
|Wall1***** *|Wall2
|***** *****|
|****# *****|
|***** *****|
|____bottom__|

(@GEOMETRY TAB)
Specify the points and join the lines and create the parts as appropriate.
On the position # (anywhere inside the fluid domain) create a body named Fluid (eg)
(@BLOCKING TAB)
-Click Create Block (First item)
-In the DEZ part name=Fluid
-Type (This is a 2D Blocking, select 2D Blocking)
-Apply (All visible)
-Now Click Split Block and Split by click the Edge and split into the blocks that suits your case...Apply (this case does not need it)
- No Click Associate (item number 5) on Blocking Tab
-In the DEZ click second item ie Associate Edge
-Select Edge then Click Middle Button of your Mouse then Select the Curve and the Middle button of the mouse (Repeat this for all the edges)
_______________Edge
_____Top____
|***** *****| |
|***** *****| |Edge Wall
|***** *****| |
|Wall1** ****|Wall2
|***** *****| |
|***** *****| |
|***** *****| |
|____bottom__| |
_______________Edge bottom
e.g Click Edge Wall then Middle mouse and Click Curve Top, Then Click Edge wall then Curve Wall2 etc (Edge will be red curve will turn black)

You can redo each curve to edge if you are not sure (without need to undo)

Now proceed to 9th item (Pre-Mesh Param)
Go to item 3 on the DEZ
select the edge and put the number of nodes and apply (repeat for other edges -default is 2) ...in this case you need to select only Wall1/2 and Top/Bottom not the 4 ...you will notice that.

You now have your mesh set up.


Expand the Blocking Tree and click Pre-Mesh
Right-Click on the Pre-Mesh and Click -CONVERT TO UNSTRUCTURED MESH


Now Click OUTPUT TAB
Red Box:
DEZ: Select Solver: Ansys and Fluent 6
BC:
Select your BC
SAVE:
Remember to Click 2D (for this 2D case)
The default file name is fluent (you can change it to myfirstdam)

The file saves to myfirstdam.msh
You can open it in Fluent 6 or 12 or 13.
Enjoy and hope it helps

phanivasudev April 20, 2011 02:02

3D meshing
 
1 Attachment(s)
hey Galileo,

thanks for the advice. i was able to load cylinder into fluent. but i wish to load a mesh with little irregular geometry. i have attached the geometry.. i have not been able to create a perfect mesh for it.. maybe its because i'm not doing the blocking well.. please advice!!

PSYMN April 20, 2011 19:43

This is a basic Y pipe configuration... There are many ways to do it.

If the flow splits, then the best way is very similar to the pipe blade tutorial (just half of it). That tutorial will show you how to collapse blocks to make this configuration.

You could also do it with a T configuration (as is done for the 2D mixing pipe tutorial).

Optionally, you could create an actual Triangular YBlock (all hexa) in the middle, with radiating blocks... It is pretty straight forward but I don't think we have a tutorial for that.

Best regards,

Simon

phanivasudev April 22, 2011 08:31

tried but not working!
 
hey simon,

thanks for the advise. but unfortunately i haven't been able to do as u suggested. the mesh that is getting created is not cylindrical as in figure and instead is polygonal and i cannot define the inlet and the outlet. can u suggest any other way to create geometry and then do the blocking as i'm guessing that the problem is geometry.

phani

koya September 6, 2013 14:26

1 Attachment(s)
hi Galileo,

I am stuck with this single element problem in ICEM. My geometry is a 3D IGES file. I imported and mesh it using the Delaunay scheme. The single elements error pops up when I check the mesh. Is there a way to get around this. I have attached the picture. Thank you very much.


All times are GMT -4. The time now is 12:13.