|
[Sponsors] |
obtaining transient results from multiple timestep files |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 9, 2016, 07:28 |
obtaining transient results from multiple timestep files
|
#1 |
New Member
Suyesh
Join Date: Mar 2016
Posts: 9
Rep Power: 10 |
I have run a transient simulation of a Pelton Turbine. I have divided areas on the surface of the turbine bucket and named them as I need. Now I need to plot the average pressure values of each named surface with respect to time. The Fluent plot allows me to plot pressure values with respect to distance and only for the last case file.
I can get the values manually by uploading each time step solution file but there must be an easier way, using batch files and script files. I have gone through the CFD-Post users guide but still am lost. Help me out guys. |
|
May 13, 2016, 10:52 |
|
#2 |
New Member
Suyesh
Join Date: Mar 2016
Posts: 9
Rep Power: 10 |
I made the following batch file and automated the process for each surface. But i still had to run each result file.
# Session file started: 2016/05/09 18:23:54 # CFX-15.0.7 build 2014.04.26-07.00-131803 # To avoid unnecessary file pre-processing and modifications, include # COMMAND FILE at the top of your session file. # If it is not included, the file is assumed to be older and will be # modified for backward compatibility. COMMAND FILE: CFX Post Version = 15.0 END ! my $files = 'report101.xls'; ! my $OUTFILE; ! open $OUTFILE, '>>', $files; ! @list = ("z1 1", "z1 2", "z1 3", "z2 1", "z2 2", "z2 3", "z3 1", "z3 2", "z3 3", "z4 1", "z4 2", "z4 3", "z5 1", "z5 2", "z5 3", "z6 1", "z6 2", "z6 3", "z7 1", "z7 2", "z7 3", "z8 1", "z8 2", "z8 3", "z9 1", "z9 2", "z9 3"); ! $filepath = getValue("DATA READER","Current Results File"); ! print { $OUTFILE } "\n$filepath\t"; ! foreach $a (@list){ ! print "Execute: $a\n"; ! $surface = $a; ! $pressureVal = areaAve("Total Pressure",$surface); ! print "\nFor $filepath, Pressure at $surface is $pressureVal\n"; ! print { $OUTFILE } "$pressureVal\t"; ! } ! print "Completed!"; ! close $OUTFILE; > savestate filename=C:\Project files\0-5\File 0-5_files\dp0\Post\Post\\ Results.cst, mode=overwrite # Session file stopped: 2016/05/09 18:27:07 |
|
Tags |
cfd-post, fluent 13, plotting, transient |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with an old Simulation | FrankW | CFX | 3 | February 8, 2016 05:28 |
Interpolating a results file onto multiple identical domains | jtipton2 | CFX | 0 | June 7, 2011 12:44 |
Error writing transient results in FSI | CFX | 1 | April 15, 2010 07:57 | |
Transient solution multiple CGNS files in Tecplot | Ramses Galaz | Tecplot | 3 | October 17, 2006 11:43 |
Results saving in CFD | hawk | Main CFD Forum | 16 | July 21, 2005 21:51 |