|
[Sponsors] |
March 20, 2013, 09:52 |
scripting BL distribution
|
#1 |
Senior Member
Matthias Voß
Join Date: Mar 2009
Location: Berlin, Germany
Posts: 449
Rep Power: 20 |
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 07:06. |
|
March 20, 2013, 12:55 |
|
#2 |
Senior Member
Matthias Voß
Join Date: Mar 2009
Location: Berlin, Germany
Posts: 449
Rep Power: 20 |
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] |
|
March 20, 2013, 13:04 |
|
#3 |
Senior Member
Matthias Voß
Join Date: Mar 2009
Location: Berlin, Germany
Posts: 449
Rep Power: 20 |
and forcing the "copy to all" via script and user_defined_parameter.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Lift distribution | PB4 | STAR-CCM+ | 6 | May 31, 2016 10:46 |
What differenceof retention time distribution fuction and residence time distribution | zsq | FLUENT | 0 | December 14, 2009 21:29 |
maintaining a logarithmic velocity distribution | Morten Andersen | CFX | 1 | January 8, 2007 12:37 |
DPM injection with RR distribution | dan | FLUENT | 2 | November 1, 2005 10:29 |
Residence time distribution function | Roustam | Phoenics | 3 | February 26, 2002 09:47 |