How to edit BC in iterative simulation (journal)
Hi everyone,
is it possible to change, for example, a pressure outlet value rather then a velocity inlet or a wall velocity value in a script? I'm using Fluent from Ansys Workbench. I have written a script that simulate different geometry configurations, but i have to manually change BC values so it's not very useful. For example, i have 4 values of wall velocity. I have tried this solution but it doesn't work: 1. define 4 parameters in Ansys Workbench v1 v2 v3 v4 2. insert the v1.Value in the Wall BC: (red bold string) It's a rotating wall and i define the center of rotation position and the velocity. setup1.SendCommand(Command="(cx-gui-do cx-set-real-entry-list \"wall-5-1*Frame4*Frame1(Momentum)*Frame1*Table1*Frame1*Fra me1*Frame1*Table1*Frame2(Motion)*Table2(Motion)*Fr ame3*Table3*Frame2(Rotation-Axis Origin)*Table2(Rotation-Axis Origin)*RealEntry1(X)\" '( 1))(cx-gui-do cx-set-real-entry-list \"wall-5-1*Frame4*Frame1(Momentum)*Frame1*Table1*Frame1*Fra me1*Frame1*Table1*Frame2(Motion)*Table2(Motion)*Fr ame3*Table3*Frame2(Rotation-Axis Origin)*Table2(Rotation-Axis Origin)*RealEntry2(Y)\" '(eymm.Value))(cx-gui-do cx-set-real-entry-list \"wall-5-1*Frame4*Frame1(Momentum)*Frame1*Table1*Frame1*Fra me1*Frame1*Table1*Frame2(Motion)*Table2(Motion)*Fr ame3*Table3*Frame2(Rotation-Axis Origin)*Table2(Rotation-Axis Origin)*RealEntry1(X)\" '( exmm.Value))(cx-gui-do cx-set-real-entry-list \"wall-5-1*Frame4*Frame1(Momentum)*Frame1*Table1*Frame1*Fra me1*Frame1*Table1*Frame2(Motion)*Table2(Motion)*Fr ame3*Table3*RealEntry1(Speed)\" '(v1.Value))(cx-gui-do cx-activate-item \"wall-5-1*PanelButtons*PushButton1(OK)\")") As you can see, center of rotation position (blue bold string) has the same problem. Thanks for tips. ;) |
All times are GMT -4. The time now is 17:46. |