|
[Sponsors] |
Qeustion Regarding dimensions of UEqn.H of pisoFoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 12, 2020, 11:36 |
Qeustion Regarding dimensions of UEqn.H of pisoFoam
|
#1 |
Member
Sereff
Join Date: Jan 2019
Posts: 49
Rep Power: 7 |
Hi Foamers,
This might be a stupid question, but please bear with me. I am trying to understand pisoFoam source code in mathematical equations, and it is quite confusing. In UEqn.H the matrix of momentum equation for prediction stage is given by, the follwing code, and has a dimention of [m^4/s^2], Code:
fvVectorMatrix UEqn ( fvm::ddt(U) + fvm::div(phi, U) + MRF.DDt(U) + turbulence->divDevReff(U) == fvOptions(U) ); Code:
solve(UEqn == -fvc::grad(p)); kind regards, |
|
April 12, 2020, 19:15 |
|
#2 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33 |
Easy. p means P/rho, where P Is in Pascal and rho in kg/m^3
__________________
Hrvoje Jasak Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk |
|
April 12, 2020, 20:40 |
|
#3 |
Member
Sereff
Join Date: Jan 2019
Posts: 49
Rep Power: 7 |
Sir thank you for you reply,
Yes, I understant that "p" in pisoFoam is dynamic pressure which means Pascal over density, which is why p has dimension of [m^2/s^2] and fvc::grad(p) has dimension of [m/s^2]. What confuses me is that in the following line, Code:
solve(UEqn == -fvc::grad(p)); kind regards, |
|
April 13, 2020, 05:23 |
|
#4 | |
Senior Member
Troy Snyder
Join Date: Jul 2009
Location: Akron, OH
Posts: 220
Rep Power: 19 |
Quote:
It is unclear how you came to the conclusion that the lhs, i.e. the UEqn has units of [m^4/s^2]. It has units of [m/s^2] consistent with the pressure term to which it is equated. This units are most obvious in looking at the transient term... fvm::ddt(U). This is the first temporal derivative of the velocity field w.r.t time and has units 1/s * (m/s) = m/s^2. |
||
April 13, 2020, 09:00 |
|
#5 |
Member
Sereff
Join Date: Jan 2019
Posts: 49
Rep Power: 7 |
Hi tas38
thank you for you reply. I agree with you that UEqn is supposed to have dimension of [m/s^2]. However, I came to this conclusion because I included the following line after UEqn is constructed. Code:
Info << "dimension of UEqn is: " << UEqn.dimensions() << endl; Code:
dimension of UEqn is: [0 4 -2 0 0 0 0] kind regards, |
|
April 13, 2020, 10:10 |
|
#6 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33 |
Yes - at the point of solution, the equation is multiplied by the volume - as will be the case with the rhs. This is "integrated over the control volume"
Hrv
__________________
Hrvoje Jasak Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Differences in solution method for pisoFoam and buoyantBoussinesqPisoFoam | mchurchf | OpenFOAM | 7 | August 6, 2023 10:12 |
pisoFoam and pimpleFoam are unstable in foam-extend 4.0/4.1 (misunderstanding ?) | Kombinator | OpenFOAM Running, Solving & CFD | 4 | January 14, 2021 05:10 |
pisoFoam, fully developed pipe flow using cyclic BC's | thijs1909 | OpenFOAM Running, Solving & CFD | 17 | February 21, 2018 23:07 |
Incompatible dimensions for operation | ruben23 | OpenFOAM Running, Solving & CFD | 2 | June 12, 2015 05:14 |
pisoFoam compiling error with OF 1.7.1 on MAC OSX | Greg Givogue | OpenFOAM Programming & Development | 3 | March 4, 2011 18:18 |