CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   Journal file problem (http://www.cfd-online.com/Forums/fluent/96156-journal-file-problem.html)

messik January 13, 2012 22:34

Journal file problem
 
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

LuckyTran January 13, 2012 23:43

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.

messik January 14, 2012 07:21

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.

LuckyTran January 14, 2012 10:59

Quote:

Originally Posted by messik (Post 339291)
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.

The text commands that go into a journal file are the exact same text commands that you would input into the command window. So you just need to figure out which text commands to use. In the fluent help file there is an entire section on all the possible text commands you can use.

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.

messik January 14, 2012 13:01

Awesome, thank you very much. I will take a look on this in help file.


All times are GMT -4. The time now is 03:49.