|
[Sponsors] |
trying to understand the boundary condition "pressureGradientExplicitSource" code |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 2, 2015, 01:17 |
trying to understand the boundary condition "pressureGradientExplicitSource" code
|
#1 |
Senior Member
Huynh Phong Thanh
Join Date: Aug 2013
Location: Ho Chi Minh City
Posts: 105
Rep Power: 12 |
Greeting all,
I am using OF2.2.2 on Ubuntu 14.04. I saw the the "pressureGradientExplicitSource.C" has the inverse matrix: Code:
const scalarField& rAU = invAPtr_().internalField(); Code:
//- Matrix 1/A coefficients field pointer autoPtr<volScalarField> invAPtr_; Anybody can help me to understood this missed? Thank you, Thanh |
|
November 3, 2015, 11:40 |
|
#2 |
Senior Member
Huynh Phong Thanh
Join Date: Aug 2013
Location: Ho Chi Minh City
Posts: 105
Rep Power: 12 |
Hi all again,
I see in the channelFoam OF 2.1.1 (http://www.cfd-online.com/Forums/ope...tml#post485952) to calculate the pressure gradient use rAU or rUA Code:
dimensionedScalar gragPplus = (magUbar - magUbarStar)/rUA.weightedAverage(mesh.V()); Code:
dGradP_ = (mag(Ubar_) - magUbarAve)/rAUave; Thank you so much, Thanh. |
|
November 8, 2015, 10:09 |
|
#3 |
Senior Member
Huynh Phong Thanh
Join Date: Aug 2013
Location: Ho Chi Minh City
Posts: 105
Rep Power: 12 |
Dear all,
Some bodies can give me a document mention of gradient pressure in periodic condition? Thank you so much, Thanh |
|
November 8, 2015, 10:46 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Quick answer: This fvOption was renamed to "meanVelocityForce" some weeks ago in OpenFOAM-dev and it's now part of OpenFOAM 3.0.
The commit in question was this: https://github.com/OpenFOAM/OpenFOAM...898bec5fac74ad As for why this calculation gives you the pressure gradient, you will have to take a look at the pressure equation in the solvers, because those use "rAU" for those equations. For example, take a look at this wiki page: https://openfoamwiki.net/index.php/IcoFoam |
|
November 8, 2015, 11:15 |
|
#5 |
Senior Member
Huynh Phong Thanh
Join Date: Aug 2013
Location: Ho Chi Minh City
Posts: 105
Rep Power: 12 |
Dear Bruno,
Thank you so much your answer for me. I would like build "meanVelocityForce" to check it but I see the "patchMeanVelocityForce". What is it and how to correctly build "meanVelocityForce". Best regards, Thanh |
|
November 8, 2015, 11:26 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Quick answers:
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
sliding mesh problem in CFX | Saima | CFX | 46 | September 11, 2021 07:38 |
Wind turbine simulation | Saturn | CFX | 58 | July 3, 2020 01:13 |
mixed inflow/outflow downstream boundary condition question | peob | OpenFOAM Running, Solving & CFD | 3 | February 3, 2017 10:54 |
Slip boundary condition what is inside | normunds | OpenFOAM Running, Solving & CFD | 2 | June 4, 2007 06:45 |
The Boundary Condition about the Flat Plate | boing | Main CFD Forum | 1 | January 6, 2002 16:53 |