CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Visualization & Post-Processing (https://www.cfd-online.com/Forums/visualization/)
-   -   Plotting transient results in cfd post or fluent (https://www.cfd-online.com/Forums/visualization/171322-plotting-transient-results-cfd-post-fluent.html)

suyesh May 5, 2016 09:59

Plotting transient results in cfd post or fluent
 
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!!!
Help me out guys.

suyesh May 13, 2016 09:54

I made the following batch file and automated the process for each surface. But i still had to run each result file. The graph was created in MS excel.

# 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


All times are GMT -4. The time now is 21:56.