# Calculating a sequence of zone averages with swak4Foam

 User Name Remember Me Password
 Register Blogs Members List Search Today's Posts Mark Forums Read

 LinkBack Thread Tools Display Modes
 November 6, 2015, 06:49 Calculating a sequence of zone averages with swak4Foam #1 New Member   Martin Schmelzer Join Date: Aug 2012 Location: TU Delft Posts: 4 Rep Power: 5 Dear forum, I do simulations on a straight pipe and would like to extract pressure averaged over the radial plane at specific locations. Of course for the inlet and outlet patches one could use Code: `patchAverage -latestTime p ` and for single planes within the domain swak4Foam is a suitable option. For that I am using this functionObject definition in controlDict Code: ```p0 { type swakExpression; valueType surface; surfaceName p0; surface { type plane; basePoint (0 0 0.001); normalVector (1 0 0); interpolate false; } verbose true; accumulations ( weightedAverage ); outputControlMode timeStep; outputInterval 1; expression "p"; }``` This gives me for a single basePoint, i.e. a single plane, the pressure averaged over the area of the plane. Using Code: `execFlowFunctionObjects -latestTime` writes a nice output file in the postProcessing dir, such as: Code: ```# Time weightedAverage 35000 1.86158477779654``` However, I'd like to know if swak4Foam also offers the possibility to extract averages for multiple basePoints, i.e. multiple planes, and writes the result into a single file. Of course I am aware of the option to define multiple functionObjects. But, this gives also multiple output files. I am doing this so far and extracting the data using another python script. However, I'd like to know if swak4Foam offers a cleaner solution to my problem. Any suggestions are more than welcome! Thank you very much! Martin

 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 cfdonline2mohsen OpenFOAM 3 October 21, 2013 09:28 Attesz OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 12 May 2, 2013 10:52 Aadhavan OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 1 December 12, 2012 11:38 Tarak OpenFOAM 6 September 9, 2011 17:51 csvirume FLUENT 2 September 9, 2009 01:08

All times are GMT -4. The time now is 06:41.

 Contact Us - CFD Online - Top