How to plot a function over a time period?
I want to plot this function: "1000*0.3142E-07*areaAve(Velocity)@OUTLET" [mass flow rate] over a certain time period. How can I do this? Seemingly simple problem, especially after all the hurdles I went through to get the FSI simulation and everything, but yet I can't figure this out, so any help is appreciated.
I would think there would be a way to achieve this in the table directly, sort of how in excel you assign the time values in one column also.
Assign the CEL expression to a monitor point. Then you can get the full time history as the solution progresses in the solver manager.
That's cool and all, but is there any way I can get the mass flow solution per time step (with the idea of plotting them over time as well as getting the overall mass flow over time) without having to re-do both FSI simulations entirely? I've already done them, and they took 30-50 hours... a pop. (Our computers here are bad, lol)
 I think I've got it, now I just have to find a way to take all the data and find an overall mass flow (but this is a start at least.)
What I did was just make a time chart, and use method: expression, and put in my expression there.
[edit2] Got it. Just exported the CSV file, done. Surprised I didn't figure this out before...
PS - I'm not sure if you were already telling me to do what I just did, but it sounded like from monitor point you meant in the cfx-pre solver menu.
Yes, I think you got it. There are two main approaches:
1) put in a monitor point and it will calculate as the simulation proceeds. You cannot post-process this.
2) Load the res files into CFD-Post and extract it there using the function calculator or a table. If you feel adventurous you can script it in CFD-Post to do it automatically. This can be done post-processing but obviously only on the time steps saved as the run proceeded.
IŽd like to know in how to do that in a transient simulation (please see the text below)?
Example: Pressure Calculation on Multiple Files using Batch Mode
This example calculates the value of pressure at a point in each of three results files.
These features can be useful in situations where a large number of results files need to be processed at once.
In order to carry out this procedure, you will make use of session files, power syntax and the Command Editor
First, create a session file based on the first results file.
You can now run the session file on any number of results files using the command:
<CFXROOT>/bin/cfdpost -batch testbatch.cse <resfile>
where <resfile> is the name of your results file. You can re-run the command by typing in another results file name.
As an example, this C shell script would pass arguments as results file names to the CFD-Post command line:
foreach file ($argv)
<CFXROOT>/cfdpost -batch testbatch.cse $file
|All times are GMT -4. The time now is 22:11.|