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

WeightedAverage for a specific cellZone region

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 20, 2007, 04:41
Default Hello, I would like to calc
  #1
Member
 
Guido Adriaensen
Join Date: Mar 2009
Posts: 56
Rep Power: 17
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, 09:59
Default
  #3
Member
 
Marco Müller
Join Date: Mar 2009
Location: Germany
Posts: 94
Rep Power: 17
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, 10:48
Default calcMassFlow
  #4
Member
 
Michael Roth
Join Date: Mar 2009
Location: Guelph, Ontario, Canada
Posts: 50
Rep Power: 17
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, 14:23
Default
  #5
Senior Member
 
Henrik Rusche
Join Date: Mar 2009
Location: Wernigerode, Sachsen-Anhalt, Germany
Posts: 281
Rep Power: 18
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, 05:05
Default
  #6
Member
 
Marco Müller
Join Date: Mar 2009
Location: Germany
Posts: 94
Rep Power: 17
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, 10:19
Default
  #7
Member
 
Michael Roth
Join Date: Mar 2009
Location: Guelph, Ontario, Canada
Posts: 50
Rep Power: 17
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


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
specific heat and mean specific heat Duan J Q Siemens 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 19:44
Specific heat Andrea CFX 1 May 30, 2004 02:55


All times are GMT -4. The time now is 13:30.