|
[Sponsors] |
How to edit BC in iterative simulation (journal) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 17, 2014, 04:02 |
How to edit BC in iterative simulation (journal)
|
#1 |
New Member
Marco Dc
Join Date: Feb 2014
Location: Italy
Posts: 20
Rep Power: 12 |
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.
__________________
Marco |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem in initializing transient simulation with a finer mesh | sidd | CFX | 8 | April 29, 2016 02:25 |
How can I convert GUI journal to TUI journal | harry | FLUENT | 7 | December 4, 2013 16:28 |
Integrating Scheme with a FLUENT journal file | Pete Willemsen | FLUENT | 0 | May 19, 2006 17:00 |
Problems With Journal When Writing Forces To File | Andrew | FLUENT | 2 | September 23, 2005 02:12 |
3-D Contaminant Dispersal Simulation | Apple L S Chan | Main CFD Forum | 1 | December 23, 1998 10:06 |