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

UDF for Automatic Solution Initialization for previous case data file

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

Like Tree2Likes
  • 1 Post By vinerm
  • 1 Post By vinerm

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 27, 2020, 17:57
Default UDF for Automatic Solution Initialization for previous case data file
  #1
Member
 
gartz89's Avatar
 
Angel Penev
Join Date: Apr 2016
Location: Bulgaria
Posts: 47
Rep Power: 9
gartz89 is on a distinguished road
Hello people, first I wish you good luck and keep up going with the fight CoronaVirus.

My question is May I write UDF code for quasi-stationary mode. I mean when I’m solving transient model I and most of the people here looking for the stable regime at the end of the solution.

For example if the regime have some switches ON/OFF or some reverse flows, you save as the first simulations and you have to use the solution for working into the next model. So I’m diligent and every time when I’m going to “Initialization button” Automatic Solution and Initialize the case data from the previous last moment of the model…

Oh, this is very bad if you have to do it 20 or 100 times in the day for calibration of some model.

So I hope that the people here will understand me. I’m really care about can I write UDF for this kind of problem? I sure that I can, but how have to begin and how long it will take. Could you give me some advice for start, because I’m not a programmer.

Thank you, gartz89
gartz89 is offline   Reply With Quote

Old   March 28, 2020, 15:45
Default Clarity
  #2
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
Your requirement is not very clear. If it is just initialization based on previous data, then you do not need UDF; all you need is a journal that can read either interpolation file or older data file.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   March 28, 2020, 18:29
Default
  #3
Member
 
gartz89's Avatar
 
Angel Penev
Join Date: Apr 2016
Location: Bulgaria
Posts: 47
Rep Power: 9
gartz89 is on a distinguished road
Hello vinerm, I found some codes that you said, but unfortunately I don't know how to use them.
Also I would like to change some boundary conditions, before start the next simulation thats why I thik for UDF first,but it's become very difficult...


(cx-gui-do cx-set-text-entry "Select File*FilterText" "e:\3_re_fluent_with_actuator\active\1hz\\*")
(cx-gui-do cx-activate-item "Select File*Apply")
(cx-gui-do cx-set-text-entry "Select File*Text" "x1_%6t.dat")
(cx-gui-do cx-activate-item "Select File*OK")

> (cx-gui-do cx-activate-item "Export*PanelButtons*PushButton2(Cancel)")
> (cx-gui-do cx-activate-item "MenuBar*WriteSubMenu*Stop Journal")


(cx-gui-do cx-activate-item "MenuBar*FileMenu*Export...")
(cx-gui-do cx-set-toggle-button "Export*Frame1*Table1*Frame8(Delimiter)*Toggle Box8 (Delimiter)*Space" #f)
(cx-gui-do cx-activate-item "Export*Frame1*Table1*Frame8(Delimiter)*Toggle Box8 (Delimiter)*Space")
(cx-gui-do cx-set-list-selections "Export*Frame1*Table1*Frame2*List2(Surfaces)" '( 13))
(cx-gui-do cx-activate-item "Export*Frame1*Table1*Frame2*List2(Surfaces)")
(cx-gui-do cx-activate-item "Export*PanelButtons*PushButton1(OK)")
(cx-gui-do cx-set-text-entry "Select File*FilterText" "e:\3_re_fluent_with_actuator\active\1hz\data_ outp ut\\*")
(cx-gui-do cx-set-text-entry "Select File*Text" "x1_%6t.dat")
(cx-gui-do cx-activate-item "Select File*OK")
gartz89 is offline   Reply With Quote

Old   March 29, 2020, 07:25
Default Journal
  #4
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
All this is doable using journal and UDF is not applicable in this scenario; UDFs have different objectives.

To use journal, go to Fluent text user interface and press Enter. It will show all the top level commands. Type one of these, e.g., file, and then press enter. It will show all second level commands under file. You can choose another command within second level and so on. This way you can develop your journal and read it via File > Read > Journal or file read-journal <name of journal file> or if you start Fluent in batch mode then fluent <2d|3d|2ddp|3ddp> -i <name of journal file>. You can use any name for the name of journal file. It is a simple text file with commands based on the commands you choose from text user interface. E.g., if you want to read a set of case and data file that have same name, run it as steady-state for 100 iterations, write it as case and data, and exit, then journal file will have following commands

f rcd caseFileName.cas.gz
solve iterate 100
f wcd caseFileName_%i.cas.gz
exit y

Put these commands in a text file after changing caseFileName with the name of your case file, save that text file with any name, and load it in Fluent. Fluent will do all that is given here in the sequence given.

You can also refer the following link for text commands, however, do note that these commands are sequential, context sensitive (change based on models chosen), and version sensitive.

https://www.afs.enea.it/project/nept...t/main_pre.htm
gartz89 likes this.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   March 30, 2020, 04:55
Default
  #5
Member
 
gartz89's Avatar
 
Angel Penev
Join Date: Apr 2016
Location: Bulgaria
Posts: 47
Rep Power: 9
gartz89 is on a distinguished road
Ok but I've got another problem when I've done all this things in fluent how can I get results into workbench CFD-Post. Sorry for the stupid question, but I'm quite new in all of these things.

Now what I'm doing... I start a journal after read a mech specify all settings, and calculate, after that i specify the new one and these is all I need then I copy the rest. The journal file, the mesh and the case and data file are in one foulder... I'll give you a code that I'm using for 3 switches.

(cx-gui-do cx-activate-item "MenuBar*ReadSubMenu*Mesh...")
(cx-gui-do cx-set-text-entry "Select File*FilterText" "c:\users\angel\desktop\old method\*")
(cx-gui-do cx-activate-item "Select File*Apply")
(cx-gui-do cx-set-text-entry "Select File*Text" "mesh.msh")
(cx-gui-do cx-activate-item "Select File*OK")
(cx-gui-do cx-activate-item "General*Frame1*Table1*Frame1(Mesh)*ButtonBox1(Mes h)*PushButton3(Check)")
(cx-gui-do cx-activate-item "General*Frame1*Table1*Frame1(Mesh)*ButtonBox1(Mes h)*PushButton5(Report Quality)")
(cx-gui-do cx-set-toggle-button "General*Frame1*Table1*Frame2(Solver)*Table2(Solve r)*ToggleBox5(Time)*Transient" #f)
(cx-gui-do cx-activate-item "General*Frame1*Table1*Frame2(Solver)*Table2(Solve r)*ToggleBox5(Time)*Transient")
(cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Setup"))
(cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Setup|Models|Energy (Off)"))
(cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Setup|Models|Energy (Off)"))
(cx-gui-do cx-activate-item "NavigationPane*List_Tree1")
(cx-gui-do cx-set-toggle-button "Energy*Frame1(Energy)*Table1(Energy)*Frame1*Toggl eBox1*CheckButton1(Energy Equation)" #f)
(cx-gui-do cx-activate-item "Energy*Frame1(Energy)*Table1(Energy)*Frame1*Toggl eBox1*CheckButton1(Energy Equation)")
(cx-gui-do cx-activate-item "Energy*PanelButtons*PushButton1(OK)")
(cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Setup|Boundary Conditions|inlet (velocity-inlet)"))
(cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Setup|Boundary Conditions|inlet (velocity-inlet)"))
(cx-gui-do cx-activate-item "NavigationPane*List_Tree1")
(cx-gui-do cx-set-real-entry-list "velocity-inlet-5-1*Frame4*Frame1(Momentum)*Frame1*Table1*Frame12*Ta ble12*RealEntry2(Velocity Magnitude)" '( 1))
(cx-gui-do cx-activate-item "velocity-inlet-5-1*PanelButtons*PushButton1(OK)")
(cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Setup|Boundary Conditions|wall-surface_body (wall)"))
(cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Setup|Boundary Conditions|wall-surface_body (wall)"))
(cx-gui-do cx-activate-item "NavigationPane*List_Tree1")
(cx-gui-do cx-set-toggle-button "wall-7-1*Frame4*Frame3(Thermal)*Frame1*Frame1(Thermal Conditions)*Frame1*ToggleBox1*Temperature" #f)
(cx-gui-do cx-activate-item "wall-7-1*Frame4*Frame3(Thermal)*Frame1*Frame1(Thermal Conditions)*Frame1*ToggleBox1*Temperature")
(cx-gui-do cx-set-real-entry-list "wall-7-1*Frame4*Frame3(Thermal)*Frame1*Frame1(Thermal Conditions)*Frame7*Table7*Frame1*Table1*RealEntry2 (Temperature)" '( 290))
(cx-gui-do cx-activate-item "wall-7-1*PanelButtons*PushButton1(OK)")
(cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Solution|Solution Methods"))
(cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Setup|Boundary Conditions|outlet (pressure-outlet)"))
(cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Setup|Boundary Conditions|interior-surface_body (interior)"))
(cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Solution|Solution Methods"))
(cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Solution|Solution Controls"))
(cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Solution|Solution Initialization"))
(cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Solution|Calculation Activities"))
(cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Solution|Run Calculation"))
(cx-gui-do cx-set-integer-entry "Calculation Activities*IntegerEntry2(Autosave Every (Iterations))" 1)
(cx-gui-do cx-activate-item "Calculation Activities*IntegerEntry2(Autosave Every (Iterations))")
(cx-gui-do cx-set-real-entry-list "Run Calculation*Frame1*Table1*Frame6*Table6*RealEntry1 (Time Step Size)" '( 0.1))
(cx-gui-do cx-activate-item "Run Calculation*Frame1*Table1*Frame6*Table6*RealEntry1 (Time Step Size)")
(cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Setup|Boundary Conditions|wall-surface_body (wall)"))
(cx-gui-do cx-set-integer-entry "Run Calculation*Frame1*Table1*Frame6*Table6*IntegerEnt ry2(Number of Time Steps)" 20)
(cx-gui-do cx-activate-item "Run Calculation*Frame1*Table1*Frame6*Table6*IntegerEnt ry2(Number of Time Steps)")
(cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Setup|Boundary Conditions"))
(cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Setup|Cell Zone Conditions"))
(cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Setup|Materials"))
(cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Setup|Boundary Conditions|wall-surface_body (wall)"))
(cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Setup|Boundary Conditions|outlet (pressure-outlet)"))
(cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Solution|Solution Initialization"))
(cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Solution|Calculation Activities"))
(cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Solution|Solution Initialization"))
(cx-gui-do cx-set-list-selections "Solution Initialization*Frame1*Table1*DropDownList1(Compute from)" '( 1))
(cx-gui-do cx-activate-item "Solution Initialization*Frame1*Table1*DropDownList1(Compute from)")
(cx-gui-do cx-activate-item "Solution Initialization*Frame1*Table1*ButtonBox8*PushButton 1(Initialize)")
(cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Solution|Run Calculation"))
(cx-gui-do cx-activate-item "Run Calculation*Frame1*Table1*PushButton21(Calculate)" )
(cx-gui-do cx-activate-item "Information*OK")
(cx-gui-do cx-activate-item "MenuBar*WriteSubMenu*Case & Data...")
(cx-gui-do cx-set-text-entry "Select File*Text" "mesh-1-00020.cas")
(cx-gui-do cx-activate-item "Select File*OK")
(cx-gui-do cx-activate-item "Question*OK")
(cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Solution|Solution Initialization"))
(cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Setup|Boundary Conditions|inlet (velocity-inlet)"))
(cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Setup|Boundary Conditions|inlet (velocity-inlet)"))
(cx-gui-do cx-activate-item "NavigationPane*List_Tree1")
(cx-gui-do cx-activate-item "velocity-inlet-5-1*PanelButtons*PushButton2(Cancel)")
(cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Setup|Boundary Conditions"))
(cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Setup|Boundary Conditions"))
(cx-gui-do cx-activate-item "NavigationPane*List_Tree1")
(cx-gui-do cx-set-list-selections "Boundary Conditions*Frame1*Table1*Frame1*List1(Zone)" '( 2))
(cx-gui-do cx-activate-item "Boundary Conditions*Frame1*Table1*Frame1*List1(Zone)")
(cx-gui-do cx-set-list-selections "Boundary Conditions*Frame1*Table1*Frame2*Table2*DropDownLis t2(Type)" '( 12))
(cx-gui-do cx-activate-item "Boundary Conditions*Frame1*Table1*Frame2*Table2*DropDownLis t2(Type)")
(cx-gui-do cx-set-real-entry-list "velocity-inlet-6-1*Frame4*Frame1(Momentum)*Frame1*Table1*Frame12*Ta ble12*RealEntry2(Velocity Magnitude)" '( 2))
(cx-gui-do cx-set-real-entry-list "velocity-inlet-6-1*Frame4*Frame3(Thermal)*Frame1*Table1*Frame1*Tabl e1*RealEntry2(Temperature)" '( 270))
(cx-gui-do cx-set-real-entry-list "velocity-inlet-6-1*Frame4*Frame1(Momentum)*Frame1*Table1*Frame12*Ta ble12*RealEntry2(Velocity Magnitude)" '( 0.1))
(cx-gui-do cx-activate-item "velocity-inlet-6-1*PanelButtons*PushButton1(OK)")
(cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Setup|Boundary Conditions|inlet (velocity-inlet)"))
(cx-gui-do cx-set-list-selections "Boundary Conditions*Frame1*Table1*Frame1*List1(Zone)" '( 0))
(cx-gui-do cx-activate-item "Boundary Conditions*Frame1*Table1*Frame1*List1(Zone)")
(cx-gui-do cx-set-list-selections "Boundary Conditions*Frame1*Table1*Frame2*Table2*DropDownLis t2(Type)" '( 10))
(cx-gui-do cx-activate-item "Boundary Conditions*Frame1*Table1*Frame2*Table2*DropDownLis t2(Type)")
(cx-gui-do cx-activate-item "pressure-outlet-5-1*PanelButtons*PushButton1(OK)")
(cx-gui-do cx-set-list-selections "Boundary Conditions*Frame1*Table1*Frame1*List1(Zone)" '( 3))
(cx-gui-do cx-activate-item "Boundary Conditions*Frame1*Table1*Frame1*List1(Zone)")
(cx-gui-do cx-set-list-selections "Boundary Conditions*Frame1*Table1*Frame1*List1(Zone)" '( 2))
(cx-gui-do cx-activate-item "Boundary Conditions*Frame1*Table1*Frame1*List1(Zone)")
(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-set-list-selections "Boundary Conditions*Frame1*Table1*Frame1*List1(Zone)" '( 0))
(cx-gui-do cx-activate-item "Boundary Conditions*Frame1*Table1*Frame1*List1(Zone)")
(cx-gui-do cx-set-list-selections "Boundary Conditions*Frame1*Table1*Frame1*List1(Zone)" '( 3))
(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*ButtonBox1*PushButton1(Edit)")
(cx-gui-do cx-activate-item "wall-7-1*PanelButtons*PushButton1(OK)")
(cx-gui-do cx-set-list-selections "Boundary Conditions*Frame1*Table1*Frame1*List1(Zone)" '( 2))
(cx-gui-do cx-activate-item "Boundary Conditions*Frame1*Table1*Frame1*List1(Zone)")
(cx-gui-do cx-set-list-selections "Boundary Conditions*Frame1*Table1*Frame1*List1(Zone)" '( 2))
(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*ButtonBox1*PushButton1(Edit)")
(cx-gui-do cx-activate-item "velocity-inlet-6-1*PanelButtons*PushButton2(Cancel)")
(cx-gui-do cx-set-list-selections "Boundary Conditions*Frame1*Table1*Frame1*List1(Zone)" '( 3))
(cx-gui-do cx-activate-item "Boundary Conditions*Frame1*Table1*Frame1*List1(Zone)")
(cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Solution|Solution Initialization"))
(cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Solution|Calculation Activities"))
(cx-gui-do cx-set-toggle-button "Calculation Activities*CheckButton8(Automatically Initialize Solution and Modify Case)" #f)
(cx-gui-do cx-activate-item "Calculation Activities*CheckButton8(Automatically Initialize Solution and Modify Case)")
(cx-gui-do cx-activate-item "Calculation Activities*PushButton10(Edit)")
(cx-gui-do cx-set-toggle-button "Automatic Solution Initialization and Case Modification*Frame1*Frame1(Initialization Method)*Frame1(Indicate how the solution should be initialized)*Table1(Indicate how the solution should be initialized)*ToggleBox1*Use Solution Data From File" #f)
(cx-gui-do cx-activate-item "Automatic Solution Initialization and Case Modification*Frame1*Frame1(Initialization Method)*Frame1(Indicate how the solution should be initialized)*Table1(Indicate how the solution should be initialized)*ToggleBox1*Use Solution Data From File")
(cx-gui-do cx-activate-item "Automatic Solution Initialization and Case Modification*Frame1*Frame1(Initialization Method)*Frame1(Indicate how the solution should be initialized)*Table1(Indicate how the solution should be initialized)*Frame3*Table3*Frame1(Data File)*Table1(Data File)*PushButton2(Browse)")
(cx-gui-do cx-set-text-entry "Select File*Text" "mesh-1-00020.dat")
(cx-gui-do cx-activate-item "Select File*OK")
(cx-gui-do cx-set-integer-entry "Automatic Solution Initialization and Case Modification*Frame1*Frame3(Case Modification)*Frame1*Table1*Frame3*Table3*IntegerE ntry12" 20)
(cx-gui-do cx-activate-item "Automatic Solution Initialization and Case Modification*PanelButtons*PushButton1(OK)")
(cx-gui-do cx-activate-item "Question*OK")
(cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Solution|Solution Initialization"))
(cx-gui-do cx-set-list-selections "Solution Initialization*Frame1*Table1*DropDownList1(Compute from)" '( 2))
(cx-gui-do cx-activate-item "Solution Initialization*Frame1*Table1*DropDownList1(Compute from)")
(cx-gui-do cx-activate-item "Solution Initialization*Frame1*Table1*ButtonBox8*PushButton 1(Initialize)")
(cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Solution|Run Calculation"))
(cx-gui-do cx-activate-item "Run Calculation*Frame1*Table1*PushButton21(Calculate)" )
(cx-gui-do cx-activate-item "MenuBar*WriteSubMenu*Case & Data...")
(cx-gui-do cx-set-text-entry "Select File*Text" "mesh-2-00020.cas")
(cx-gui-do cx-activate-item "Select File*OK")
(cx-gui-do cx-activate-item "Question*OK")
(cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Setup|Boundary Conditions"))
(cx-gui-do cx-set-list-selections "Boundary Conditions*Frame1*Table1*Frame1*List1(Zone)" '( 0))
(cx-gui-do cx-activate-item "Boundary Conditions*Frame1*Table1*Frame1*List1(Zone)")
(cx-gui-do cx-set-list-selections "Boundary Conditions*Frame1*Table1*Frame2*Table2*DropDownLis t2(Type)" '( 12))
(cx-gui-do cx-activate-item "Boundary Conditions*Frame1*Table1*Frame2*Table2*DropDownLis t2(Type)")
(cx-gui-do cx-set-real-entry-list "velocity-inlet-5-1*Frame4*Frame1(Momentum)*Frame1*Table1*Frame12*Ta ble12*RealEntry2(Velocity Magnitude)" '( 1))
(cx-gui-do cx-activate-item "velocity-inlet-5-1*PanelButtons*PushButton1(OK)")
(cx-gui-do cx-set-list-selections "Boundary Conditions*Frame1*Table1*Frame1*List1(Zone)" '( 2))
(cx-gui-do cx-activate-item "Boundary Conditions*Frame1*Table1*Frame1*List1(Zone)")
(cx-gui-do cx-set-list-selections "Boundary Conditions*Frame1*Table1*Frame2*Table2*DropDownLis t2(Type)" '( 10))
(cx-gui-do cx-activate-item "Boundary Conditions*Frame1*Table1*Frame2*Table2*DropDownLis t2(Type)")
(cx-gui-do cx-activate-item "pressure-outlet-6-1*PanelButtons*PushButton1(OK)")
(cx-gui-do cx-set-list-selections "Boundary Conditions*Frame1*Table1*Frame1*List1(Zone)" '( 3))
(cx-gui-do cx-activate-item "Boundary Conditions*Frame1*Table1*Frame1*List1(Zone)")
(cx-gui-do cx-set-list-selections "Boundary Conditions*Frame1*Table1*Frame1*List1(Zone)" '( 0))
(cx-gui-do cx-activate-item "Boundary Conditions*Frame1*Table1*Frame1*List1(Zone)")
(cx-gui-do cx-set-list-selections "Boundary Conditions*Frame1*Table1*Frame1*List1(Zone)" '( 3))
(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*ButtonBox1*PushButton1(Edit)")
(cx-gui-do cx-activate-item "wall-7-1*PanelButtons*PushButton1(OK)")
(cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Solution|Solution Initialization"))
(cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Solution|Calculation Activities"))
(cx-gui-do cx-activate-item "Calculation Activities*PushButton10(Edit)")
(cx-gui-do cx-activate-item "Edit Automatic Initialization and Case Modifications*PanelButtons*PushButton2(Cancel)")
(cx-gui-do cx-activate-item "Calculation Activities*PushButton10(Edit)")
(cx-gui-do cx-set-toggle-button "Edit Automatic Initialization and Case Modifications*ToggleBox2*Initialization settings and/or all case modifications (Calculating again will reinitialize the case)" #f)
(cx-gui-do cx-activate-item "Edit Automatic Initialization and Case Modifications*ToggleBox2*Initialization settings and/or all case modifications (Calculating again will reinitialize the case)")
(cx-gui-do cx-activate-item "Edit Automatic Initialization and Case Modifications*PanelButtons*PushButton1(OK)")
(cx-gui-do cx-activate-item "Automatic Solution Initialization and Case Modification*Frame1*Frame1(Initialization Method)*Frame1(Indicate how the solution should be initialized)*Table1(Indicate how the solution should be initialized)*Frame3*Table3*Frame1(Data File)*Table1(Data File)*PushButton2(Browse)")
(cx-gui-do cx-set-text-entry "Select File*Text" "mesh-2-00020.dat")
(cx-gui-do cx-activate-item "Select File*OK")
(cx-gui-do cx-activate-item "Automatic Solution Initialization and Case Modification*PanelButtons*PushButton1(OK)")
(cx-gui-do cx-activate-item "Question*OK")
(cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Solution|Solution Initialization"))
(cx-gui-do cx-set-list-selections "Solution Initialization*Frame1*Table1*DropDownList1(Compute from)" '( 2))
(cx-gui-do cx-activate-item "Solution Initialization*Frame1*Table1*DropDownList1(Compute from)")
(cx-gui-do cx-activate-item "Solution Initialization*Frame1*Table1*ButtonBox8*PushButton 1(Initialize)")
(cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Solution|Run Calculation"))
(cx-gui-do cx-activate-item "Run Calculation*Frame1*Table1*PushButton21(Calculate)" )
(cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Setup|General"))
(cx-gui-do cx-activate-item "MenuBar*WriteSubMenu*Case & Data...")
(cx-gui-do cx-set-text-entry "Select File*Text" "mesh-3-00020.cas")
(cx-gui-do cx-activate-item "Select File*OK")
(cx-gui-do cx-activate-item "Question*OK")
(cx-gui-do cx-activate-item "ToolBar*General Tools*write")
(cx-gui-do cx-activate-item "MenuBar*PopupMenuWrite*Case & Data...")
(cx-gui-do cx-set-text-entry "Select File*Text" "mesh-3-00020.cas")
(cx-gui-do cx-activate-item "Select File*OK")
(cx-gui-do cx-activate-item "Question*OK")
(cx-gui-do cx-activate-item "MenuBar*WriteSubMenu*Stop Journal")

Everything looks good but how to report the all results from every single simulation into CFD post... and sorry again for this question.
Thank you man!
gartz89 is offline   Reply With Quote

Old   March 30, 2020, 06:20
Default CFD-Post
  #6
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
This journal is a GUI journal. If it is working, its good. As far as CFD-Post is concerned, you don't really need a script. You can go to File > Load Results and load all of them in one go. Similarly, if you want to do this in WB, then just connect solution of all to CFD-Post. If you are using only one setup in WB instead of multiple setups, then you have to use the former option, i.e., start CFD-Post and then load all Fluent data files in one go.
gartz89 likes this.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   March 30, 2020, 08:38
Default
  #7
Member
 
gartz89's Avatar
 
Angel Penev
Join Date: Apr 2016
Location: Bulgaria
Posts: 47
Rep Power: 9
gartz89 is on a distinguished road
Thank you so much! It's working! I'm really appreciate you!
gartz89 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFoam "Permission denied" and "command not found" problems. iyidaniel@yahoo.co.uk OpenFOAM Running, Solving & CFD 11 January 2, 2018 07:47
[OpenFOAM.org] Error creating ParaView-4.1.0 OpenFOAM 2.3.0 tlcoons OpenFOAM Installation 13 April 20, 2016 18:34
[foam-extend.org] problem when installing foam-extend-1.6 Thomas pan OpenFOAM Installation 7 September 9, 2015 22:53
[swak4Foam] Problem installing swak_2.x for OpenFoam-2.4.0 towanda OpenFOAM Community Contributions 6 September 5, 2015 22:03
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08


All times are GMT -4. The time now is 08:51.