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] Moving from 2D to 3D mesh (https://www.cfd-online.com/Forums/ansys-meshing/235715-moving-2d-3d-mesh.html)

mattpotts April 26, 2021 09:49

Moving from 2D to 3D mesh
 
Hello, I'm encountering a problem while trying to extrude my existing 2D mesh of a wing profile into 3D.

My 2D mesh is a rectangle with the edges listed as parts labelled as inlet, outlet, upperbound and lowerbound. I used this mesh in 2D simulations with these parts as my boundary conditions, calculating from the inlet.

I'm looking to simulate a uniform-span wing and note any 3D effects seen, so for the 3D mesh, I simply want the mesh to be repeated and remain constant across the span-length of the wing, and change the boundary conditions from being one edge each of the rectangular 2D mesh to being one face each of the cuboid 3D mesh.

My problem arises when I try and use the extrude mesh tool to copy my exiting 2D mesh into different planes. Although the mesh itself is the shape I desire, when I hide all parts except for the inlet, I can see that the inlet is still just one edge of the original mesh rather than being an entire face, and the same is true for the other three boundaries. Sure enough, when I open up the mesh in Fluent I'm not given the option of setting these four parts as boundary conditions.

Any help would be greatly appreciated, as I've been stuck on this problem for quite some time and nobody I've spoken to about it until now has had any idea how to fix this problem. Apologies if my explanation isn't particularly clear, this is my first time posting on one of these forums so I haven't much experience in trying to describe my problems in this manner.

aero_head April 26, 2021 14:54

Hello Matthew,

It would help to post photos along with your explanation in order to get a better idea of what the issue is.

It sounds like it is an issue with some of the faces/blocking potentially. So it would help, again, to see an image of the mesh along with an image of the blocking/relevant faces.

mattpotts April 27, 2021 07:04

4 Attachment(s)
The mesh is for a corrugated dragonfly wing profile

Attachment 84029
this is the original 2d mesh
Attachment 84030
this is a list of the parts of the extruded mesh on icem
Attachment 84031
this is the isometric view of the extruded mesh

Attachment 84032
this is the side view of the extruded mesh (don't worry about the low number of divisions; I'll refine the mesh once I've figured out the problem) - I want the "outlet" part to be this entire face so I can set it as a boundary condition on Fluent

hopefully these images help illustrate the problem, thank you for helping!

bluebase April 27, 2021 16:37

Could you also please add a picture, or two, of the geometry entities - at least the bounding box.


I'd guess, that you still have only a 2D geometry. But as far as i know, boundary elements are only created when the are associated to geometry entites. Not having surfaces in your third coordinate would mean there is nothing to associate - leaving you with edges/blocks in internal mode.
Although internal blocks can be filled with elements, they are not covered by boundary elements which would construct a boundary part for the solver.

aero_head April 27, 2021 21:24

Quote:

Originally Posted by bluebase (Post 802653)
Could you also please add a picture, or two, of the geometry entities - at least the bounding box.


I'd guess, that you still have only a 2D geometry. But as far as i know, boundary elements are only created when the are associated to geometry entites. Not having surfaces in your third coordinate would mean there is nothing to associate - leaving you with edges/blocks in internal mode.
Although internal blocks can be filled with elements, they are not covered by boundary elements which would construct a boundary part for the solver.

Yes, sorry, this is what I wanted to observe as well, as it was my hunch that it was still being seen as
a 2D geometry as well. Thanks for wording it better - in the future I'll try to better explain what I'm looking for like you have done.

mattpotts April 28, 2021 10:06

Quote:

Originally Posted by bluebase (Post 802653)
Could you also please add a picture, or two, of the geometry entities - at least the bounding box.


I'd guess, that you still have only a 2D geometry. But as far as i know, boundary elements are only created when the are associated to geometry entites. Not having surfaces in your third coordinate would mean there is nothing to associate - leaving you with edges/blocks in internal mode.
Although internal blocks can be filled with elements, they are not covered by boundary elements which would construct a boundary part for the solver.

Ahhh I think you're correct about the geometry still only being 2D. I'm unsure how to show a picture of the bounding box but from toggling points in the geometry and vertices in the blocking I can see that only the points on the original face of the mesh are highlighted. How would I go about rectifying this problem?

bluebase April 28, 2021 13:27

Quote:

Originally Posted by aero_head (Post 802660)
Yes, sorry, this is what I wanted to observe as well, as it was my hunch that it was still being seen as
a 2D geometry as well. Thanks for wording it better - in the future I'll try to better explain what I'm looking for like you have done.

It absolutely was not my intention to make you feel being corrected or to correct your answer (for which there also is no reason).





Quote:

Originally Posted by mattpotts (Post 802719)
Ahhh I think you're correct about the geometry still only being 2D. I'm unsure how to show a picture of the bounding box but from toggling points in the geometry and vertices in the blocking I can see that only the points on the original face of the mesh are highlighted. How would I go about rectifying this problem?


There are extrusion features for geometry entities as well. have a look into the create surface menus. Then copy the original surface representing the fluid domain to the "top" of the prisms to close it up.


Depending on how your somewhat wildly looking foil has been created and how fine your boundary elements become you might need to run build topology. Though save that step untill you actually run into problems with the newly created geos.

aero_head April 28, 2021 14:45

[QUOTE=bluebase;802734]It absolutely was not my intention to make you feel being corrected or to correct your answer (for which there also is no reason).


Oh, sorry, it wasn't my intention to imply this, for the record I didn't feel at all like you were correcting me. I just liked your wording much better was all.

In my head your question was exactly what I wanted to ask, but the thought didn't reach my fingers. Meant more to thank you for this! Once again where my thoughts did not come out correctly.

mattpotts April 29, 2021 10:06

Quote:

Originally Posted by bluebase (Post 802734)
It absolutely was not my intention to make you feel being corrected or to correct your answer (for which there also is no reason).








There are extrusion features for geometry entities as well. have a look into the create surface menus. Then copy the original surface representing the fluid domain to the "top" of the prisms to close it up.


Depending on how your somewhat wildly looking foil has been created and how fine your boundary elements become you might need to run build topology. Though save that step untill you actually run into problems with the newly created geos.

Sorry once again, but I've spent the past three hours trying to sort out the issue and have made little-to-no progress. Could you please explain what you mean by "copy the original surface representing the fluid domain to the "top" of the prisms to close it up"?

I've created rectangular surfaces over each edge of the domain and added them to their respective boundary parts, but this appears to have no effect on the mesh itself, as I can still only select all four edges simultaneously as a single boundary condition, when in actuality I want the inlet and lowerbound to be velocity-inlets and the outlet and upperbound to be outflows.

Having looked at a few tutorials it appears the extrude mesh function exists for cases wherein you simulate from the original solid to the extruded end, but I want to simulate from left to right, as I did in 2D. Is this therefore impossible?

bluebase April 30, 2021 08:55

1 Attachment(s)
Sweep Curve is the actual feature name i forgot to mention. An snapshot from the manual:

Attachment 84111


This feature extrudes only curves. So, if you would extrude a rectangle, sweeping would only create 4 surfaces from the original 4 curves. But to close the domain you need a surface inside the original rectangle, and close the 6th surface to close the cube.

If you did not have a a surface before to fill your 2D domain, then you now do need them to associate faces to these surface which enables the boundary element creation.


Look into the Transform Geometry menu for Translation. This feature will make it straight forward to copy a surface to an other location - you can use the same vector as you have used with sweep curve.






When extruding the 2D blocking to 3D, i suggest you to use the translate option. You should also use planar 2D blocking instead of surface blocking for the original blocking.






Quote:

Is this therefore impossible?
Yes, it absolutely is.


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