CFD Online Logo CFD Online URL
Home > Forums > CFX

Monitoring the variance

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

LinkBack Thread Tools Display Modes
Old   September 10, 2014, 03:27
Default Monitoring the variance
New Member
Hilde Larsson
Join Date: May 2014
Location: Copenhagen, Denmark
Posts: 16
Rep Power: 3
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


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, 06:06
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 11,290
Rep Power: 88
ghorrocks is a jewel in the roughghorrocks is a jewel in the roughghorrocks is a jewel in the rough
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


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
Monitoring Static Pressure on Rotor newbie384 CFX 0 March 30, 2013 18:20
Algebraic Model for Variance - grid size surface field OpenFOAM 0 June 28, 2012 05: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 09:26
monitoring cell Jane CD-adapco 2 March 4, 2004 22:01

All times are GMT -4. The time now is 18:52.