WeightedAverage for a specific cellZone region

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

 September 20, 2007, 03:41 Hello, I would like to calc #1 Member   Guido Adriaensen Join Date: Mar 2009 Posts: 56 Rep Power: 10 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

 February 22, 2009, 05:04 Hi,everyone I have a simila #2 New Member   Jiang Lijun Join Date: Mar 2009 Location: Beijing, China Posts: 1 Rep Power: 0 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.

 August 18, 2009, 08:59 #3 Member   Marco Müller Join Date: Mar 2009 Location: Germany Posts: 94 Rep Power: 10 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

 August 19, 2009, 09:48 calcMassFlow #4 Member   Michael Roth Join Date: Mar 2009 Location: Guelph, Ontario, Canada Posts: 49 Rep Power: 10 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

 August 19, 2009, 13:23 #5 Senior Member   Henrik Rusche Join Date: Mar 2009 Location: Braunschweig, Niedersachsen, Germany Posts: 277 Rep Power: 11 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

 August 21, 2009, 04:05 #6 Member   Marco Müller Join Date: Mar 2009 Location: Germany Posts: 94 Rep Power: 10 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

August 21, 2009, 09:19
#7
Member

Michael Roth
Join Date: Mar 2009
Posts: 49
Rep Power: 10
Quote:
 Originally Posted by marico 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

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Duan J Q Siemens 2 November 20, 2007 07:59 Le FLUENT 4 February 14, 2007 15:09 Jeff CFX 1 March 15, 2005 14:03 Harmeet CFX 1 October 17, 2004 18:44 Andrea CFX 1 May 30, 2004 01:55

All times are GMT -4. The time now is 02:17.