|
[Sponsors] |
November 11, 2009, 07:02 |
CFX average concentration possible?
|
#1 |
Senior Member
Join Date: Jul 2009
Posts: 260
Rep Power: 17 |
Hi there,
I have realeased a passive scalar (kg/kg) into a room of air and can use the probe in CFX post to individually sample the concentration at a point. How can I get CFX or Fluent (or other free post processing software you recommend) to give me an average concentration within the room? or could it print out say 1000 point's conc which I could put in excel? Thanks and Best regards, MFK |
|
November 11, 2009, 21:06 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143 |
You can do this in post-processing using CFD-Post or as the simulation proceeds using a monitor point.
Both of these approaches can give you either values at a point or averaged values (and a lot more). |
|
November 12, 2009, 03:53 |
|
#3 | |
Senior Member
Join Date: Jul 2009
Posts: 260
Rep Power: 17 |
Quote:
I've tried both approaches but cannot find an average value only the specific value at the point. Could you clarify please. MFK |
||
November 12, 2009, 06:17 |
|
#4 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143 |
Have a look in the CEL Expression Language in the reference manual. Functions like volumeInt(), volumeAve(), massAvg() will be of interest.
|
|
November 12, 2009, 18:47 |
|
#5 | |
Senior Member
Join Date: Jul 2009
Posts: 260
Rep Power: 17 |
Quote:
I need to be able to analyse 1000 intermediate files for a transient solution, doing it all in post seems a bit teadious. Can I set up in Pre a CEL (or otherwise) to print out the VolAve(conc)@Default for every time-step so I can graph the variable? Best wishes, MFK |
||
November 13, 2009, 04:37 |
|
#6 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143 |
If the results files already exist then do it in a CFD-Post session file. Make it read in a data file, export the result and loop to the next data file. If you are about to set the simulation up then make it a monitor point and it will automatically output to Solver Manager each timestep.
|
|
November 13, 2009, 04:42 |
|
#7 | |
Senior Member
Join Date: Jul 2009
Posts: 260
Rep Power: 17 |
Quote:
|
||
November 13, 2009, 04:52 |
|
#8 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143 |
No. Monitor points can also be set to output CEL expressions, then you can use functions like volumeAve() to give averaged amounts.
|
|
November 13, 2009, 05:33 |
|
#9 |
Senior Member
Join Date: Jul 2009
Posts: 260
Rep Power: 17 |
I created the expression in Pre as: volumeAve(Tracer)@Default Domain and it accepted it. But when I came to make a monitor point it did not appear in the list of variables and expressions.
Best regards, MFK |
|
November 13, 2009, 17:01 |
|
#10 | |
Senior Member
Join Date: Jul 2009
Posts: 260
Rep Power: 17 |
Quote:
In Post I created a Chart; instead of using a Point I chose Expression vs time and chose the one I'd created earlier. Then exported the graph into excel. It worked once, but now no chart is produced, do you think this method is valid for what we are discussing? It seems simple but most other explanations appear complicated with scripts etc, what do you think? |
||
November 13, 2009, 17:24 |
|
#11 |
Senior Member
Join Date: Jun 2009
Location: Technische Universität Chemnitz
Posts: 107
Rep Power: 16 |
kingjewel1- Set up a monitor point(s) in CFX-pre using an expression using volumeAve or probe. Then when running the solution the monitor points will appear in plot. Simply right-click in the plot area and chose Export Plot Data. This will allow you to save the data in a csv format which can be read into Excell so you can manipulate how you see fit. Also, if you already ran it from a run that has the monitor points and you have the res file, open it in the solver and then you can simply right-click in the user monitor plot to get the cvs file.
|
|
November 14, 2009, 08:06 |
|
#12 | |
Senior Member
Join Date: Jul 2009
Posts: 260
Rep Power: 17 |
Quote:
|
||
November 14, 2009, 13:07 |
|
#13 | |
Senior Member
Join Date: Jul 2009
Posts: 260
Rep Power: 17 |
Is there a reason why in Post: volumeAve(Tracer)@Default Domain expression passed from Pre should be different to the built in volumeAve by several orders of magnitude? If not then there's something strange going on.
Quote:
|
||
November 15, 2009, 03:57 |
|
#14 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143 |
The CEL should evaluate to the same value where ever you do it. Check that you are evaluating the same data set - does the dataset you are using in CFD-Post include the tracer variable? If not it will use the dataset already in it (I think, not sure what it does) it can calculate wildly incorrect values.
Set up and record a session file in CFD-Post. Do an example of what you want to do (say load one file, calculate something and export it, then load the next file) and stop the session file. You can then load the session file in a text editor and edit it to loop over all the files. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Pros and Cons for CFX, CFdesign, COMSOL | Val | Main CFD Forum | 3 | June 10, 2011 02:20 |
PhD using CFX | Rui | CFX | 9 | May 28, 2007 05:59 |
Taking average in CFX Post | TING | CFX | 0 | August 24, 2004 10:00 |
CFX 5.6: Dispersion Coefficient/ Concentration | shir | CFX | 0 | November 26, 2003 09:02 |
CFX 4.4 installation problem | Pandu Sattvika | CFX | 1 | December 1, 2001 04:07 |