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

WeightedAverage for a specific cellZone region

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 20, 2007, 03:41
Default Hello, I would like to calc
  #1
Member
 
Guido Adriaensen
Join Date: Mar 2009
Posts: 56
Rep Power: 8
guido_adriaensen is on a distinguished road
Hello,

I would like to calculate the average of a certain parameter in a specific cellZone/region of the mesh. Using parameter.weightedAverage(mesh.V()).value() returns the average for the entire mesh, I would like to calculate it for a specified region or cellZone. I think it should be quite easy, but I don't get it to work...

thanks,
Guido
guido_adriaensen is offline   Reply With Quote

Old   February 22, 2009, 05:04
Default Hi,everyone I have a simila
  #2
New Member
 
Jiang Lijun
Join Date: Mar 2009
Location: Beijing, China
Posts: 1
Rep Power: 0
jiang_l is on a distinguished road
Hi,everyone

I have a similar problem: How to create an average over some region of space(an CV and its neighborhood)e.g. for smoothing or for numerical stability?

L.J.
jiang_l is offline   Reply With Quote

Old   August 18, 2009, 08:59
Default
  #3
Member
 
Marco Müller
Join Date: Mar 2009
Location: Germany
Posts: 94
Rep Power: 8
marico is on a distinguished road
Hello,

I've got the same problem: How can I calculate weighted average of variables p & T in a given cellSet (with or without ParaView)??? Help really needed!!

Thanks
Marco
marico is offline   Reply With Quote

Old   August 19, 2009, 09:48
Default calcMassFlow
  #4
Member
 
Michael Roth
Join Date: Mar 2009
Location: Guelph, Ontario, Canada
Posts: 46
Rep Power: 8
roth is on a distinguished road
Bernhard Gschaider wrote a handy routine that calculates mass flows through a given faceSet:

http://openfoamwiki.net/index.php/Contrib_calcMassFlow

Perhaps you could adapt the methodology to operate on cellSets?

Mike
roth is offline   Reply With Quote

Old   August 19, 2009, 13:23
Default
  #5
Senior Member
 
Henrik Rusche
Join Date: Mar 2009
Location: Braunschweig, Niedersachsen, Germany
Posts: 275
Rep Power: 9
henrik is on a distinguished road
Dear all,

@sub-averages: Mike is right and there are also a few function objects in the vanilla 1.6 which do something similar. However, all of this needs coding.

@smoothing by averaging: You can use the cellCells addressing, but this will not paralelise easily. Better solve a relaxation equation (laplacian).

Henrik
henrik is offline   Reply With Quote

Old   August 21, 2009, 04:05
Default
  #6
Member
 
Marco Müller
Join Date: Mar 2009
Location: Germany
Posts: 94
Rep Power: 8
marico is on a distinguished road
Hi,

thanks for your replys! But the mentioned things seem to write out during run. My run needs 2 weeks so I'd like to post process the already written results... Is that possible?

Marco
marico is offline   Reply With Quote

Old   August 21, 2009, 09:19
Default
  #7
Member
 
Michael Roth
Join Date: Mar 2009
Location: Guelph, Ontario, Canada
Posts: 46
Rep Power: 8
roth is on a distinguished road
Quote:
Originally Posted by marico View Post
Hi,

thanks for your replys! But the mentioned things seem to write out during run. My run needs 2 weeks so I'd like to post process the already written results... Is that possible?

Marco
calcMassFlow is a stand-alone utility that operates on your saved time directories.

Mike
roth is offline   Reply With Quote

Reply

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
specific heat and mean specific heat Duan J Q CD-adapco 2 November 20, 2007 07:59
VOF, specific zone Le FLUENT 4 February 14, 2007 15:09
Specific AV in Multiphase Jeff CFX 1 March 15, 2005 14:03
Refining Mesh at Specific Region Harmeet CFX 1 October 17, 2004 18:44
Specific heat Andrea CFX 1 May 30, 2004 01:55


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