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

Calculating averages using cellZoneSet

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 4, 2020, 12:57
Default Calculating averages using cellZoneSet
  #1
Member
 
Ben Simpson
Join Date: Dec 2019
Location: UK
Posts: 32
Rep Power: 6
b.simpson is on a distinguished road
Hi CFD Experts,

I am quite new to OpenFOAM. I am trying to run a simple natural ventilation simulation of a simple box model building. I am running buoyantBoussinesqSimpleFoam on OpenFOAM V1812.

I am wanting to calculate average values of certain fields for specific areas of the model. For example, I am simulating CO2 and I want to get an averaged CO2 concentration within a pre-defined area inside my building and I also want to calculate the total CO2 concentration entering and leaving my building through the two window openings.

I am not sure how this is suppose to be accomplished in OpenFOAM. My current attempt involves using topoSet to generate cellZoneSets which I then want to use the fieldAverage on from the controlDict.

I have two main questions regarding this task:

1. Is this approach, that I am trying to get working, the correct/best method for calculating these sorts of averages?

2. I am currently getting a fatal error when I run buoyantBoussinesqSimpleFoam saying that Entry 'Type' not found in dictionary "IOstream.zone1". Providing that the answer to question 1 is that this is the best method, what 'Type' should I use in the constant/fvOptions file?

I have looked through the available 'Type' choices but I am unsure which one, if any, are correct for this situation.

For information I have attached screen shots of my error message, controlDict, topoSetDict and fvOptions.

Any support on this issue would be much appreciated.

Regards,
Ben
Attached Images
File Type: png controlDict.PNG (11.7 KB, 10 views)
File Type: png error.PNG (11.5 KB, 7 views)
File Type: png fvOptions.PNG (14.1 KB, 7 views)
File Type: png topoSetDict.PNG (17.5 KB, 6 views)
b.simpson is offline   Reply With Quote

Reply

Tags
average field, buoyantboussinesqsimple, openfoam


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
Calculating averages within OpenFOAM b.simpson OpenFOAM Running, Solving & CFD 0 January 17, 2020 13:42
Questions on dynamicTopoFvMesh danvica OpenFOAM Running, Solving & CFD 80 April 16, 2019 16:58
Long output in terminal. ssa_cfd OpenFOAM Running, Solving & CFD 1 March 18, 2019 05:25
[swak4Foam] Calculating a sequence of zone averages with swak4Foam K62 OpenFOAM Community Contributions 0 November 6, 2015 05:49
How to update polyPatchbs localPoints liu OpenFOAM Running, Solving & CFD 6 December 30, 2005 17:27


All times are GMT -4. The time now is 14:36.