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

[ICEM] scripting BL distribution

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 20, 2013, 08:52
Default scripting BL distribution
  #1
Senior Member
 
Matthias Voß
Join Date: Mar 2009
Location: Berlin, Germany
Posts: 449
Rep Power: 20
mvoss is on a distinguished road
hey,
this is regarding the scripting capability of ICEM within in WorkBench2.0.
I´ve got a 3D fluid domain, surrounding an airfoil which i have properly meshed in ICEM.
These are the points of interest:
1#
When choosing the new "MeshParameter-Function" from within ICEM when adjusting the edge bunching etc. and creating a workbench input parameter , you can only select one edge at a time, right? Does that imply that i have to create as many parameters with the same number, let´s say 0.001, as i have edges forming my boundary layer?
Or vice versa: Can i force ICEM to check also for the "Copy to all parallel edges" feature?

This brought me to problem number 2#
I tried to set up a simply script.
PSEUDO CODE ON
-load the blocking
-adjust mesh sizing by picking ONE edge (the one with the created parameter known by Workbench!) and apply command with "Copy to all parallel edges"
PSEUDO CODE OFF
When doing this like described, Workbench and ICEM are using different decimal encodings (, vs. .) which stops the script ("Replay failed; syntax error in expression "0,12345*0.001": extra tokens at end of expression") because of 3#.
3#
Even when i choose 0.001 within ICEM to adjust the height in the edgespacing, the created parameter is set to 1, so i have to convert back in the script.

3# and 2# are easy to fix in this case but 1# remains for discussion. Is there a better way? Do i really have to pic ALL edges?

Regards,
neewbie

Last edited by mvoss; March 22, 2013 at 06:06.
mvoss is offline   Reply With Quote

Old   March 20, 2013, 11:55
Default
  #2
Senior Member
 
Matthias Voß
Join Date: Mar 2009
Location: Berlin, Germany
Posts: 449
Rep Power: 20
mvoss is on a distinguished road
i managed to fix the "encoding" issue via
Code:
set GSH1 [ic_wb2_get_parameter input "Edge Params (195 197): Spacing 2"]
set GSH1 [string map {, .} $GSH1]
mvoss is offline   Reply With Quote

Old   March 20, 2013, 12:04
Default
  #3
Senior Member
 
Matthias Voß
Join Date: Mar 2009
Location: Berlin, Germany
Posts: 449
Rep Power: 20
mvoss is on a distinguished road
and forcing the "copy to all" via script and user_defined_parameter.
mvoss 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
Lift distribution PB4 STAR-CCM+ 6 May 31, 2016 09:46
What differenceof retention time distribution fuction and residence time distribution zsq FLUENT 0 December 14, 2009 20:29
maintaining a logarithmic velocity distribution Morten Andersen CFX 1 January 8, 2007 11:37
DPM injection with RR distribution dan FLUENT 2 November 1, 2005 09:29
Residence time distribution function Roustam Phoenics 3 February 26, 2002 08:47


All times are GMT -4. The time now is 01:12.