Usage of PengRobinsonGas
Dear Foamers,
I wanted to simulate some different configurations of gas seals (plane, laby, etc. ) for a colleague of mine. The application is for a extreme reduced scale heat pump compressor unit. Hence, we need a real gas implementation of r134a. We want to simulate the problem in OpenFOAM(1.6 bzw. 2.40) using first of all the rhoSimpleFoam-solver. For the real gas effect I decided to use the Peng-Robinson equation of state for density. For enthalpy (Cp) and transport coefficients I'm using polynomial. Here the entries of my thermophysicalProperties-dict: Code:
thermoType --> FOAM FATAL IO ERROR: keyword equationOfState is undefined in dictionary "/home/lamduser/OpenFOAM/lamduser-2.4.0/run/tutorials/compressible/rhoSimpleFoam/planeSeal/constant/thermophysicalProperties.mixture" file: /home/lamduser/OpenFOAM/lamduser-2.4.0/run/tutorials/compressible/rhoSimpleFoam/planeSeal/constant/thermophysicalProperties.mixture from line 33 to line 45. From function dictionary::subDict(const word& keyword) const in file db/dictionary/dictionary.C at line 648. FOAM exiting I guess I have to define some more coefficients for Peng Robinson, but I dont know what to do (I was already trying to understand the source code for that model but I dont get it). Would be nice if somebody of you could help me to set up this case. Regards, Markus |
Have a look at the file /src/thermophysicalModels/specie/equationOfState/PengRobinsonGas/PengRobinsonGas.C.
You need to define an equationOfState sub-dictionary within the mixture dictionary with constants appropriate for your gas. Something like: Code:
equationOfState |
Quote:
According to the critical parameters that we should determine for the PengRobinsonGas EOS, do you know what is the unit of Vc? Is it [m3/kmol] or [m3/kg] or anything else? |
|
All times are GMT -4. The time now is 22:59. |