|
[Sponsors] |
July 15, 2010, 04:22 |
volume weighted average
|
#1 |
Member
Join Date: Mar 2010
Posts: 42
Rep Power: 16 |
Hi all,
Is there a way to get the values of volume weighted average directly in paraView? Like in the calculator filter or something. If it's not possible is there a way to implement in the solver to show a variable weighted by volume? Thanks |
|
July 15, 2010, 04:41 |
|
#2 |
Senior Member
Stefan Herbert
Join Date: Dec 2009
Location: Darmstadt, Germany
Posts: 129
Rep Power: 17 |
Hi Guilherme,
I don't know if it's possible in paraview, but inside the solver it can easy be done by by adding the following lines to the code (e.g. for a volField named A): Code:
dimensionedScalar averagedValue = A.weightedAverage(mesh.V()); Info << "Average of A: " << averagedValue.value() << endl; Stefan |
|
July 15, 2010, 04:47 |
|
#3 |
Member
Join Date: Mar 2010
Posts: 42
Rep Power: 16 |
Thanks Stephan!
I will try to implement it now. I will post if the results are bad or good. Thanks again, Guilherme |
|
Tags |
volume weighted average |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Weighted average volume fraction | Yasser | FLUENT | 5 | April 11, 2015 09:25 |
[blockMesh] BlockMesh FOAM warning | gaottino | OpenFOAM Meshing & Mesh Conversion | 7 | July 19, 2010 15:11 |
On the damBreak4phaseFine cases | paean | OpenFOAM Running, Solving & CFD | 0 | November 14, 2008 22:14 |
fluent add additional zones for the mesh file | SSL | FLUENT | 2 | January 26, 2008 12:55 |
[blockMesh] Axisymmetrical mesh | Rasmus Gjesing (Gjesing) | OpenFOAM Meshing & Mesh Conversion | 10 | April 2, 2007 15:00 |