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

volume weighted average

Register Blogs Members List Search Today's Posts Mark Forums Read

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

Old   July 15, 2010, 03:47
Default
  #3
Member
 
Join Date: Mar 2010
Posts: 42
Rep Power: 7
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

Thread Tools
Display Modes

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 On
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 FOAM warning gaottino OpenFOAM Native Meshers: blockMesh 7 July 19, 2010 14: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
Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Native Meshers: blockMesh 10 April 2, 2007 14:00


All times are GMT -4. The time now is 15:21.