CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

volume weighted average

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By herbert

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 15, 2010, 03:22
Default volume weighted average
  #1
Member
 
Join Date: Mar 2010
Posts: 42
Rep Power: 16
lindner is on a distinguished road
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
lindner is offline   Reply With Quote

Old   July 15, 2010, 03:41
Default
  #2
Senior Member
 
Stefan Herbert
Join Date: Dec 2009
Location: Darmstadt, Germany
Posts: 129
Rep Power: 17
herbert is on a distinguished road
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;
Regards,
Stefan
Luttappy and vivek05 like this.
herbert is offline   Reply With Quote

Old   July 15, 2010, 03:47
Default
  #3
Member
 
Join Date: Mar 2010
Posts: 42
Rep Power: 16
lindner is on a distinguished road
Thanks Stephan!
I will try to implement it now.
I will post if the results are bad or good.

Thanks again,
Guilherme
lindner is offline   Reply With Quote

Reply

Tags
volume weighted average


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 Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Weighted average volume fraction Yasser FLUENT 5 April 11, 2015 08:25
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 14:11
On the damBreak4phaseFine cases paean OpenFOAM Running, Solving & CFD 0 November 14, 2008 21:14
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 11:55
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 14:00


All times are GMT -4. The time now is 23:29.