One easy question. How to calc
One easy question. How to calculate volume average of a volScalarField? I think the average() is not the function I want. Can somebody tell me? Thanks!
|
That's the problem with easy q
That's the problem with easy questions. Nobody wants to answer them because you can only embarrass yourself by saying somthing stupid.
Nevertheless: sum(mesh.V()*myField)/sum(mesh.V()) (weighted average of the cell-values) |
volScalarField a = ...;
a
volScalarField a = ...; a.weightedAverage(mesh.V()); Hrv |
so, what about surface average of a scalar field at specified boundary patch (like inlet)
how can I include that in my source code? Quote:
|
All times are GMT -4. The time now is 14:47. |