CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM

Ideal Gas Law Overspecification

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   July 8, 2011, 16:53
Default Ideal Gas Law Overspecification
  #1
New Member
 
Join Date: Jun 2011
Posts: 29
Rep Power: 6
Cyberholmes is on a distinguished road
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.
Cyberholmes is offline   Reply With Quote

Old   July 11, 2011, 03:17
Default
  #2
New Member
 
Lorenzo A. Ricciardi
Join Date: Mar 2011
Posts: 27
Rep Power: 6
lichmaster is on a distinguished road
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
lichmaster is offline   Reply With Quote

Old   July 11, 2011, 10:34
Default
  #3
New Member
 
Join Date: Jun 2011
Posts: 29
Rep Power: 6
Cyberholmes is on a distinguished road
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.
Cyberholmes is offline   Reply With Quote

Old   July 11, 2011, 10:58
Thumbs down
  #4
Senior Member
 
Christian Lucas
Join Date: Aug 2009
Location: Braunschweig, Germany
Posts: 198
Rep Power: 7
Chris Lucas is on a distinguished road
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
Chris Lucas is offline   Reply With Quote

Old   July 11, 2011, 11:35
Default
  #5
New Member
 
Join Date: Jun 2011
Posts: 29
Rep Power: 6
Cyberholmes is on a distinguished road
I'm sorry, but what do you mean by 'used for mixtures only'? What exactly is that number of moles specifying?
Cyberholmes is offline   Reply With Quote

Old   July 12, 2011, 04:04
Default
  #6
New Member
 
Lorenzo A. Ricciardi
Join Date: Mar 2011
Posts: 27
Rep Power: 6
lichmaster is on a distinguished road
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...
lichmaster is offline   Reply With Quote

Old   July 12, 2011, 10:46
Default
  #7
New Member
 
Join Date: Jun 2011
Posts: 29
Rep Power: 6
Cyberholmes is on a distinguished road
The question though is how is OpenFOAM working?
Cyberholmes is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using ideal gas law and sutherland law in Fluent RyGuy FLUENT 4 June 28, 2012 02:07
Constant velocity of the material Sas CFX 15 July 13, 2010 08:56
Help!! calculate gas density by ideal gas law Mahe Phoenics 1 January 26, 2010 04:57
mass flow in is not equal to mass flow out saii CFX 2 September 18, 2009 08:07
Two-Phase Buoyant Flow Issue Miguel Baritto CFX 4 August 31, 2006 12:02


All times are GMT -4. The time now is 18:42.