|
[Sponsors] |
February 23, 2012, 12:21 |
Average values on Boundary Conditions
|
#1 |
New Member
Join Date: Feb 2012
Posts: 5
Rep Power: 14 |
Hi everyone,
I am quite new to OpenFoam world and I need some help. I would like to calculate average values of velocity and pressure on my boundary patches. Any idea how can I do it? Any help will be appreciated |
|
February 23, 2012, 13:00 |
|
#2 |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34 |
Hi,
You could use the patchAverage and/or the patchIntegrate post processing OpenFOAM utilities. For example, to calculate the average pressure on a patch called myInlet: Code:
patchAverage p myInlet |
|
February 23, 2012, 13:09 |
|
#3 |
New Member
Join Date: Feb 2012
Posts: 5
Rep Power: 14 |
Hello Philip,
Thank your for your answer. I just tied patchAverage p inlet for my case works fine. But for the velocity values if type patchAverage U inlet, I get the error : Only possible to average volScalarFields Is there any way to over come that error? |
|
February 23, 2012, 13:16 |
|
#4 |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34 |
helloworld11,
patchIntegrate and patchAverage only operate on volScalarFields, so if you decompose your velocity field into its components first using foamCalc, i.e. Code:
foamCalc components U Code:
patchAverage Ux myInlet Code:
foamCalc mag U Philip |
|
February 23, 2012, 13:24 |
|
#5 |
New Member
Join Date: Feb 2012
Posts: 5
Rep Power: 14 |
Philip,
I followed the instructions you gave and now I am able to get values. Thank you very much. |
|
November 19, 2019, 01:12 |
|
#6 |
Member
Vishnu
Join Date: May 2019
Location: Tamilnadu, India
Posts: 55
Rep Power: 7 |
Hi all,
Again i am initiating this old thread to find the average field values of two or three patches .. Any command to measure the field average values of totally three patches ?? like three patches namely - inlet1,inlet2,inlet3 .. I need average value for three patches .. Thanks in advance, Vishsel |
|
March 22, 2023, 12:13 |
how do you setup myInlet in 0/U or 0/p?
|
#7 | |
New Member
Ludo Masci
Join Date: Oct 2018
Posts: 8
Rep Power: 8 |
Quote:
Hi, how do you setup myInlet in 0/U or 0/p? In my case, I want to create an 'artificial' patch in order to get a mapping of the velocity for this specific area. Usually, I use paraview/cross section to achieve that, but in this case, the geometry is much more complex. Therefore, I want the value of the velocity in this patch. |
||
Tags |
average field, average presure, average velocity |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
mesh file for flow over a circular cylinder | Ardalan | Main CFD Forum | 7 | December 15, 2020 14:06 |
Domain Imbalance | HMR | CFX | 5 | October 10, 2016 06:57 |
Creating Face in CFD Post and export Values as Boundary Conditions | flow87 | CFX | 2 | June 4, 2011 05:06 |
OpenFOAM Variable Velocity Boundary Conditions | NickolasPl | OpenFOAM Programming & Development | 2 | May 19, 2011 06:37 |
Convective Heat Transfer - Heat Exchanger | Mark | CFX | 6 | November 15, 2004 16:55 |