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

How to edit BC in iterative simulation (journal)

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   May 17, 2014, 04:02
Default How to edit BC in iterative simulation (journal)
  #1
New Member
 
Marco Dc
Join Date: Feb 2014
Location: Italy
Posts: 20
Rep Power: 12
I-mech is on a distinguished road
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
I-mech is offline   Reply With Quote

 


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
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


All times are GMT -4. The time now is 06:39.