Monitoring the variance

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

 September 10, 2014, 03:27 Monitoring the variance #1 New Member   Hilde Larsson Join Date: May 2014 Location: Copenhagen, Denmark Posts: 16 Rep Power: 3 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!

 September 10, 2014, 06:06 #2 Super Moderator   Glenn Horrocks Join Date: Mar 2009 Location: Sydney, Australia Posts: 11,290 Rep Power: 88 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 Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post newbie384 CFX 0 March 30, 2013 18:20 alessio.nz OpenFOAM 0 June 28, 2012 05:03 Subhadeep STAR-CCM+ 8 February 18, 2010 18:19 chinthakindi Main CFD Forum 0 April 27, 2004 09:26 Jane CD-adapco 2 March 4, 2004 22:01

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