|
[Sponsors] |
December 9, 2017, 20:53 |
heRhoThermo - "Unknown psiThermo type"
|
#1 |
New Member
gemxx
Join Date: Feb 2015
Posts: 28
Rep Power: 11 |
Hi ,
The "thermophysicalProperties" file is like below; thermoType { type heRhoThermo; mixture pureMixture; transport polynomial; thermo hPolynomial; equationOfState icoPolynomial; specie specie; energy sensibleEnthalpy; } mixture { thermodynamics { Hf -286000.0; CpCoeffs<8> ( 12010.1 -80.4 0.31 -0.000538 3.62e-07 0.0 0.0 0.0 ); Sf 69.95; } transport { kappaCoeffs<8> ( -0.869 0.00895 -1.58e-05 7.97e-09 0.0 0.0 0.0 0.0 ); muCoeffs<8> ( 0.0374 -3.093e-4 9.609e-7 -1.32e-9 6.746e-13 0 0.0 0.0 ); } equationOfState { rhoCoeffs<8> ( 838.46 1.4 -0.003 3.72e-07 0.0 0.0 0.0 0.0 ); } specie { nMoles 1; molWeight 18; // Water } } The error messages in control panel is like this; --> FOAM FATAL ERROR: Unknown psiThermo type thermoType { type heRhoThermo; mixture pureMixture; transport polynomial; thermo hPolynomial; equationOfState icoPolynomial; specie specie; energy sensibleEnthalpy; } Valid psiThermo types are: type mixture transport thermo equationOfState specie energy hePsiThermo homogeneousMixture const hConst perfectGas specie sensibleEnthalpy hePsiThermo homogeneousMixture sutherland hConst perfectGas specie sensibleEnthalpy hePsiThermo homogeneousMixture sutherland janaf perfectGas specie sensibleEnthalpy hePsiThermo inhomogeneousMixture const hConst perfectGas specie sensibleEnthalpy hePsiThermo inhomogeneousMixture sutherland hConst perfectGas specie sensibleEnthalpy hePsiThermo inhomogeneousMixture sutherland janaf perfectGas specie sensibleEnthalpy hePsiThermo multiComponentMixture const hConst perfectGas specie sensibleEnthalpy hePsiThermo multiComponentMixture const hConst perfectGas specie sensibleInternalEnergy hePsiThermo multiComponentMixture sutherland janaf perfectGas specie sensibleEnthalpy hePsiThermo multiComponentMixture sutherland janaf perfectGas specie sensibleInternalEnergy hePsiThermo pureMixture const eConst perfectGas specie sensibleInternalEnergy hePsiThermo pureMixture const hConst perfectGas specie sensibleEnthalpy hePsiThermo pureMixture const hConst perfectGas specie sensibleInternalEnergy hePsiThermo pureMixture polynomial hPolynomial PengRobinsonGas specie sensibleEnthalpy hePsiThermo pureMixture polynomial janaf PengRobinsonGas specie sensibleEnthalpy hePsiThermo pureMixture sutherland eConst perfectGas specie sensibleInternalEnergy hePsiThermo pureMixture sutherland hConst PengRobinsonGas specie sensibleEnthalpy hePsiThermo pureMixture sutherland hConst perfectGas specie sensibleEnthalpy hePsiThermo pureMixture sutherland hConst perfectGas specie sensibleInternalEnergy hePsiThermo pureMixture sutherland janaf PengRobinsonGas specie sensibleEnthalpy hePsiThermo pureMixture sutherland janaf PengRobinsonGas specie sensibleInternalEnergy hePsiThermo pureMixture sutherland janaf perfectGas specie sensibleEnthalpy hePsiThermo pureMixture sutherland janaf perfectGas specie sensibleInternalEnergy hePsiThermo reactingMixture const hConst perfectGas specie sensibleEnthalpy hePsiThermo reactingMixture const hConst perfectGas specie sensibleInternalEnergy hePsiThermo reactingMixture sutherland janaf perfectGas specie sensibleEnthalpy hePsiThermo reactingMixture sutherland janaf perfectGas specie sensibleInternalEnergy hePsiThermo singleStepReactingMixture sutherland janaf perfectGas specie sensibleEnthalpy hePsiThermo singleStepReactingMixture sutherland janaf perfectGas specie sensibleInternalEnergy hePsiThermo veryInhomogeneousMixture const hConst perfectGas specie sensibleEnthalpy hePsiThermo veryInhomogeneousMixture sutherland hConst perfectGas specie sensibleEnthalpy hePsiThermo veryInhomogeneousMixture sutherland janaf perfectGas specie sensibleEnthalpy heheuPsiThermo egrMixture const hConst perfectGas specie absoluteEnthalpy heheuPsiThermo egrMixture sutherland janaf perfectGas specie absoluteEnthalpy heheuPsiThermo egrMixture sutherland janaf perfectGas specie absoluteInternalEnergy heheuPsiThermo homogeneousMixture const hConst perfectGas specie absoluteEnthalpy heheuPsiThermo homogeneousMixture sutherland janaf perfectGas specie absoluteEnthalpy heheuPsiThermo homogeneousMixture sutherland janaf perfectGas specie absoluteInternalEnergy heheuPsiThermo inhomogeneousMixture const hConst perfectGas specie absoluteEnthalpy heheuPsiThermo inhomogeneousMixture sutherland janaf perfectGas specie absoluteEnthalpy heheuPsiThermo inhomogeneousMixture sutherland janaf perfectGas specie absoluteInternalEnergy heheuPsiThermo veryInhomogeneousMixture const hConst perfectGas specie absoluteEnthalpy heheuPsiThermo veryInhomogeneousMixture sutherland janaf perfectGas specie absoluteEnthalpy heheuPsiThermo veryInhomogeneousMixture sutherland janaf perfectGas specie absoluteInternalEnergy From function static typename Table::iterator Foam::basicThermo::lookupThermo(const Foam::dictionary&, Table*) [with Thermo = Foam:siThermo; Table = Foam::HashTable<Foam::autoPtr<Foam:siThermo> (*)(const Foam::fvMesh&, const Foam::word&), Foam::word, Foam::string::hash>; typename Table::iterator = Foam::HashTable<Foam::autoPtr<Foam:siThermo> (*)(const Foam::fvMesh&, const Foam::word&), Foam::word, Foam::string::hash>::iterator] in file lnInclude/basicThermoTemplates.C at line 73. FOAM exiting Killing PID 14385 PyFoam WARNING on line 288 of file /home/kale/.local/lib/python2.7/site-packages/PyFoam/Execution/FoamThread.py : Process 14385 was already dead Getting LinuxMem: [Errno 2] No such file or directory: '/proc/14385/status' What is the reason of these errors ? I use rhoPimpleFoam as solver and I define the "thermophysicalProperties" file for water. Thank you for your help. |
|
December 11, 2017, 04:00 |
|
#2 |
Senior Member
Join Date: Sep 2013
Posts: 353
Rep Power: 21 |
heRhoThermo is not of type psiThermo. Or in other words: the solver you are using does only support thermo models based on a compressibility psi and not on density like the rhoThermo variants. The list that is output contains all options available to this solver.
|
|
December 11, 2017, 07:33 |
|
#3 |
New Member
gemxx
Join Date: Feb 2015
Posts: 28
Rep Power: 11 |
Thank you very much for your reply. I used the type as "rhoThermo" instead of "psiThermo". The previous errors were solved, but the new ones appeared on the command panel
I reviewed the literature and found there different "thermophysicalProperties" file which are used for water. I tried all of them. The last versions of "thermophysicalProperties" file are like below. ----------------------------------------------------------------(First) rhoThermo { type heRhoThermo; mixture pureMixture; transport const; thermo hConst; equationOfState perfectFluid; specie specie; energy sensibleInternalEnergy; } mixture { specie { nMoles 1; molWeight 18.0; } equationOfState { R 3000; rho0 1027; } thermodynamics { Cp 4195; Hf 0; } transport { mu 3.645e-4; Pr 2.289; } } ----------------------------------------------------------------(Second) rhoThermo { type heRhoThermo; mixture pureMixture; properties liquid; energy sensibleInternalEnergy; } mixture { H2O; } ----------------------------------------------------------------(Third) rhoThermo { type heRhoThermo; mixture pureMixture; transport polynomial; thermo hPolynomial; equationOfState icoPolynomial; specie specie; energy sensibleEnthalpy; } mixture { specie { nMoles 1; molWeight 18.0; } equationOfState { rhoCoeffs<8> (838.46 1.4 -0.003 3.72e-07 0.0 0.0 0.0 0.0); } thermodynamics { CpCoeffs<8> (12010.1 -80.4 0.31 -0.000538 3.62e-07 0.0 0.0 0.0); Hf -286000.0; Sf 69.95; } transport { kappaCoeffs<8> (-0.869 0.00895 -1.58e-05 7.97e-09 0.0 0.0 0.0 0.0); muCoeffs<8> (0.0374 -3.093e-4 9.609e-7 -1.32e-9 6.746e-13 0 0.0 0.0); } } ---------------------------------------------------------------- The errors appeared on the command panel when I run the cases respectively : -----------------------------------(When the first "thermophysicalProperties" file is used ) Create time Create mesh for time = 0 PIMPLE: Operating solver in PISO mode Reading thermophysical properties --> FOAM FATAL IO ERROR: keyword thermoType is undefined in dictionary "/home/kale/OpenFOAM/OpenFOAM-4.1/tutorials/compressible/rhoPimpleFoam/bc24_rhoPimpleFoam_water/constant/thermophysicalProperties" file: /home/kale/OpenFOAM/OpenFOAM-4.1/tutorials/compressible/rhoPimpleFoam/bc24_rhoPimpleFoam_water/constant/thermophysicalProperties from line 19 to line 48. From function const Foam::entry& Foam::dictionary::lookupEntry(const Foam::word&, bool, bool) const in file db/dictionary/dictionary.C at line 441. FOAM exiting Killing PID 8728 PyFoam WARNING on line 288 of file /home/kale/.local/lib/python2.7/site-packages/PyFoam/Execution/FoamThread.py : Process 8728 was already dead Getting LinuxMem: [Errno 2] No such file or directory: '/proc/8728/status' -----------------------------------(When the second "thermophysicalProperties" file is used ) Create time Create mesh for time = 0 PIMPLE: Operating solver in PISO mode Reading thermophysical properties --> FOAM FATAL IO ERROR: keyword thermoType is undefined in dictionary "/home/kale/OpenFOAM/OpenFOAM-4.1/tutorials/compressible/rhoPimpleFoam/bc24_rhoPimpleFoam_water2/constant/thermophysicalProperties" file: /home/kale/OpenFOAM/OpenFOAM-4.1/tutorials/compressible/rhoPimpleFoam/bc24_rhoPimpleFoam_water2/constant/thermophysicalProperties at line 19. From function const Foam::entry& Foam::dictionary::lookupEntry(const Foam::word&, bool, bool) const in file db/dictionary/dictionary.C at line 441. FOAM exiting -----------------------------------(When the third "thermophysicalProperties" file is used ) Create time Create mesh for time = 0 PIMPLE: Operating solver in PISO mode Reading thermophysical properties --> FOAM FATAL IO ERROR: keyword thermoType is undefined in dictionary "/home/kale/OpenFOAM/OpenFOAM-4.1/tutorials/compressible/rhoPimpleFoam/bc24_rhoPimpleFoam_water3/constant/thermophysicalProperties" file: /home/kale/OpenFOAM/OpenFOAM-4.1/tutorials/compressible/rhoPimpleFoam/bc24_rhoPimpleFoam_water3/constant/thermophysicalProperties from line 19 to line 51. From function const Foam::entry& Foam::dictionary::lookupEntry(const Foam::word&, bool, bool) const in file db/dictionary/dictionary.C at line 441. FOAM exiting ----------------------------------- I use "rhoPimpleFoam" as solver for analyses.What do you think about these errors? Are they related to the solver type ? |
|
December 11, 2017, 13:12 |
|
#4 |
Senior Member
Join Date: Sep 2013
Posts: 353
Rep Power: 21 |
As stated before you can't use rhoThermo. This time you replaced thermoType for some reason. It has to look somethink like this:
Code:
thermoType { type hePsiThermo; mixture pureMixture; transport polynomial; thermo hPolynomial; equationOfState icoPolynomial; specie specie; energy sensibleEnthalpy; } ... |
|
December 11, 2017, 14:19 |
|
#5 |
New Member
gemxx
Join Date: Feb 2015
Posts: 28
Rep Power: 11 |
Yes, as you said when I replace hePsiThermo as thermoType, there is not any errors. But this thermoType, hePsiThermo, is suitable for water? I want to use compressible solver for water in order to obtain more accurate results for acoustic analyses.
|
|
December 11, 2017, 14:27 |
|
#6 |
Senior Member
Join Date: Sep 2013
Posts: 353
Rep Power: 21 |
Well that depends on what you want to solve. check the OpenFOAM user guide section 7.1
https://cfd.direct/openfoam/user-gui...#x35-2590007.1 Code:
hePsiThermo homogeneousMixture const hConst perfectGas specie sensibleEnthalpy hePsiThermo homogeneousMixture sutherland hConst perfectGas specie sensibleEnthalpy hePsiThermo homogeneousMixture sutherland janaf perfectGas specie sensibleEnthalpy hePsiThermo inhomogeneousMixture const hConst perfectGas specie sensibleEnthalpy hePsiThermo inhomogeneousMixture sutherland hConst perfectGas specie sensibleEnthalpy hePsiThermo inhomogeneousMixture sutherland janaf perfectGas specie sensibleEnthalpy hePsiThermo multiComponentMixture const hConst perfectGas specie sensibleEnthalpy hePsiThermo multiComponentMixture const hConst perfectGas specie sensibleInternalEnergy hePsiThermo multiComponentMixture sutherland janaf perfectGas specie sensibleEnthalpy hePsiThermo multiComponentMixture sutherland janaf perfectGas specie sensibleInternalEnergy hePsiThermo pureMixture const eConst perfectGas specie sensibleInternalEnergy hePsiThermo pureMixture const hConst perfectGas specie sensibleEnthalpy hePsiThermo pureMixture const hConst perfectGas specie sensibleInternalEnergy hePsiThermo pureMixture polynomial hPolynomial PengRobinsonGas specie sensibleEnthalpy hePsiThermo pureMixture polynomial janaf PengRobinsonGas specie sensibleEnthalpy hePsiThermo pureMixture sutherland eConst perfectGas specie sensibleInternalEnergy hePsiThermo pureMixture sutherland hConst PengRobinsonGas specie sensibleEnthalpy hePsiThermo pureMixture sutherland hConst perfectGas specie sensibleEnthalpy hePsiThermo pureMixture sutherland hConst perfectGas specie sensibleInternalEnergy hePsiThermo pureMixture sutherland janaf PengRobinsonGas specie sensibleEnthalpy hePsiThermo pureMixture sutherland janaf PengRobinsonGas specie sensibleInternalEnergy hePsiThermo pureMixture sutherland janaf perfectGas specie sensibleEnthalpy hePsiThermo pureMixture sutherland janaf perfectGas specie sensibleInternalEnergy hePsiThermo reactingMixture const hConst perfectGas specie sensibleEnthalpy hePsiThermo reactingMixture const hConst perfectGas specie sensibleInternalEnergy hePsiThermo reactingMixture sutherland janaf perfectGas specie sensibleEnthalpy hePsiThermo reactingMixture sutherland janaf perfectGas specie sensibleInternalEnergy hePsiThermo singleStepReactingMixture sutherland janaf perfectGas specie sensibleEnthalpy hePsiThermo singleStepReactingMixture sutherland janaf perfectGas specie sensibleInternalEnergy hePsiThermo veryInhomogeneousMixture const hConst perfectGas specie sensibleEnthalpy hePsiThermo veryInhomogeneousMixture sutherland hConst perfectGas specie sensibleEnthalpy hePsiThermo veryInhomogeneousMixture sutherland janaf perfectGas specie sensibleEnthalpy heheuPsiThermo egrMixture const hConst perfectGas specie absoluteEnthalpy heheuPsiThermo egrMixture sutherland janaf perfectGas specie absoluteEnthalpy heheuPsiThermo egrMixture sutherland janaf perfectGas specie absoluteInternalEnergy heheuPsiThermo homogeneousMixture const hConst perfectGas specie absoluteEnthalpy heheuPsiThermo homogeneousMixture sutherland janaf perfectGas specie absoluteEnthalpy heheuPsiThermo homogeneousMixture sutherland janaf perfectGas specie absoluteInternalEnergy heheuPsiThermo inhomogeneousMixture const hConst perfectGas specie absoluteEnthalpy heheuPsiThermo inhomogeneousMixture sutherland janaf perfectGas specie absoluteEnthalpy heheuPsiThermo inhomogeneousMixture sutherland janaf perfectGas specie absoluteInternalEnergy heheuPsiThermo veryInhomogeneousMixture const hConst perfectGas specie absoluteEnthalpy heheuPsiThermo veryInhomogeneousMixture sutherland janaf perfectGas specie absoluteEnthalpy heheuPsiThermo veryInhomogeneousMixture sutherland janaf perfectGas specie absoluteInternalEnergy |
|
March 3, 2021, 16:35 |
|
#7 | |
New Member
Luis
Join Date: Sep 2020
Posts: 9
Rep Power: 6 |
Quote:
I'm having the same issue, well kinda. I am able to rhoCentralFoam solver using openFOAM 5 with good results and no problems as follows: thermoType { type hePsiThermo; mixture pureMixture; transport polynomial; thermo hPolynomial; equationOfState PengRobinsonGas; specie specie; energy sensibleEnthalpy; } BUT, when I try to run the solver using openFOAM 8, then it shows the error: --> FOAM FATAL ERROR: Unknown psiThermo type the thing is the list valid psithermotypes does not contain the models combination that I need, even though it works in OF5 and I don't know why. Is there any other thing I need to update or change to make it work in OF8?? thanks! |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how can see Cp values? | immortality | OpenFOAM Post-Processing | 51 | June 18, 2021 08:19 |
"unknown psi type" error in reactingFoam | Speno93 | OpenFOAM Running, Solving & CFD | 2 | May 25, 2021 10:15 |
Coupling of Radiation on Natural Convection problem | jrsilvio_ver | OpenFOAM Running, Solving & CFD | 13 | November 9, 2017 23:57 |
compile of new combination of property in thermophisicalpropery | milad653279 | OpenFOAM Running, Solving & CFD | 4 | April 6, 2017 05:35 |
Thermophysical properties for bouyantpimplefoam/chtmultiRegionfoam --water (any liq) | manuc | OpenFOAM Running, Solving & CFD | 10 | November 16, 2016 08:44 |