CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ANSYS Meshing & Geometry (https://www.cfd-online.com/Forums/ansys-meshing/)
-   -   [ICEM] ICEM problem (https://www.cfd-online.com/Forums/ansys-meshing/73343-icem-problem.html)

MASOUD March 5, 2010 01:42

ICEM problem
 
Hi guys,
I have created a project in ICEM but when i save it (including geometry, block, mesh , etc) and try to read the mesh in to the Ansys Fluent 12.0, it doesn't appear. the extension of the mesh file is: *.*uns.
What's wrong?
thanks

rwryne March 5, 2010 09:28

The files that are created when you hit save are ICEM files, not Fluent files.

Go to the output tab of ICEM and do the following:

1. select Fluent as your solver using the red toolbox button
2. set up your BCs with the BC button
3. click the final button to output your mesh in a Fluent format

MASOUD March 5, 2010 16:14

1 Attachment(s)
Thanks for reply.

But still I come across a fatal error when I read the mesh file in Fluent.
Attached is the geometry of a 2D molten carbonate fuel cell with 6 zones (Gas channels, anode, cathode and electrolyte.
I'm not that much familiar with ICEM comparing to Gambit.
Could please help me know how can I generate the mesh for this geometry?
Many thanks

rikio March 8, 2010 01:53

Could you show the details of the error message?
Follow the three steps as Ryne show will lead to a successful transfer from ICEM to FLUENT. Maybe you do not set the boundary conditions correctly.Have a check.

MASOUD March 8, 2010 11:59

Thanks Rikio.

Here is the error detail:

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

You are right about the BCs. But I don't know how to set the BCs in ICEM. here is the path I'm trying to use:

output>boundary condition>mixed/unknown>GEOM>create new>....

Then I don't know how to find zone ID...what is that?

Thanks

MASOUD March 8, 2010 14:37

And I need all the curves shown in the attached picture in Fluent to be shown separately because I wanna set different BCs for eachone. But what I can see in Fluent when read the mesh, is a grouped curves not individual curves. So I can't set different Bcs for eachone.

rwryne March 8, 2010 15:38

Quote:

Originally Posted by MASOUD (Post 249019)
And I need all the curves shown in the attached picture in Fluent to be shown separately because I wanna set different BCs for eachone. But what I can see in Fluent when read the mesh, is a grouped curves not individual curves. So I can't set different Bcs for eachone.

It sounds like you need to separate your geometry into various parts.

In the tree menu, right click on the "Parts" entry and select Create New Part, then select the geometry corresponding to the first part. Rinse and repeat for all parts.

PSYMN March 8, 2010 15:42

Boundary conditions are based on part names... If you know you will need different bocos for each curve, you must put each one in its own Part.

If this is a 2D model, Bocos should be applied to the boundary curve parts. if it is a 3D model, then bocos are applied to the surfaces.

As for the Zone ID's, don't worry about that. I usually just leave those all zeros. (they are all in the same zone, zone 0.)

MASOUD March 8, 2010 16:19

Thank you for reply.

1. Can I do this separation in Fluent as well? (Mesh>separate>...)

2. And what is the SHADOW in Boundary Condition panel?

3. How can I separate the zones? As you see in the attached file, I need to have 6 different zone (some as fluid and some as solid) but in the preliminary geometry which I've created in ICEM i have just one zone.

4. What's the point of BLOCKing??? What we used to do in GAMBIT was: building a geometry>generating a grid network>defining BCs and zones, that's it. So what is the Blocking?

PSYMN March 8, 2010 16:34

questions...
 
1) I guess you could do it in Fluent, but then you would be selecting elements, etc. I have never done it that way. It is much easier to setup the Geometry Parts in ICEM CFD.

2) You have one boundary between two regions, but Fluent needs to have boundaries all around each region. So it autmatically creates a "shadow" boundary, which is essentially just a way to select a boundary already used for another region. Don't worry about it, it is just a Fluent book keeping thing...

3) separating the zones is as easy as breaking up the boundaries. Just right click on "Parts" branch in the model tree and "create new part"... For that new Part (say SOLID or INLET)), select the corresponding entity on the screen. For 2D models, surfaces are zones and curves (lines) are boundaries. The points don't matter much unless you are planning to do something special... I usually just put the points in the same part as the adjacent curve.

4) In Gambit, you had to subdivide the actual geometry. This is risky since geometry changes can cause problems, and it was difficult if not impossible to edit those subdivisions later and you would have to start over with each new geometry. Blocking solves these problems by giving you a separate data layer to subdivide, etc. You don't need to damage your original geometry and you don't need to conform to it either (patch independent). It is also very flexible and allows for easy creation of topologies that would be a nightmare in Gambit. You can edit blocking easily. You can also load a previous blocking topology and quickly fit it to a new but topologically similar geometry.

In your case, you have a very simple model so you don't really see the advantages. You just want to extract one block from each surface so use the 2D surface blocking method and it can block it for you automatically... This is the most like Gambit but it is still a separate layer that you can edit, etc.

But you could also just use a quad meshing algorithm and generate unstructured mesh directly without blocking...

MASOUD March 8, 2010 21:14

Many thanks for the comprehensive answer.

I could create five rectangular zones in PART section from the scratch. But still I don't know how can I have four Curves from each rectangular?

By the way could you help me know what's the difference between:
Patch independant
Patch dependent
Auto block
Shirinkwrap

Would you provide me with any online reference?

Thanks

rwryne March 9, 2010 08:11

Quote:

Originally Posted by MASOUD (Post 249066)
Many thanks for the comprehensive answer.

I could create five rectangular zones in PART section from the scratch. But still I don't know how can I have four Curves from each rectangular?

By the way could you help me know what's the difference between:
Patch independant
Patch dependent
Auto block
Shirinkwrap

Would you provide me with any online reference?

Thanks

The help menu will help explain the difference in these (Help->User Manual)

MASOUD March 9, 2010 09:49

how about for creating 4 curves from a rectangular part?

PSYMN March 9, 2010 10:19

No problem...
 
You could try "Geometry Tab => Repair => Build Diagnostic Topology". This will create curves around all your surfaces... If you leave the "inherit part" checkbox (near the top above the other icons) on, it will create curves in the names of the surfaces. If you turn that option off, it will put all the created curves into a new part (CURVES). Either way, you can then create parts for each of the new entities.

MASOUD March 9, 2010 11:18

Could you please let me know for the other check boxes, which one must be on and which one off? Because I did what you wrote leaving all other check boxes as default but I didn't any new part in the PART section. (or even a subtree)

rikio March 10, 2010 01:58

You can refer to the Help Manual first, that may help you out. If you still have some problems in understanding, just post here. :-)

PSYMN March 11, 2010 16:57

Hands on help...
 
5 Attachment(s)
So the first thing I noticed was that you had no surfaces, just curves. It is possible to mesh like this, but then it becomes a hassle because you have to select the area (material) elements and put them in a separate part from the boundaries (or use a separate blocking material if you use Hexa Blocking).

It is much easier and more intuitive to simply create surfaces from your curves (geometry tab => Create curves => from surfaces). I left the inherited part name on so. This just took about 2 seconds per surface and now the elements will know what part to be created in, the part of the underlying surface.


Attachment 2533



Next I set sizes. I set all curve sizes to 0.0002, but you could have been fancy and set things up much more carefully.


Attachment 2534



Next, I starting creating new parts for the curves in the top two sections (you can complete the rest on your own). I also created an assembly and put all the parts for each section into that assembly. I also put all the points into a POINTS part… It is not necessary, but it makes the boundary conditions a little clearer because there are no points mixed in there.


Attachment 2535



Next, I went to Compute mesh and hit the “compute” button. 2 seconds and no effort later, I have a mapped quad mesh.

Attachment 2536



You can see from the colors of the quads that they match the materials parts. The colors of the boundaries match the boundary parts…


Attachment 2537



To be continued with boundary conditions…

PSYMN March 11, 2010 17:00

Hands on help... Continued
 
1 Attachment(s)
Ok, above we sorted out the geometry prep and meshing. Now we look at setting Bocos. I Chose FLUENT as my solver and have expanded some branches of the tree.



Attachment 2538



If I had volume elements, they would be in the volume section. For surface elements, it groups them into “one sided” (surface elements with volume on one side) or “two sided” (surface elements with volumes on 2 sides). We don’t have any volume elements, so our shells don’t fit either of these and end up in “mixed unknown”.

Here I have clicked on the “Create New” under the ANODE-GAS_CHANNEL_Material and you can see that I could select fluid, etc.

Further down in the boco tree, under “edges” you can see the ones I separated out. You would add bocos to these for Inlet, outlet, walls, etc. (wall is the default, internal walls are also taken care of by default). Further down, under Nodes, you can see the POINTS part I created., At the very bottom under “Mixed/Unknown” are the other parts. These are “mixed dimension” because they contain curves and surfaces (shells and lines” in the same part. This makes it more difficult to apply bocos that are “dimension specific”. In practice, you will need to break those up appropriately also.

(Note, it is ok to have edges in with your shells if they are internal and of no concern (such as the internal edges due to the surface topology rather than edges due to boundaries where you will need at least wall bocos… If you assign these mixed/unknown a boco, it will only apply it to the elements that make sense. If you applied a fluid property to the bottom part, it would apply to its shells, and the lines would be ignored. But in this case, Fluent would complain because the part had no boundary to hang bocos on...)

Have fun.

Simon

rikio March 11, 2010 22:22

I have to say that Simon is a great advisor. :-)
One question about the zone ID. Generally, I left the zone IDs to default because no effect to meshing and solving. Why we need this option to be involved? It seems that zone ID would be used in UDF in Fluent. Is it the only case that we need this ID?

PSYMN March 12, 2010 08:49

Maybe someone else knows?
 
That option was put in before I took over the product.

Most of these features are driven by customer demand... I have never needed to use that Zone ID because Fluent assigns it for me.

Perhaps there is some good reason for some users to have wanted it (udfs as you mention) or perhaps the reason is historical and no longer necessary.

Maybe someone else on CFD-Online can tell us?


All times are GMT -4. The time now is 17:16.