|September 10, 2014, 03:27||
Monitoring the variance
Join Date: May 2014
Location: Copenhagen, Denmark
Posts: 18Rep Power: 4
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!
|September 10, 2014, 06:06||
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 13,293Rep Power: 103
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.
|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 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|