what does this swak function of average on average mean?
I've found this function in an thesis.is it correct?
because it has defined an average of total pressure on the patch at each time step and in accumulations it uses average again.what does average do in this case?is it a correct method to get average on a patch? Code:
Total-pressuresec9outlet |
Hi Ehsan,
Mmm... after thinking a bit about this, I think I can explain what happened:
Bruno |
:D I think its because the flow has been compressible.correct?
this way the average will be more accurate(because of variation of density I think),is it true? if the mesh is uniform then I think there is no need to sum on area manually,am i correct?! |
Quote:
Although I was thinking more along the lines of "mass weighted average" - an even better description on this topic can be found on this thread: http://www.cfd-online.com/Forums/mai...d-average.html - specially on post #20! Quote:
It's better to use the area no matter what, to avoid any unpleasant surprises, in case you change the mesh and forget to update this calculation. |
ok.but I think its more satisfying to have min and max as well as true average of a variable field on a plane.
how can I change the function below to have min,max an true average(if I change mesh that I'm going to!)in a single function(so that no more complexity be added to poor controlDict!:D) is it possible in your opinion?:) Code:
sP_h2_velocity |
I got error because of different multiplication signs in this quoted expression:
Quote:
Code:
expression ”sum((0.5*rho*pow(mag(U),2)+p)*(area()*rho))/(sum(area()*rho))” |
All times are GMT -4. The time now is 04:25. |