|
[Sponsors] |
July 8, 2011, 17:53 |
Ideal Gas Law Overspecification
|
#1 |
New Member
Join Date: Jun 2011
Posts: 29
Rep Power: 15 |
I was wondering, in the OpenFOAM solver buoyantPimpleFoam, you specify the pressure and temperature in the initial conditions, the volume by creating the geometry that you mesh, and the number of moles of gas in the thermophysicalProperties file. Because of this, you have specified every variable in the equation
pV=nRT. Isn't this overspecification? Why does the solver not return an error if your set conditions do not adhere to this law, and what are the effects on the solution if they don't? Thank you. |
|
July 11, 2011, 04:17 |
|
#2 |
New Member
Lorenzo A. Ricciardi
Join Date: Mar 2011
Posts: 27
Rep Power: 15 |
Hi,
I don't know what equations does buoyantPimpleFoam solve, however I bet you're not specifying V with the mesh, since V in the perfect gas laws is a specific volume (inverse of density)... setting P, T and n you can solve for local values of V (or rho, if you prefer), and no overspec occours |
|
July 11, 2011, 11:34 |
|
#3 |
New Member
Join Date: Jun 2011
Posts: 29
Rep Power: 15 |
Except that's not the case in the following formula:
pV=nRT. The volume is a specific volume in the equation p V_specific = R_specific T. However, in pV=nRT, p is absolute pressure, V is volume of the chamber (not specific), n is number of moles, R is the molar gas constant, and T is the temperature. Every value in that equation is specified in the solver. |
|
July 11, 2011, 11:58 |
|
#4 |
Senior Member
Christian Lucas
Join Date: Aug 2009
Location: Braunschweig, Germany
Posts: 202
Rep Power: 18 |
Hi,
the number of moles within the control volume (grid) is NOT specified. The number of moles you specify in the thermophysical properties is used for mixtures only. The perfect gas law is used to get the density. Hope this helps Regards, Christian |
|
July 11, 2011, 12:35 |
|
#5 |
New Member
Join Date: Jun 2011
Posts: 29
Rep Power: 15 |
I'm sorry, but what do you mean by 'used for mixtures only'? What exactly is that number of moles specifying?
|
|
July 12, 2011, 05:04 |
|
#6 |
New Member
Lorenzo A. Ricciardi
Join Date: Mar 2011
Posts: 27
Rep Power: 15 |
Cyberholmes,
I always work with specific or intensive dimensions, so n for me is moles/kg, and thus volume becomes a specific volume also... You're also right, it just depends how you're used to work... |
|
July 12, 2011, 11:46 |
|
#7 |
New Member
Join Date: Jun 2011
Posts: 29
Rep Power: 15 |
The question though is how is OpenFOAM working?
|
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
mass flow in is not equal to mass flow out | saii | CFX | 12 | March 19, 2018 06:21 |
Using ideal gas law and sutherland law in Fluent | RyGuy | FLUENT | 4 | June 28, 2012 03:07 |
Constant velocity of the material | Sas | CFX | 15 | July 13, 2010 09:56 |
Help!! calculate gas density by ideal gas law | Mahe | Phoenics | 1 | January 26, 2010 04:57 |
Two-Phase Buoyant Flow Issue | Miguel Baritto | CFX | 4 | August 31, 2006 13:02 |