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

CFX average concentration possible?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   November 11, 2009, 08:02
Default CFX average concentration possible?
  #1
Senior Member
 
Join Date: Jul 2009
Posts: 211
Rep Power: 9
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, 22:06
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 10,931
Rep Power: 85
ghorrocks has a spectacular aura aboutghorrocks has a spectacular aura aboutghorrocks has a spectacular aura about
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, 04:53
Default
  #3
Senior Member
 
Join Date: Jul 2009
Posts: 211
Rep Power: 9
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, 07:17
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 10,931
Rep Power: 85
ghorrocks has a spectacular aura aboutghorrocks has a spectacular aura aboutghorrocks has a spectacular aura about
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, 19:47
Default
  #5
Senior Member
 
Join Date: Jul 2009
Posts: 211
Rep Power: 9
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, 05:37
Default
  #6
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 10,931
Rep Power: 85
ghorrocks has a spectacular aura aboutghorrocks has a spectacular aura aboutghorrocks has a spectacular aura about
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, 05:42
Default
  #7
Senior Member
 
Join Date: Jul 2009
Posts: 211
Rep Power: 9
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, 05:52
Default
  #8
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 10,931
Rep Power: 85
ghorrocks has a spectacular aura aboutghorrocks has a spectacular aura aboutghorrocks has a spectacular aura about
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, 06:33
Default
  #9
Senior Member
 
Join Date: Jul 2009
Posts: 211
Rep Power: 9
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, 18:01
Default
  #10
Senior Member
 
Join Date: Jul 2009
Posts: 211
Rep Power: 9
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, 18:24
Default
  #11
New Member
 
Join Date: Jun 2009
Posts: 17
Rep Power: 8
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, 09:06
Default
  #12
Senior Member
 
Join Date: Jul 2009
Posts: 211
Rep Power: 9
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, 14:07
Default
  #13
Senior Member
 
Join Date: Jul 2009
Posts: 211
Rep Power: 9
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, 04:57
Default
  #14
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 10,931
Rep Power: 85
ghorrocks has a spectacular aura aboutghorrocks has a spectacular aura aboutghorrocks has a spectacular aura about
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

Thread Tools
Display Modes

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 On
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 10:02
CFX 4.4 installation problem Pandu Sattvika CFX 1 December 1, 2001 05:07


All times are GMT -4. The time now is 17:39.