|
[Sponsors] |
Where to find what is the value of Universal gas constant used in the OpenFoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 8, 2019, 13:16 |
Where to find what is the value of Universal gas constant used in the OpenFoam
|
#1 |
Senior Member
Ashwani
Join Date: Sep 2013
Location: Hyderabad
Posts: 154
Rep Power: 12 |
Hi all,
In the file thermodynamicConstants.C the definition of universal gas constant is defined as Code:
// Note: the 1e3 converts from /mol to /kmol for consistency with the // SI choice of kg rather than g for mass. // This is not appropriate for USCS and will be changed to an entry in // the DimensionedConstants dictionary in etc/controlDict const scalar RR = 1e3*physicoChemical::R.value(); What I understand is the universal gas constant is denoted by R.value(). Where is this defined I am unable to locate. I am trying to ascertain what is the gas constant value used by the perfect gas model. I want to use the gas constant value as 1. |
|
October 9, 2019, 00:30 |
|
#3 |
Senior Member
Ashwani
Join Date: Sep 2013
Location: Hyderabad
Posts: 154
Rep Power: 12 |
Thank you. I found the answer in the file you directed.
Universal gas constant = Avogadro No. * Boltzmann constant = NA * k NA is defined in fundamentalConstants.C and k is defined dynamically in OpenFOAM/OpenFOAM-v1906/etc/controlDict |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Suggestion for a new sub-forum at OpenFOAM's Forum | wyldckat | Site Help, Feedback & Discussions | 20 | October 28, 2014 09:04 |
error message | cuteapathy | CFX | 14 | March 20, 2012 06:45 |
New OpenFOAM Forum Structure | jola | OpenFOAM | 2 | October 19, 2011 06:55 |
CGNS lib and Fortran compiler | manaliac | Main CFD Forum | 2 | November 29, 2010 06:25 |
Gas pressure question | Dan Moskal | Main CFD Forum | 0 | October 24, 2002 22:02 |