CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

CFX average concentration possible?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 11, 2009, 07:02
Default CFX average concentration possible?
  #1
Senior Member
 
Join Date: Jul 2009
Posts: 260
Rep Power: 17
kingjewel1 is on a distinguished road
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
kingjewel1 is offline   Reply With Quote

Old   November 11, 2009, 21:06
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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).
ghorrocks is offline   Reply With Quote

Old   November 12, 2009, 03:53
Default
  #3
Senior Member
 
Join Date: Jul 2009
Posts: 260
Rep Power: 17
kingjewel1 is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
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).
Thanks ghorrocks,

I've tried both approaches but cannot find an average value only the specific value at the point. Could you clarify please.

MFK
kingjewel1 is offline   Reply With Quote

Old   November 12, 2009, 06:17
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Have a look in the CEL Expression Language in the reference manual. Functions like volumeInt(), volumeAve(), massAvg() will be of interest.
ghorrocks is offline   Reply With Quote

Old   November 12, 2009, 18:47
Default
  #5
Senior Member
 
Join Date: Jul 2009
Posts: 260
Rep Power: 17
kingjewel1 is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
Have a look in the CEL Expression Language in the reference manual. Functions like volumeInt(), volumeAve(), massAvg() will be of interest.
Thanks. I've readup CEL and managed to use VolumeAVE(concentration)@Default Domain effectively in POSTprocessor.

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
kingjewel1 is offline   Reply With Quote

Old   November 13, 2009, 04:37
Default
  #6
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks is offline   Reply With Quote

Old   November 13, 2009, 04:42
Default
  #7
Senior Member
 
Join Date: Jul 2009
Posts: 260
Rep Power: 17
kingjewel1 is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
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.
With monitor points don't they only output a variable at a single point instead of the volumeAve that I'm looking for as this is something I'd previously tried?
kingjewel1 is offline   Reply With Quote

Old   November 13, 2009, 04:52
Default
  #8
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
No. Monitor points can also be set to output CEL expressions, then you can use functions like volumeAve() to give averaged amounts.
ghorrocks is offline   Reply With Quote

Old   November 13, 2009, 05:33
Default
  #9
Senior Member
 
Join Date: Jul 2009
Posts: 260
Rep Power: 17
kingjewel1 is on a distinguished road
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
kingjewel1 is offline   Reply With Quote

Old   November 13, 2009, 17:01
Default
  #10
Senior Member
 
Join Date: Jul 2009
Posts: 260
Rep Power: 17
kingjewel1 is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
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 volumeAve(Tracer)@Default Domain within Pre and ran the transient simulation, saving every other timestep.
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 is offline   Reply With Quote

Old   November 13, 2009, 17:24
Default
  #11
Senior Member
 
Join Date: Jun 2009
Location: Technische Universität Chemnitz
Posts: 107
Rep Power: 16
NickFL is on a distinguished road
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.
NickFL is offline   Reply With Quote

Old   November 14, 2009, 08:06
Default
  #12
Senior Member
 
Join Date: Jul 2009
Posts: 260
Rep Power: 17
kingjewel1 is on a distinguished road
Quote:
Originally Posted by NickFL View Post
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.
Thanks! The only problem I have is that Pre won't recognise the function volumeAve(Tracer)@Default Domain to apply it to a Monitor point despite being able to plot it in Post. Ie it accepts it in Pre without any complaints but it doesn't then come up in the Variables/Expressions list under Monitor points. Is this normal?
kingjewel1 is offline   Reply With Quote

Old   November 14, 2009, 13:07
Default
  #13
Senior Member
 
Join Date: Jul 2009
Posts: 260
Rep Power: 17
kingjewel1 is on a distinguished road
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:
Originally Posted by ghorrocks
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.
ghorrocks would you explain please how to set up the session file in Post to read in the transient files sequentially to obtain the volumeAve?
kingjewel1 is offline   Reply With Quote

Old   November 15, 2009, 03:57
Default
  #14
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 16:26.