|
[Sponsors] |
January 13, 2012, 22:34 |
Journal file problem
|
#1 |
New Member
Join Date: Nov 2011
Posts: 7
Rep Power: 14 |
Hi there,
I am trying to use journal file. I would like to compute many cases and for that I need change velocity vector in boundary settings. I am using journal recorder built in Fluent to record my script. Unfortunately first change in first case is ok but in second case nothing happens with velocity vector and window does not disappear. Have you got any ideas? Is there any other way how to change boundary settings?? Thank you a lot. Journal file > rcd re_2.5_10^6_a_4.cas yes (cx-gui-do cx-activate-item "NavigationPane*Frame1*PushButton7(Boundary Conditions)") (cx-gui-do cx-set-list-selections "Boundary Conditions*Frame1*Table1*Frame1*List1(Zone)" '( 1)) (cx-gui-do cx-activate-item "Boundary Conditions*Frame1*Table1*Frame1*List1(Zone)") (cx-gui-do cx-activate-item "Boundary Conditions*Frame1*Table1*Frame2*Table2*Frame4*Tabl e4*Frame1*ButtonBox1*PushButton1(Edit)") (cx-gui-do cx-set-real-entry-list "velocity-inlet-32-1*Frame4*Frame3(Momentum)*Frame1*Table1*Frame8*Tab le8*RealEntry2(Velocity Magnitude)" '( 60)) (cx-gui-do cx-set-real-entry-list "velocity-inlet-32-1*Frame4*Frame3(Momentum)*Frame1*Table1*Frame13*Ta ble13*RealEntry2(X-Component of Flow Direction)" '( 0.5)) (cx-gui-do cx-set-real-entry-list "velocity-inlet-32-1*Frame4*Frame3(Momentum)*Frame1*Table1*Frame14*Ta ble14*RealEntry2(Y-Component of Flow Direction)" '( 0.3)) (cx-gui-do cx-set-real-entry-list "velocity-inlet-32-1*Frame4*Frame3(Momentum)*Frame1*Table1*Frame15*Ta ble15*RealEntry2(Z-Component of Flow Direction)" '( 0.2)) (cx-gui-do cx-activate-item "velocity-inlet-32-1*PanelButtons*PushButton1(OK)") solve iterate 30 wcd re_2.5_10^6_a_4_01.cas yes rcd re_2.5_10^6_a_4.cas yes (cx-gui-do cx-activate-item "NavigationPane*Frame1*PushButton7(Boundary Conditions)") (cx-gui-do cx-set-list-selections "Boundary Conditions*Frame1*Table1*Frame1*List1(Zone)" '( 1)) (cx-gui-do cx-activate-item "Boundary Conditions*Frame1*Table1*Frame1*List1(Zone)") (cx-gui-do cx-activate-item "Boundary Conditions*Frame1*Table1*Frame2*Table2*Frame4*Tabl e4*Frame1*ButtonBox1*PushButton1(Edit)") (cx-gui-do cx-set-real-entry-list "velocity-inlet-32-1*Frame4*Frame3(Momentum)*Frame1*Table1*Frame8*Tab le8*RealEntry2(Velocity Magnitude)" '( 50)) (cx-gui-do cx-set-real-entry-list "velocity-inlet-32-1*Frame4*Frame3(Momentum)*Frame1*Table1*Frame13*Ta ble13*RealEntry2(X-Component of Flow Direction)" '( 0.5)) (cx-gui-do cx-set-real-entry-list "velocity-inlet-32-1*Frame4*Frame3(Momentum)*Frame1*Table1*Frame14*Ta ble14*RealEntry2(Y-Component of Flow Direction)" '( 0.4)) (cx-gui-do cx-set-real-entry-list "velocity-inlet-32-1*Frame4*Frame3(Momentum)*Frame1*Table1*Frame15*Ta ble15*RealEntry2(Z-Component of Flow Direction)" '( 0.1)) (cx-gui-do cx-activate-item "velocity-inlet-32-1*PanelButtons*PushButton1(OK)") solve iterate 30 wcd re_2.5_10^6_a_4_02.cas yes |
|
January 13, 2012, 23:43 |
|
#2 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,654
Rep Power: 65 |
My first question is why can you not use a text-only journal file?
Your commands are fairly simple and would only take approximately 10 minutes to write a traditional journal file to carry out the commands. |
|
January 14, 2012, 07:21 |
|
#3 |
New Member
Join Date: Nov 2011
Posts: 7
Rep Power: 14 |
Hi thx for reply. Actually I was trying to write just text-journal file. Unfortunately I could not find any text script function for settings velocity vector in boundary con. settings.
|
|
January 14, 2012, 10:59 |
|
#4 | |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,654
Rep Power: 65 |
Quote:
Pressing the return (enter) key in the command window will give a list of all available text commands you can issue (for both GUI and nonGUI modes). You can use this feature to learn which text commands and which order you need to type them in order to perform a certain task. Here is an example of what might work for you. Depending on what models you have activated there may be more or less options. /define/boundary-conditions/velocity-inlet velocity-inlet-32 y y n 60 n 0 y n .5 n .3 n .2 n 300 y n 1 n 1 This example corresponds to realizable-k-epsilon model with energy turned on. You can use both "yes" or "y" and "no" or "n". The slashes are also not necessary and can be replaced by spaces. My suggestion is to type in define boundary-conditions velocity-inlet and then try to step your way through all the prompts from the text menu. Then copy your responses into your journal file. |
||
January 14, 2012, 13:01 |
|
#5 |
New Member
Join Date: Nov 2011
Posts: 7
Rep Power: 14 |
Awesome, thank you very much. I will take a look on this in help file.
|
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
1.7.x Environment Variables on Linux 10.04 | rasma | OpenFOAM Installation | 9 | July 30, 2010 05:43 |
Problem installing on Ubuntu 9.10 -> 'Cannot open : No such file or directory' | mfiandor | OpenFOAM Installation | 2 | January 25, 2010 10:50 |
[OpenFOAM] ParaView 33 canbt open OpenFoam file | hariya03 | ParaView | 7 | September 25, 2008 18:33 |
DxFoam reader update | hjasak | OpenFOAM Post-Processing | 69 | April 24, 2008 02:24 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 18:51 |