# Ideal Gas Law Overspecification

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

 July 8, 2011, 16:53 Ideal Gas Law Overspecification #1 New Member   Join Date: Jun 2011 Posts: 29 Rep Power: 8 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, 03:17 #2 New Member   Lorenzo A. Ricciardi Join Date: Mar 2011 Posts: 27 Rep Power: 8 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, 10:34 #3 New Member   Join Date: Jun 2011 Posts: 29 Rep Power: 8 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, 10:58 #4 Senior Member   Christian Lucas Join Date: Aug 2009 Location: Braunschweig, Germany Posts: 202 Rep Power: 11 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, 11:35 #5 New Member   Join Date: Jun 2011 Posts: 29 Rep Power: 8 I'm sorry, but what do you mean by 'used for mixtures only'? What exactly is that number of moles specifying?

 July 12, 2011, 04:04 #6 New Member   Lorenzo A. Ricciardi Join Date: Mar 2011 Posts: 27 Rep Power: 8 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, 10:46 #7 New Member   Join Date: Jun 2011 Posts: 29 Rep Power: 8 The question though is how is OpenFOAM working?

 Thread Tools Display Modes Linear Mode

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

 Similar Threads Thread Thread Starter Forum Replies Last Post RyGuy FLUENT 4 June 28, 2012 02:07 Sas CFX 15 July 13, 2010 08:56 Mahe Phoenics 1 January 26, 2010 04:57 saii CFX 2 September 18, 2009 08:07 Miguel Baritto CFX 4 August 31, 2006 12:02

All times are GMT -4. The time now is 12:40.