CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   Averaging during a steady state simulation (https://www.cfd-online.com/Forums/cfx/120582-averaging-during-steady-state-simulation.html)

say July 10, 2013 05:56

Averaging during a steady state simulation
 
HI,
my question is:

Is it possible to average a variable during a steady state simulation like in a transient calculation? I defined a variable "pressure recovery" and its value is swinging each Iteration. And I need a Expression or something like that, that can average the variable automatically. so i can monitor the value of it during the steady state simulation.
Can someone help me plz. I hope u understand my problem.
thanks

monkey1 July 10, 2013 07:23

hmm...I would try writing an expression by myself and assigning its value to a variable.
But I don't know if it works in CFX as it would in a regular programming language.
I would try this:
expression ownaverage
sum_pressure_recovery=sum_pressure_recovery+pressu re_recovery
ownave=sum_pressure_recovery/number of iterations

and then create an own variable pressure_recovery_ave wich would be linked to the expression ownaverage

Just a guess...maybe it works;)...Or others may have an easier solution

say July 10, 2013 08:38

thanks. i'm going to test it and give a response ;)

Mazze[ITA] November 3, 2015 09:18

Dear say, did your solution work?


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