|
[Sponsors] |
July 15, 2009, 13:33 |
How to plot a function over a time period?
|
#1 |
New Member
Join Date: Jul 2009
Posts: 8
Rep Power: 17 |
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. |
|
July 15, 2009, 19:34 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,844
Rep Power: 144 |
Hi,
Assign the CEL expression to a monitor point. Then you can get the full time history as the solution progresses in the solver manager. Glenn Horrocks |
|
July 16, 2009, 10:15 |
|
#3 |
New Member
Join Date: Jul 2009
Posts: 8
Rep Power: 17 |
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)
[edit] 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. Last edited by Cirion0000; July 16, 2009 at 10:38. |
|
July 16, 2009, 20:34 |
|
#4 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,844
Rep Power: 144 |
Hi,
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. Glenn Horrocks |
|
July 18, 2009, 13:48 |
|
#5 |
Senior Member
Jack
Join Date: Mar 2009
Posts: 106
Rep Power: 16 |
Hi,
IŽd like to know in how to do that in a transient simulation (please see the text below)? Rogerio. 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 dialog box. 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: #!/bin/csh foreach file ($argv) <CFXROOT>/cfdpost -batch testbatch.cse $file end |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Transient simulation not converging | skabilan | OpenFOAM Running, Solving & CFD | 14 | December 17, 2019 00:12 |
Computational time | sunnysun | OpenFOAM Running, Solving & CFD | 5 | March 16, 2009 04:32 |
Compilation errors in ThirdPartymallochoard | feng_w | OpenFOAM Installation | 1 | January 25, 2009 07:59 |
Gravity function of time | arapar | FLUENT | 0 | March 8, 2008 14:49 |
unsteady calcs in FLUENT | Sanjay Padhiar | Main CFD Forum | 1 | March 31, 1999 13:32 |