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

Journal file problem

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   January 13, 2012, 22:34
Default Journal file problem
  #1
New Member
 
Join Date: Nov 2011
Posts: 7
Rep Power: 5
messik is on a distinguished road
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
messik is offline   Reply With Quote

Old   January 13, 2012, 23:43
Default
  #2
Senior Member
 
Lucky Tran
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 594
Rep Power: 11
LuckyTran is on a distinguished road
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.
LuckyTran is offline   Reply With Quote

Old   January 14, 2012, 07:21
Default
  #3
New Member
 
Join Date: Nov 2011
Posts: 7
Rep Power: 5
messik is on a distinguished road
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.
messik is offline   Reply With Quote

Old   January 14, 2012, 10:59
Default
  #4
Senior Member
 
Lucky Tran
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 594
Rep Power: 11
LuckyTran is on a distinguished road
Quote:
Originally Posted by messik View Post
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.
LuckyTran is offline   Reply With Quote

Old   January 14, 2012, 13:01
Default
  #5
New Member
 
Join Date: Nov 2011
Posts: 7
Rep Power: 5
messik is on a distinguished road
Awesome, thank you very much. I will take a look on this in help file.
messik is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


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 04:43
Problem installing on Ubuntu 9.10 -> 'Cannot open : No such file or directory' mfiandor OpenFOAM Installation 2 January 25, 2010 10:50
ParaView 33 canbt open OpenFoam file hariya03 OpenFOAM Paraview & paraFoam 7 September 25, 2008 17:33
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 01:24
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51


All times are GMT -4. The time now is 14:57.