CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Mesh Generation & Pre-Processing Software > Pointwise & Gridgen

Extrusion for twisted elliptic cross-section

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 10, 2014, 12:39
Default Extrusion for twisted elliptic cross-section
  #1
Senior Member
 
Chris Sideroff
Join Date: Mar 2009
Location: Ottawa, ON, CAN
Posts: 434
Rep Power: 22
cnsidero is on a distinguished road
Had an offline question from Arvind, that I though would be of benefit for everyone so with his permission, I'm bringing the conversation public.

paraphrasing Arvind:

"With the help of your script i was able to obtain a structured grid for an elliptic cross-section which looked like the first image. I wanted to get an orthogonal grid at the wall and a mapped grid at the center of the cross-section (second image). I tried using extrude option to get an orthogonal grid but some connectors were preventing me from making a mapped face at the center and forming a block.

Is it possible to create and solve for a grid which looks like this in pointwise?"
Attached Images
File Type: jpg ad8d9bt.jpg (54.3 KB, 45 views)
File Type: jpg ST7S271.jpg (50.3 KB, 38 views)
cnsidero is offline   Reply With Quote

Old   June 10, 2014, 12:47
Default
  #2
Senior Member
 
Chris Sideroff
Join Date: Mar 2009
Location: Ottawa, ON, CAN
Posts: 434
Rep Power: 22
cnsidero is on a distinguished road
Yes.

Starting with the original surface mesh create on the twisted elliptic surfaces I created from the other thread, select the 4 domains. Create, Extrude, Normal... In the Assemble panel change the type to One Face Per Domain. To do so, at the bottom, click Delete All Faces, toggle the Type to One Face Per Domain, click Assemble and Done to get into the Extrusion settings.

Aside: The assembly type dictates the number of resulting blocks. Type Auto Assemble will figure out the fewest number of blocks possible from the given surface domains. Type One Face Per Domain will create one block per domain. I choose the later because I'll need the topology from the extrusion front to create a block in the core of the pipe. Or if you so choose, you can assemble your own topology.

Go to Boundary Conditions tab, select all the exposed boundaries (ends of pipe), change Type to Constant Z and Set Boundary Condition. Choose the appropriate BC for your geometry. My pipe axis is aligned with the z-direction so Constant Z was the appropriate one.

Go to Attributes tab. Under step size choose appropriate initial step height and growth rate. I used 0.001 and 1.2, respectively. Make sure the normal vectors are pointing in - if not, toggle the direction under Orientation. For this extrusion, no other setting modifications are necessary

Go to Run tab, enter 15 for steps and click Run. Adjust the number of steps for your application. Note: the extrusion at this point is purely temporary so feel free to experiement with the parameters. Click OK to apply and exit extrusion mode.

The last step will be to fill on the inner core. Notice the shape is similar to outer domains so simply follow the same procedure I described previously. Briefly:

- create two structured "H"-domains at open ends of pipe
- select previous 2 domains + 4 inner domains from extrusion and assemble the "H"-block
- if you're OK with the quality of the "H"-block, smooth the 2 end domains created in first step ... but probably not so go to the next step
- create an "OH" topology in the inner core as I described previously using the ButterflyMaker script

As opposed to the topology in the second image in the first post, you'll notice the corner points in mine are not at the major/minor axis locations but mid-way between them. This results in less pinching of the cells around the corner points and will result in a much better mesh quality.

We really need to thank Pointwise for providing the ButterflyMaker script. It makes an otherwise tedious bit of work trivial. Perhaps they can incorporate it directly into the software in the future.

Hope that helps, Chris
Attached Images
File Type: jpg twisted-elliptic-extr-01.jpg (73.7 KB, 34 views)
File Type: jpg twisted-elliptic-extr-02.jpg (41.9 KB, 32 views)
File Type: jpg twisted-elliptic-extr-03.jpg (73.9 KB, 29 views)
cnsidero is offline   Reply With Quote

Old   June 10, 2014, 13:55
Default
  #3
New Member
 
Arvind
Join Date: Apr 2014
Location: USA
Posts: 20
Rep Power: 12
Arvind_CFD is on a distinguished road
Thanks for the prompt reply chris.

I tried out the procedure but when i do it for ellipse with a very low aspect ratio i get a very unsymmetrical grid as the corner points are not at the center.Do you think having those points on the axis would make a difference ?

Attached a pic of the case
Attached Images
File Type: jpg ortho_check.jpg (92.5 KB, 40 views)
Arvind_CFD is offline   Reply With Quote

Old   June 10, 2014, 15:41
Default
  #4
Senior Member
 
Chris Sideroff
Join Date: Mar 2009
Location: Ottawa, ON, CAN
Posts: 434
Rep Power: 22
cnsidero is on a distinguished road
Quote:
Originally Posted by Arvind_CFD View Post
Thanks for the prompt reply chris.

I tried out the procedure but when i do it for ellipse with a very low aspect ratio i get a very unsymmetrical grid as the corner points are not at the center.Do you think having those points on the axis would make a difference ?

Attached a pic of the case
First, the extrusion looks a bit strange - as in it's extruding further in some locations and less in others. If the cross-section is truly elliptic,l i.e. symmetric about major and minor axis, that would likely be caused by non-uniformity in spacing around the perimeter of the ellipse. Double check that.

What is the aspect ratio of the ellipse? Since it's so narrow some additional tricks may have to be applied to get a good quality grid. I will wait for your reply first.
cnsidero is offline   Reply With Quote

Old   June 10, 2014, 16:06
Default
  #5
Senior Member
 
Chris Sideroff
Join Date: Mar 2009
Location: Ottawa, ON, CAN
Posts: 434
Rep Power: 22
cnsidero is on a distinguished road
Arvind I guestimated the AR of your ellipse (~ 3:1) and threw together a quick grid.

First, I too see some asymmetry in the extrusion even with uniform spacing around the perimeter. This is because of the 3 dimensionality of geometry (its twisting along the axis). Mine isn't as severe as yours so you might have to use few less layers, use a lower growth rate or a little bit of both. For mine I had to back down the number of layers from 15 to 10. I left the growth alone (1.2).

The inner core block requires a little tweak of the default parameters in the ButterflyMaker script. First ensure the direction you want the OH topology to propagate matches the radio button selected. Second, I changed the H Region 3D Scalar parameters to 0.7 0.4 0.5 (in fact the last one has no influence since we're only propagating it one direction). You may have to experiment a little - use the Preview Topology feature to do so. Finally I used 4 Grid Points on Ogrid Ribs (in retrospect I should have used more).

The resulting mesh quality is not as good as I showed before but still acceptable. FYI, the lowest min angle I allow is 20. Meshes with a minimum min angle greater than 40-45 I call good. So this one definitely passes. Mind you I spent about 5 mins on this. If I investigated a little more time I'm sure I could get it up another 5 or so but there's probably an upper bound due to high aspect ratio shape.

-Chris
Attached Images
File Type: jpg twisted-elliptic-extr-3-1.jpg (49.3 KB, 33 views)
cnsidero is offline   Reply With Quote

Old   June 10, 2014, 16:06
Default
  #6
New Member
 
Arvind
Join Date: Apr 2014
Location: USA
Posts: 20
Rep Power: 12
Arvind_CFD is on a distinguished road
Quote:
Originally Posted by cnsidero View Post
First, the extrusion looks a bit strange - as in it's extruding further in some locations and less in others. If the cross-section is truly elliptic,l i.e. symmetric about major and minor axis, that would likely be caused by non-uniformity in spacing around the perimeter of the ellipse. Double check that.

What is the aspect ratio of the ellipse? Since it's so narrow some additional tricks may have to be applied to get a good quality grid. I will wait for your reply first.
the aspect ratio is 0.3. I changed the extrusion method from hyperbolic to algebraic and it looks a little better but there is still some asymmetry. In your pics since the aspect ratio wasn't that low the difference in extrusion was not obvious but it can be observed when you have a closer look at them.
Arvind_CFD is offline   Reply With Quote

Old   June 10, 2014, 16:13
Default
  #7
New Member
 
Arvind
Join Date: Apr 2014
Location: USA
Posts: 20
Rep Power: 12
Arvind_CFD is on a distinguished road
Quote:
Originally Posted by cnsidero View Post
Arvind I guestimated the AR of your ellipse (~ 3:1) and threw together a quick grid.

First, I too see some asymmetry in the extrusion even with uniform spacing around the perimeter. This is because of the 3 dimensionality of geometry (its twisting along the axis). Mine isn't as severe as yours so you might have to use few less layers, use a lower growth rate or a little bit of both. For mine I had to back down the number of layers from 15 to 10. I left the growth alone (1.2).

The inner core block requires a little tweak of the default parameters in the ButterflyMaker script. First ensure the direction you want the OH topology to propagate matches the radio button selected. Second, I changed the H Region 3D Scalar parameters to 0.7 0.4 0.5 (in fact the last one has no influence since we're only propagating it one direction). You may have to experiment a little - use the Preview Topology feature to do so. Finally I used 4 Grid Points on Ogrid Ribs (in retrospect I should have used more).

The resulting mesh quality is not as good as I showed before but still acceptable. FYI, the lowest min angle I allow is 20. Meshes with a minimum min angle greater than 40-45 I call good. So this one definitely passes. Mind you I spent about 5 mins on this. If I investigated a little more time I'm sure I could get it up another 5 or so but there's probably an upper bound due to high aspect ratio shape.

-Chris
Thanks a lot Chris..the grid should probably do the job when used with fluent. I'll get back to you in case i have problems getting a good solution with the grid.
Arvind_CFD is offline   Reply With Quote

Old   January 2, 2015, 02:09
Default
  #8
New Member
 
Arvind
Join Date: Apr 2014
Location: USA
Posts: 20
Rep Power: 12
Arvind_CFD is on a distinguished road
Hi,

With the inputs from this thread I was able to create a structured grid for hellically twisted elliptic pipe. I was not able to use the extrusion feature for creating layers of mesh close to the wall surface as suggested because the twist in longitudinal axis of the geometry was causing a problem preventing uniform extrusion(I used 120 grid points along the length of the twisted pipe). I used the spacing constraint(5.0e-5) on connectors in the cross-section to get the points closer to the wall which worked in cases where the aspect ratio of the ellipse was larger (i.e 0.5 or 0.7) but the simulations results were quite off when I tried the same grid structure for a smaller aspect ratio of 0.3 . Would be great if you could suggest ways to improve the mesh quality at the boundary surface by tweaking extrusion parameters(step size, growth rate?) or should i try unstructured grid with T-rex ? Attaching some pictures and the pipe surface's .glf file for 0.3 aspect ratio in case you want to give it a try when you have time.

Thanks,
Arvind
Attached Images
File Type: jpg Aspectratio_0.3.jpg (64.1 KB, 17 views)
File Type: jpg Aspectratio_0.5.jpg (97.6 KB, 14 views)
File Type: jpg Aspectratio_0.7.jpg (98.9 KB, 15 views)
Attached Files
File Type: txt 0.3_3.txt (672 Bytes, 6 views)
Arvind_CFD is offline   Reply With Quote

Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Commercial meshers] converting Fluent mesh to openfoam standard mesh deepesh OpenFOAM Meshing & Mesh Conversion 31 March 29, 2017 05:59
dsmcInitialise - dsmcFoam archymedes OpenFOAM Pre-Processing 94 July 15, 2016 16:14
[ANSYS Meshing] How to create a cross section in a mesh yahya ANSYS Meshing & Geometry 1 July 22, 2012 22:50
cross section average Paul FLUENT 0 April 12, 2006 11:30
Cross section and surface area factor Fabiana CFX 0 January 9, 2006 23:51


All times are GMT -4. The time now is 19:56.