CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Calculating averages within OpenFOAM

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 17, 2020, 13:42
Default Calculating averages within OpenFOAM
  #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, 20 views)
File Type: png error.PNG (11.5 KB, 13 views)
File Type: png fvOptions.PNG (14.1 KB, 16 views)
File Type: png topoSetDict.PNG (17.5 KB, 12 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
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 11:58
OpenFOAM Training Jan-Jul 2017, Virtual, London, Houston, Berlin CFDFoundation OpenFOAM Announcements from Other Sources 0 January 4, 2017 06:15
OpenFOAM v3.0.1 Training, London, Houston, Berlin, Jan-Mar 2016 cfd.direct OpenFOAM Announcements from Other Sources 0 January 5, 2016 03:18
OpenFOAM Foundation releases OpenFOAM 2.2.2 opencfd OpenFOAM Announcements from ESI-OpenCFD 0 October 14, 2013 07:18
[swak4Foam] Difference in calculating div(U*U) swak4FOAM vs. OpenFOAM codedFunctionObject polo OpenFOAM Community Contributions 7 October 1, 2013 10:22


All times are GMT -4. The time now is 01:25.