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

Monitoring the variance

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 10, 2014, 04:27
Default Monitoring the variance
  #1
New Member
 
Hilde
Join Date: May 2014
Location: Copenhagen, Denmark
Posts: 18
Rep Power: 11
hilde is on a distinguished road
Dear all,
I am simulating a mixing experiment where an additional variable (called A, dimensionless) is spreading in a reactor.

It would be very useful to be able to monitor the variance of A in the domain over time, do anyone know how this could be done?

I have found what I really think is the average, ave(A)@rotor, but every more or less creative attempt to modify this such as

ave((A)-ave(A)@rotor)@rotor

fails with the error message

The function 'ave' referenced in parameter 'Expression Value' in object '/FLOW:Flow Analysis 1/OUTPUT CONTROL/MONITOR OBJECTS/MONITOR POINT:Monitor Point 1' has an invalid argument, '(A)-ave(A)@rotor'. Only arguments that consist of a single recognised variable name are supported by the solver.

Has anyone any idea how this could be done? I am interested in the current variance/stv in the system and any way of monitoring this online during the simulation. (I know already how this can be done in post if saving up transient results of the distribution of A)

Thanks in advance and all input are most welcome!
hilde is offline   Reply With Quote

Old   September 10, 2014, 07:06
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,665
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
First of all, the ave function simply does an arithmetic average over every node. There is no weighting for element size, density or anything else. You will probably find areaAve() is a more useful averaging function, or maybe massflowAve() if your flow is variable density.

Does your function work if you split it into two functions?
ave = areaAve(A)@rotor
var = areaAve(A-ave)@rotor

Make sure you enter the ave function first. CEL sometimes gets confused where one function depends on another, it tries to evaluate the second function first and complains about an undefined variable.
ghorrocks is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Monitoring Static Pressure on Rotor newbie384 CFX 0 March 30, 2013 18:20
Algebraic Model for Variance - grid size surface field alessio.nz OpenFOAM 0 June 28, 2012 06:03
mean, variance and covariance statistics of any field function on any part. Subhadeep STAR-CCM+ 8 February 18, 2010 18:19
transport equation for SGS scalar variance chinthakindi Main CFD Forum 0 April 27, 2004 10:26
monitoring cell Jane Siemens 2 March 4, 2004 22:01


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