CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > ANSYS Meshing & Geometry

[ICEM] Replay not working properly - Creating the mesh for Free Block.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 16, 2017, 10:07
Default Replay not working properly - Creating the mesh for Free Block.
  #1
Member
 
William
Join Date: Aug 2016
Posts: 56
Rep Power: 10
Wingman is on a distinguished road
Hi,

I've created hundreds of Replay files for simpler projects. Now I'm using a Free Block which I've never used before. I don't know the best way to create a mesh within the free block but I'm using: Convert the block to free block, set it as Tri Block, Auto setting the mesh parameter, create the pre-mesh, setting my desired node bunching and re-create the pre-mesh. - But when adding a wall spacing and a growth ratio on edges of the free block... the mesh disappears.

I've attached a zip file including:
replayfile.rpl - ICEM CFD Replay file
WingRootSection.dat - Geometry point data for the airfoil.
FFOShape.dat - FarField O-Shape geometry point data.
FFOShapeRefP.dat - Reference points I use to assosiate vertices.

Here is the last part of the Replay Files that should be doing what I want.

Converting block to unstruct.
ic_undo_group_begin
ic_hex_convert_to_unstruct 15
ic_undo_group_end


Set it as "All Tri Block"
ic_undo_group_begin
ic_hex_set_sblock_mesh_type all_tris { -1 - 15 u }
ic_undo_group_end


Auto Updated the Mesh Parameters
ic_undo_group_begin
ic_hex_set_mesh_params PWING WING PFF INLET PREF OUTLET CREF FLUIDS FLUID -version 110
ic_hex_compute_mesh_size PWING WING PFF INLET PREF OUTLET CREF FLUIDS FLUID
ic_hex_list_family_projection


Creating the mesh
ic_hex_list_family_projection
ic_hex_create_mesh PWING WING PFF INLET PREF OUTLET CREF FLUIDS FLUID proj 2 dim_to_mesh 2



Setting edge bunching
ic_hex_set_mesh 11 13 n 20 h1 0.00000 h2 0.00000 r1 2.00000 r2 2.00000 lmax 0.00000 default copy_to_parallel no_scale unlocked
ic_hex_set_mesh 13 21 n 12 h1 0.00000 h2 0.00000 r1 2.00000 r2 2.00000 lmax 0.00000 default copy_to_parallel no_scale unlocked
ic_hex_set_mesh 11 19 n 12 h1 0.00000 h2 0.00000 r1 2.00000 r2 2.00000 lmax 0.00000 default copy_to_parallel no_scale unlocked
ic_hex_set_mesh 19 21 n 32 h1 0.00000 h2 0.00000 r1 2.00000 r2 2.00000 lmax 0.00000 default copy_to_parallel no_scale unlocked
ic_hex_set_mesh 21 39 n 40 h1 0.00000 h2 0.00000 r1 2.00000 r2 2.00000 lmax 0.00000 default copy_to_parallel no_scale unlocked
ic_hex_set_mesh 39 34 n 28 h1 0.00000 h2 0.000006 r1 2.00000 r2 1.08000 lmax 0.00000 default copy_to_parallel no_scale unlocked
ic_hex_list_family_projection


Re-creating the mesh
ic_hex_list_family_projection
ic_hex_create_mesh PWING WING PFF INLET PREF OUTLET CREF FLUIDS FLUID proj 2 dim_to_mesh 2


*ADDED*
I see it "breaks" at the BOLD line above.
ic_hex_set_mesh 39 34 n 28 h1 0.00000 h2 0.000006 r1 2.00000 r2 1.08000 lmax 0.00000 default copy_to_parallel no_scale unlocked
When I leave it with default values, i.e. uniform distribution. It does work. But when I change the bunching the mesh in the Free Block (At Airfoil trailing edge) is erased.
ic_hex_set_mesh 39 34 n 32 h1 0.00000 h2 0.00000 r1 2.00000 r2 2.00000 lmax 0.00000 default copy_to_parallel no_scale unlocked

But I do need to make this small wall spacing and growth ratio to maintain y-plus on the surface of the airfoil. It seems that minimum Wall Spacing before breaking is 0.000008 but I'm assuming I'll need 0.000006 down to 0.000004.

I also added a figure of the mesh... before applying growth ratio and wall spacing.
Attached Images
File Type: png Pre-Mesh.PNG (74.6 KB, 15 views)
Attached Files
File Type: zip wingman.zip (29.2 KB, 3 views)

Last edited by Wingman; January 16, 2017 at 19:44.
Wingman is offline   Reply With Quote

Old   January 16, 2017, 13:38
Default
  #2
Senior Member
 
Join Date: Feb 2011
Posts: 496
Rep Power: 18
Antanas is on a distinguished road
Execute replay script line by line to find out where it fails. Then highlight this line here.
Antanas is offline   Reply With Quote

Old   January 16, 2017, 19:14
Default
  #3
Member
 
William
Join Date: Aug 2016
Posts: 56
Rep Power: 10
Wingman is on a distinguished road
Quote:
Originally Posted by Antanas View Post
Execute replay script line by line to find out where it fails. Then highlight this line here.
Thanks for your reply Antanas.

I went through the Replay Files and saw that when applying growth ratio and wall spacing on the edge at the airfoil (copied to parallel edges, including the free block), the free block at the trailing edge will loose its mesh. The minimum Wall Spacing appears to be ~0.000009 but I'll need at least 0.000006.

I have updated the original post where I highlight where the failure occurs. Apparently, it's not the replay code. I did add the growth ratio and wall spacing manually afterwards.

Thanks in advance,
Wingman is offline   Reply With Quote

Old   January 17, 2017, 03:15
Default
  #4
Senior Member
 
Join Date: Feb 2011
Posts: 496
Rep Power: 18
Antanas is on a distinguished road
Maybe I didn't understand you, but I had no problem with the script.
Attached Images
File Type: jpg wtf.jpg (118.5 KB, 7 views)
Antanas is offline   Reply With Quote

Old   January 17, 2017, 04:57
Default
  #5
Member
 
William
Join Date: Aug 2016
Posts: 56
Rep Power: 10
Wingman is on a distinguished road
Quote:
Originally Posted by Antanas View Post
Maybe I didn't understand you, but I had no problem with the script.
Okay, thats interesting. There must be something wrong with my computer. When I execute the code I get no mesh within the free block. But when I try using bigger wall spacing the mesh will generate. (See attachments)

Could it be something with some tolerances e.t.c?
Attached Images
File Type: png 6e-6.PNG (58.0 KB, 7 views)
File Type: png 9e-6.PNG (66.2 KB, 8 views)
Wingman 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
[blockMesh] Problems in creating a wedge type mesh Joscha OpenFOAM Meshing & Mesh Conversion 28 August 3, 2019 08:59
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 10:38
Problem with building geometry - concentric cylinders Rhoddwen OpenFOAM Pre-Processing 9 December 17, 2014 11:02
Problem with geometry - concentric cylinders Rhoddwen OpenFOAM Running, Solving & CFD 0 December 15, 2014 10:22
A mesh block with three mesh block to use the difference? degr FLOW-3D 3 June 26, 2009 15:51


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