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] export hexa mesh to fluent (https://www.cfd-online.com/Forums/ansys-meshing/71810-export-hexa-mesh-fluent.html)

Wieland February 28, 2010 14:40

2 Attachment(s)
After a meshing pause (I focused on the coupling between Fluent and Sysnoise facing some other problems...) I restarted the mesh from scratch, using the o-grid as you recommended.

The sphere cube tutorial was helping a lot. I first made an o-grid to cover the hemisphere, after that I did an o-grid around the mirror. In attachment you can see the mesh around the mirror, which looks good around the mirror, although the scan planes shows very skew elements further away.
Nevertheless I checked the mesh for errors (successful) and imported it in Fluent. But the check in Fluent gave me following error:
"Checking face handedness.
WARNING: left-handed faces detected on zone 10: 678070 right-handed, 6 left-handed.
WARNING: left-handed faces detected on zone 2: 6066 right-handed, 6 left-handed."

I know you can repair this in Fluent using the command line mesh/modify-zones/repair-face-handedness, but in this case it didn't work out.

After this disappointment I made an unstructured mesh with tetra elements. It started good, working in ICEM CFD was easy, quality was good, importing in Fluent succeeded without any error.
BUT... the CFD results were quiet unrealistic, no Karman street was visible which was the case with the hexa meshes.

So I would really like the hexa mesh, but it doesn't work. Can you give some advice concerning the error or again some other help? It is getting frustrating... But that's sometimes in this meshing area I think.

Thanks,
Wieland.

PSYMN February 28, 2010 19:02

Topology isn't right.
 
Your topology isn't right...

You have your OGrid connected to the plate with the Mirror sticking up into the OGrid blocks. This gives you awkward mesh at the "corners" of the sphere again, but instead of wide angles you get pinched ones. Instead, imagine a block around the mirror also so that the mirror and plate are inside the HGrid block in the middle of the OGrid... Then subdivide the inner block to capture the mirror and plate...

Be careful to imagine the mirror as having a reflection of its self so you can put an internal ogrid thru the face of the mirror to take care of poor quality... Sorry if that is hard to understand, it is really something better shown.

I really should try to make one tutorial movie a week, it is just hard to find the time, and it always takes longer to put those together than you would think... :(

Anyway, this one is on my list...

Wieland March 1, 2010 07:04

I see what you mean with the mirror block in the o-grid blocks, and it is the same thought I had when I drove home last night. So let's try it out today. I'll keep you updated.

In previous attempts I've tried the reflection of the mirror, but it didn't really helped, I will try it again.

Wieland March 1, 2010 10:18

5 Attachment(s)
All right, update of the day: I think it's going the right way.

With the new blocking setup, the global mesh distribution looks ok (first figure). There are some skew elements due to the boundary layer, but it can be removed.
The second figure shows a scan plan in the middle of the mirror. Some skew elements due to the o-grid are present, but I hope it's fine? You can see the blockings I've used in the third figure.
Next step is to refine the mesh after the mirror to study the turbulent region, but it gets tricky there to export refined mesh from Fluent to Sysnoise afterwards.

To improve the mesh around the mirror, I tried your hint about the reflected mirror. Blockings and a scan plane are visible in the last attached figures. But I think the other setup results in a better mesh...

Importing the mesh in Fluent went fine, and a Karman street is visible in the first results, so I am getting optimistic.

Any hints to improve the mesh are still welcome, but thank you already!

PSYMN March 1, 2010 10:39

Almost there.
 
Great, almost there…

Two more steps and you will have a great mesh…

1)Move your verts onto your geometry. Yes, it looks ok without moving it, but later steps (such as OGrid creation) act on the blocking as it is, not how it will project. You can use the “Snap Project” button to make it quick and easy. But then you may want to adjust verts a little to optimize placement. For instance, the verts along the curve of the mirror should be placed at the 45 degree point (or where ever provides the best reduced average deviation from the edge to the curve).
2)Now that you have created the “reflection” block for your mirror, it is time to put an OGrid in it. Reduce the index control so you are looking at the block for the mirror and its “reflected” block. Then select those two for OGrid. Also select the “faces” as the base (plate) so the OGrid will go down into the plate. This will cure the bad mesh that you are probably getting just behind the “corners” of the mirror.

PSYMN March 1, 2010 10:42

One more thought...
 
One other thought… The above plan will work “after” your ogrid around the mirror… but it could probably be better to do it before the OGrid around your mirror. If you do the mirror boundary layer after the OGrid mentioned in 2) above, it wouldn’t need to go around the reflection, but could be done just around the mirror.

Wieland March 2, 2010 07:18

Hi,

replying to your 2 steps:
1) I didn't find out how to define different materials for a block in ICEM CFD, so I still delete the plate and mirror to enforce the surfaces are meshed. When I snap the vertices to the mirror, and apply Ogrid afterwards, it gets messy when I delete the inner block.
2) In the fourth picture of my previous post you can see I already implemented an Ogrid in the reflected mirror block. Do you mean I have to do it again in the inner block?

I looked on the forum and here is something interesting to make a c-grid. I'll try it.

PSYMN March 2, 2010 19:37

...
 
1)To define materials, right click on the Parts branch of the model tree to either create a new part or add to an existing one (only add to parts reserved just for volumes or you will have boco troubles). In the Create Part DEZ, the last ICON is “Blocking Material, Create part”. Click that and you will be able to select blocks to put into the new part (instead of just geometry or mesh).
2)You put an OGrid “around” the mirror and reflected block. This is good for capturing boundary layer on the upstream part of the mirror. The problem is that your mirror is also rounded, so on the outer two corners of the glass, you have bad elements. The way to fix these bad elements is to put an OGRID inside the mirror. That ogrid would need to come out of the OGrid and go somewhere (pass thru the glass). You may want to just have it go back for a few blocks (a good way to refine with 1 to 1 connections) , in which case you could just select a block behind the mirror and the mirror and not worry about faces… Or you could have it turn and go into the plate (tidy)… I gave you instructions for the latter, but I have seen it done a variety of ways at various car companies…


The Cgrid Far field is no better or worse than yours (half way between what you have and a Cube... Those topologies were popular in the good old days because the structured solvers could only handle a single block. C-Grid was a good way to wrap that single block around an airfoil.

Wieland March 16, 2010 12:02

4 Attachment(s)
Hi, I'm back with another problem.

As mentioned before I would like to export the CFD results (more exactly: surface pressure distribution on the mirror) from Fluent to LMS Sysnoise. This already succesfully worked with a test case.

I'm now facing the following problem: I would like to refine the mesh, since CFD results were in accordance with other papers for low frequencies only. Therefore I refined the zone after the mirror in ICEM CFD, but when checking the mesh the error of uncovered faces occured. There are two options: ignore the error (as proposed by Simon on this thread), or fix the error.

When ignoring the error, the mesh (figure 1) can be succesfully imported in Fluent and realistic results are calculated. The problem is that it's impossible to export the mesh in Nastran format (which is necessary for Sysnoise). You can see this in figure 2. Only ASCII, EnSight Case Gold, and Fieldview Unstructured file formats are possible.

When I fix the error in ICEM, the uncovered faces are covered and I add these faces to the "body"-part. The mesh can be imported in Fluent (figure 3) and it's possible to export them in Nastran-format (figure 4). But the new faces cause problems in Fluent since I can not prescribe an "interior" boundary condition for this surface... So calculations are not possible.

The Fluent manual learned me: "ANSYS FLUENT supports exporting polyhedral data only for ASCII, EnSight Case Gold, and Fieldview Unstructured file formats. For further details, see Sections 4.14.4, 4.14.9, and 4.14.12."
So I need to work around the polyhedral data problem. Anyone experience with this? Or does somebody knows how to export the mesh from Fluent in another way?

PSYMN March 16, 2010 13:46

Nastran format is your weak link...
 
Maybe someone else can help you move forward, but I can tell you that Nastran does not support hanging nodes. I don't know about SYSNOISE...

Babak June 10, 2010 11:31

ICEM to FLUENT export
 
Hi

Sorry guys

I think this is where I have to ask this question, I am new to ICEM and just trying to export the 2d mesh file from it to FLUENT but I get the following error when reading the mesh File in FLUENT.
3969 nodes.
3840 quadrilateral cells, zone 8.
7552 2D interior faces, zone 9.
176 2D wall 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.

Any one has an idea why this happens?

Thanks

PSYMN June 10, 2010 13:11

don't know.
 
I don't know... Perhaps ask on the the Fluent Forum or perhaps contact your friendly neighborhood tech support.

PSYMN December 1, 2010 13:04

What do you think?
 
Please help guide development at ANSYS by filling in these surveys

Public ANSYS ICEM CFD Users Survey

This second one is more general (Gambit, TGrid and ANSYS Meshing users welcome)...

CFD Online Users Survey

yuanmengyuan1989 January 22, 2013 21:02

Quote:

Originally Posted by PSYMN (Post 242795)
I have setup several of these simulations (except on full vehicle models) using ICEM CFD and Fluent when i worked at Ford Motor Company.

The "Uncovered faces" error is just a possible problem. It would matter for some solvers, but not for Fluent if it is just referring to the hanging nodes...

However, if you get uncovered faces in other areas (such as the boundaries), you may get an error like the one you saw without refinement. Did you do your mesh checks on the unrefined grid? Is a face missing?

It looks like it thinks you have a partial grid. You could Try reading that fluent grid back into ICEM CFD and checking it there.

I would figure out the unrefined grid problem before trying again with refined blocks.

Sorry to bother you. I want to ask you a question. when I create grid for impeller by ICEM, I always take it apart to nine parts, and I create grid for one part in ICEM, then, I will use the “rotate and copy” for anther parts. Generally, I would delete the grids of periodical faces, but when I check the grid, it will remind me of “uncovered faces”, I accorded on its remind to fix the uncovered faces, and created the new part for them, and I found the uncovered faces are the periodical faces I deleted.
If I do not delete periodical faces and it will make mistakes, it says
WARNING: no face with given nodes. Thread 7, cell 352956
Clearing partially read grid.

Error: Build Grid: Aborted due to critical error.

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


I searched the reason why it happen, it says the nodes in the periodical faces are not completely identical.
I tried to guarantee the number of nodes but the same question will occur. So I want to ask you whether you can help me to solve it .

Far January 22, 2013 23:04

do you merge all nine parts and elements are in same material point?

PSYMN January 22, 2013 23:31

If you take a periodic model and copy rotate it before sending it to the solver, you need to do a few extra steps...

First, before you even copy rotate it, run check mesh and make sure all is well. Turn on the periodic check also... If you fail that, let us know and we can discuss that question based on your specific error message.

If you pass the checks, do the the copy rotate. Then delete the periodic shell elements...

THis will leave you with uncovered faces... These are really just volume elements without a shell (or another volume element) to cover them. This is a problem for solvers like fluent because there is no where to hang the boundary condition that the solver algorithm depends on.

To fix the problem, use edit mesh => merge meshes => merge nodes with a tolerance. Set a small tolerance (like 1/10th of the smallest mesh size) and make sure to turn on "ignore projection" and apply. This will merge the volume meshes across the periodic interfaces...

Run the mesh checks again, specifically the "uncovered faces" check...

Have fun.

Simon

yuanmengyuan1989 January 23, 2013 03:18

Quote:

Originally Posted by PSYMN (Post 403464)
If you take a periodic model and copy rotate it before sending it to the solver, you need to do a few extra steps...

First, before you even copy rotate it, run check mesh and make sure all is well. Turn on the periodic check also... If you fail that, let us know and we can discuss that question based on your specific error message.

If you pass the checks, do the the copy rotate. Then delete the periodic shell elements...

THis will leave you with uncovered faces... These are really just volume elements without a shell (or another volume element) to cover them. This is a problem for solvers like fluent because there is no where to hang the boundary condition that the solver algorithm depends on.

To fix the problem, use edit mesh => merge meshes => merge nodes with a tolerance. Set a small tolerance (like 1/10th of the smallest mesh size) and make sure to turn on "ignore projection" and apply. This will merge the volume meshes across the periodic interfaces...

Run the mesh checks again, specifically the "uncovered faces" check...

Have fun.

Simon

Thank you for your reply. I really appreciate it. When I checked the mesh for the 1/9th model, it will remind me of that “121616problems were found or volume orientation”, I do not understand what result in it. Then I fix it, it does not have problems no longer.

But after I copy rotate it and delete the mesh of periodical faces, when I check the grid, it will remind me of “it have uncovered faces”. I accord on what you said as following ,
To fix the problem, use edit mesh => merge meshes => merge nodes with a tolerance. Set a small tolerance (like 1/10th of the smallest mesh size) and make sure to turn on "ignore projection" and apply.
But it still has uncovered faces.

When I do not delete the mesh of periodical faces,it will remind me of “shell 8418 has node 709 which has no twin”.
Why it happen ?
It makes me upset for a long time. I really want to know the truth.

yuanmengyuan1989 January 23, 2013 03:27

Quote:

Originally Posted by Far (Post 403462)
do you merge all nine parts and elements are in same material point?

Thank you for your reply. I do not know what you mean. I just create mesh for one part, and copy rotate it to gain other meshes, and when I copy rotate it, I choose the “merge nodes and delete duplicate elements”. Can it meet what you said?
I still have not found what the reason why the problems occur.


All times are GMT -4. The time now is 14:10.