CFX average concentration possible?
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 |
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). |
Quote:
I've tried both approaches but cannot find an average value only the specific value at the point. Could you clarify please. MFK |
Have a look in the CEL Expression Language in the reference manual. Functions like volumeInt(), volumeAve(), massAvg() will be of interest.
|
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 |
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.
|
Quote:
|
No. Monitor points can also be set to output CEL expressions, then you can use functions like volumeAve() to give averaged amounts.
|
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 |
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? |
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.
|
Quote:
|
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:
|
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. |
All times are GMT -4. The time now is 21:01. |