|
[Sponsors] |
August 18, 2022, 04:14 |
Peng Robinson into chtmultiRegionFoam
|
#1 |
Senior Member
Desh
Join Date: Mar 2021
Location: Sydney
Posts: 118
Rep Power: 5 |
Hi Foamers,
I would greatly appreciate if one could direct me how to incorporate Pen Robinson gas model into chtmultiRegionFoam solver. I am currently running on OpenFOAM-v2012 and chtMultiRegionFoam solver does not seem to recognise Pen Robinson gas model, any ideas? Thank you. Desh |
|
August 18, 2022, 04:23 |
|
#2 |
Senior Member
|
Peng Robinson equation of state ? Have you tried fixing through rho model
|
|
September 20, 2022, 04:15 |
|
#3 |
Senior Member
Desh
Join Date: Mar 2021
Location: Sydney
Posts: 118
Rep Power: 5 |
||
September 20, 2022, 05:43 |
|
#4 | |
Senior Member
|
I believe you are trying simulate real gas scenario by Peng Robinson model. Have you tried fixing something like this in thermoPhysicalProperties of your model,
Quote:
There are some threads related to Peng Robinson in CFD forum. Have you double-checked it ? Usage of PengRobinsonGas Post your errors please. Thank you |
||
September 20, 2022, 21:09 |
|
#5 |
Senior Member
Desh
Join Date: Mar 2021
Location: Sydney
Posts: 118
Rep Power: 5 |
Hi,
Sorry for inadequate info. my fluid region is under immense pressure and temperature and that's why I am moving away from perfectgas model. And I already followed the link you have mentioned. my thermophysical file for the fluid is as follows. PHP Code:
Selecting thermodynamics package { type heRhoThermo; mixture pureMixture; transport const; thermo hConst; equationOfState PengRobinsonGas; specie specie; energy sensibleEnthalpy; } --> FOAM FATAL IO ERROR: (openfoam-2206) Unknown rhoReactionThermo type Valid rhoReactionThermo types : 69 ( heRhoThermo<homogeneousMixture<const<hConst<incomp ressiblePerfectGas<specie>>,sensibleEnthalpy>>> heRhoThermo<homogeneousMixture<const<hConst<perfec tGas<specie>>,sensibleEnthalpy>>> heRhoThermo<homogeneousMixture<sutherland<janaf<in compressiblePerfectGas<specie>>,sensibleEnthalpy>> > heRhoThermo<homogeneousMixture<sutherland<janaf<pe rfectGas<specie>>,sensibleEnthalpy>>> heRhoThermo<inhomogeneousMixture<const<hConst<inco mpressiblePerfectGas<specie>>,sensibleEnthalpy>>> heRhoThermo<inhomogeneousMixture<const<hConst<perf ectGas<specie>>,sensibleEnthalpy>>> heRhoThermo<inhomogeneousMixture<sutherland<janaf< incompressiblePerfectGas<specie>>,sensibleEnthalpy >>> heRhoThermo<inhomogeneousMixture<sutherland<janaf< perfectGas<specie>>,sensibleEnthalpy>>> heRhoThermo<multiComponentMixture<const<eConst<adi abaticPerfectFluid<specie>>,sensibleInternalEnergy >>> heRhoThermo<multiComponentMixture<const<eConst<inc ompressiblePerfectGas<specie>>,sensibleInternalEne rgy>>> heRhoThermo<multiComponentMixture<const<eConst<per fectFluid<specie>>,sensibleInternalEnergy>>> heRhoThermo<multiComponentMixture<const<eConst<per fectGas<specie>>,sensibleInternalEnergy>>> heRhoThermo<multiComponentMixture<const<eConst<rho Const<specie>>,sensibleInternalEnergy>>> heRhoThermo<multiComponentMixture<const<hConst<adi abaticPerfectFluid<specie>>,sensibleEnthalpy>>> heRhoThermo<multiComponentMixture<const<hConst<inc ompressiblePerfectGas<specie>>,sensibleEnthalpy>>> heRhoThermo<multiComponentMixture<const<hConst<per fectFluid<specie>>,sensibleEnthalpy>>> heRhoThermo<multiComponentMixture<const<hConst<per fectGas<specie>>,sensibleEnthalpy>>> heRhoThermo<multiComponentMixture<const<hConst<rho Const<specie>>,sensibleEnthalpy>>> heRhoThermo<multiComponentMixture<polynomial<hPoly nomial<icoPolynomial<specie>>,sensibleEnthalpy>>> heRhoThermo<multiComponentMixture<polynomial<hPoly nomial<icoPolynomial<specie>>,sensibleInternalEner gy>>> heRhoThermo<multiComponentMixture<polynomial<janaf <perfectGas<specie>>,sensibleEnthalpy>>> heRhoThermo<multiComponentMixture<polynomial<janaf <perfectGas<specie>>,sensibleInternalEnergy>>> heRhoThermo<multiComponentMixture<sutherland<janaf <incompressiblePerfectGas<specie>>,sensibleEnthalp y>>> heRhoThermo<multiComponentMixture<sutherland<janaf <incompressiblePerfectGas<specie>>,sensibleInterna lEnergy>>> heRhoThermo<multiComponentMixture<sutherland<janaf <perfectGas<specie>>,sensibleEnthalpy>>> heRhoThermo<multiComponentMixture<sutherland<janaf <perfectGas<specie>>,sensibleInternalEnergy>>> heRhoThermo<pureMixture<WLF<eConst<rhoConst<specie >>,sensibleInternalEnergy>>> heRhoThermo<pureMixture<const<eConst<adiabaticPerf ectFluid<specie>>,sensibleInternalEnergy>>> heRhoThermo<pureMixture<const<eConst<incompressibl ePerfectGas<specie>>,sensibleInternalEnergy>>> heRhoThermo<pureMixture<const<eConst<perfectFluid< specie>>,sensibleInternalEnergy>>> heRhoThermo<pureMixture<const<eConst<perfectGas<sp ecie>>,sensibleInternalEnergy>>> heRhoThermo<pureMixture<const<eConst<rhoConst<spec ie>>,sensibleInternalEnergy>>> heRhoThermo<pureMixture<const<hConst<Boussinesq<sp ecie>>,sensibleEnthalpy>>> heRhoThermo<pureMixture<const<hConst<Boussinesq<sp ecie>>,sensibleInternalEnergy>>> heRhoThermo<pureMixture<const<hConst<adiabaticPerf ectFluid<specie>>,sensibleEnthalpy>>> heRhoThermo<pureMixture<const<hConst<incompressibl ePerfectGas<specie>>,sensibleEnthalpy>>> heRhoThermo<pureMixture<const<hConst<perfectFluid< specie>>,sensibleEnthalpy>>> heRhoThermo<pureMixture<const<hConst<perfectGas<sp ecie>>,sensibleEnthalpy>>> heRhoThermo<pureMixture<const<hConst<rhoConst<spec ie>>,sensibleEnthalpy>>> heRhoThermo<pureMixture<polynomial<hPolynomial<ico Polynomial<specie>>,sensibleEnthalpy>>> heRhoThermo<pureMixture<polynomial<hPolynomial<ico Polynomial<specie>>,sensibleInternalEnergy>>> heRhoThermo<pureMixture<sutherland<janaf<Boussines q<specie>>,sensibleEnthalpy>>> heRhoThermo<pureMixture<sutherland<janaf<Boussines q<specie>>,sensibleInternalEnergy>>> heRhoThermo<pureMixture<sutherland<janaf<incompres siblePerfectGas<specie>>,sensibleEnthalpy>>> heRhoThermo<pureMixture<sutherland<janaf<incompres siblePerfectGas<specie>>,sensibleInternalEnergy>>> heRhoThermo<pureMixture<sutherland<janaf<perfectGa s<specie>>,sensibleEnthalpy>>> heRhoThermo<pureMixture<sutherland<janaf<perfectGa s<specie>>,sensibleInternalEnergy>>> heRhoThermo<reactingMixture<const<eConst<adiabatic PerfectFluid<specie>>,sensibleInternalEnergy>>> heRhoThermo<reactingMixture<const<eConst<incompres siblePerfectGas<specie>>,sensibleInternalEnergy>>> heRhoThermo<reactingMixture<const<eConst<perfectFl uid<specie>>,sensibleInternalEnergy>>> heRhoThermo<reactingMixture<const<eConst<perfectGa s<specie>>,sensibleInternalEnergy>>> heRhoThermo<reactingMixture<const<eConst<rhoConst< specie>>,sensibleInternalEnergy>>> heRhoThermo<reactingMixture<const<hConst<adiabatic PerfectFluid<specie>>,sensibleEnthalpy>>> heRhoThermo<reactingMixture<const<hConst<incompres siblePerfectGas<specie>>,sensibleEnthalpy>>> heRhoThermo<reactingMixture<const<hConst<perfectFl uid<specie>>,sensibleEnthalpy>>> heRhoThermo<reactingMixture<const<hConst<perfectGa s<specie>>,sensibleEnthalpy>>> heRhoThermo<reactingMixture<const<hConst<rhoConst< specie>>,sensibleEnthalpy>>> heRhoThermo<reactingMixture<polynomial<hPolynomial <icoPolynomial<specie>>,sensibleEnthalpy>>> heRhoThermo<reactingMixture<polynomial<hPolynomial <icoPolynomial<specie>>,sensibleInternalEnergy>> > heRhoThermo<reactingMixture<sutherland<janaf<incom pressiblePerfectGas<specie>>,sensibleEnthalpy>>> heRhoThermo<reactingMixture<sutherland<janaf<incom pressiblePerfectGas<specie>>,sensibleInternalEnerg y>>> heRhoThermo<reactingMixture<sutherland<janaf<perfe ctGas<specie>>,sensibleEnthalpy>>> heRhoThermo<reactingMixture<sutherland<janaf<perfe ctGas<specie>>,sensibleInternalEnergy>>> heRhoThermo<singleStepReactingMixture<sutherland<j anaf<perfectGas<specie>>,sensibleEnthalpy>>> heRhoThermo<singleStepReactingMixture<sutherland<j anaf<perfectGas<specie>>,sensibleInternalEnergy>>> heRhoThermo<veryInhomogeneousMixture<const<hConst< incompressiblePerfectGas<specie>>,sensibleEnthalpy >>> heRhoThermo<veryInhomogeneousMixture<const<hConst< perfectGas<specie>>,sensibleEnthalpy>>> heRhoThermo<veryInhomogeneousMixture<sutherland<ja naf<incompressiblePerfectGas<specie>>,sensibleEnth alpy>>> heRhoThermo<veryInhomogeneousMixture<sutherland<ja naf<perfectGas<specie>>,sensibleEnthalpy>>> ) type mixture transport thermo equationOfState specie energy heRhoThermo homogeneousMixture const hConst incompressiblePerfectGas specie sensibleEnthalpy heRhoThermo homogeneousMixture const hConst perfectGas specie sensibleEnthalpy heRhoThermo homogeneousMixture sutherland janaf incompressiblePerfectGas specie sensibleEnthalpy heRhoThermo homogeneousMixture sutherland janaf perfectGas specie sensibleEnthalpy heRhoThermo inhomogeneousMixture const hConst incompressiblePerfectGas specie sensibleEnthalpy heRhoThermo inhomogeneousMixture const hConst perfectGas specie sensibleEnthalpy heRhoThermo inhomogeneousMixture sutherland janaf incompressiblePerfectGas specie sensibleEnthalpy heRhoThermo inhomogeneousMixture sutherland janaf perfectGas specie sensibleEnthalpy heRhoThermo multiComponentMixture const eConst adiabaticPerfectFluid specie sensibleInternalEnergy heRhoThermo multiComponentMixture const eConst incompressiblePerfectGas specie sensibleInternalEnergy heRhoThermo multiComponentMixture const eConst perfectFluid specie sensibleInternalEnergy heRhoThermo multiComponentMixture const eConst perfectGas specie sensibleInternalEnergy heRhoThermo multiComponentMixture const eConst rhoConst specie sensibleInternalEnergy heRhoThermo multiComponentMixture const hConst adiabaticPerfectFluid specie sensibleEnthalpy heRhoThermo multiComponentMixture const hConst incompressiblePerfectGas specie sensibleEnthalpy heRhoThermo multiComponentMixture const hConst perfectFluid specie sensibleEnthalpy heRhoThermo multiComponentMixture const hConst perfectGas specie sensibleEnthalpy heRhoThermo multiComponentMixture const hConst rhoConst specie sensibleEnthalpy heRhoThermo multiComponentMixture polynomial hPolynomial icoPolynomial specie sensibleEnthalpy heRhoThermo multiComponentMixture polynomial hPolynomial icoPolynomial specie sensibleInternalEnergy heRhoThermo multiComponentMixture polynomial janaf perfectGas specie sensibleEnthalpy heRhoThermo multiComponentMixture polynomial janaf perfectGas specie sensibleInternalEnergy heRhoThermo multiComponentMixture sutherland janaf incompressiblePerfectGas specie sensibleEnthalpy heRhoThermo multiComponentMixture sutherland janaf incompressiblePerfectGas specie sensibleInternalEnergy heRhoThermo multiComponentMixture sutherland janaf perfectGas specie sensibleEnthalpy heRhoThermo multiComponentMixture sutherland janaf perfectGas specie sensibleInternalEnergy heRhoThermo pureMixture WLF eConst rhoConst specie sensibleInternalEnergy heRhoThermo pureMixture const eConst adiabaticPerfectFluid specie sensibleInternalEnergy heRhoThermo pureMixture const eConst incompressiblePerfectGas specie sensibleInternalEnergy heRhoThermo pureMixture const eConst perfectFluid specie sensibleInternalEnergy heRhoThermo pureMixture const eConst perfectGas specie sensibleInternalEnergy heRhoThermo pureMixture const eConst rhoConst specie sensibleInternalEnergy heRhoThermo pureMixture const hConst Boussinesq specie sensibleEnthalpy heRhoThermo pureMixture const hConst Boussinesq specie sensibleInternalEnergy heRhoThermo pureMixture const hConst adiabaticPerfectFluid specie sensibleEnthalpy heRhoThermo pureMixture const hConst incompressiblePerfectGas specie sensibleEnthalpy heRhoThermo pureMixture const hConst perfectFluid specie sensibleEnthalpy heRhoThermo pureMixture const hConst perfectGas specie sensibleEnthalpy heRhoThermo pureMixture const hConst rhoConst specie sensibleEnthalpy heRhoThermo pureMixture polynomial hPolynomial icoPolynomial specie sensibleEnthalpy heRhoThermo pureMixture polynomial hPolynomial icoPolynomial specie sensibleInternalEnergy heRhoThermo pureMixture sutherland janaf Boussinesq specie sensibleEnthalpy heRhoThermo pureMixture sutherland janaf Boussinesq specie sensibleInternalEnergy heRhoThermo pureMixture sutherland janaf incompressiblePerfectGas specie sensibleEnthalpy heRhoThermo pureMixture sutherland janaf incompressiblePerfectGas specie sensibleInternalEnergy heRhoThermo pureMixture sutherland janaf perfectGas specie sensibleEnthalpy heRhoThermo pureMixture sutherland janaf perfectGas specie sensibleInternalEnergy heRhoThermo reactingMixture const eConst adiabaticPerfectFluid specie sensibleInternalEnergy heRhoThermo reactingMixture const eConst incompressiblePerfectGas specie sensibleInternalEnergy heRhoThermo reactingMixture const eConst perfectFluid specie sensibleInternalEnergy heRhoThermo reactingMixture const eConst perfectGas specie sensibleInternalEnergy heRhoThermo reactingMixture const eConst rhoConst specie sensibleInternalEnergy heRhoThermo reactingMixture const hConst adiabaticPerfectFluid specie sensibleEnthalpy heRhoThermo reactingMixture const hConst incompressiblePerfectGas specie sensibleEnthalpy heRhoThermo reactingMixture const hConst perfectFluid specie sensibleEnthalpy heRhoThermo reactingMixture const hConst perfectGas specie sensibleEnthalpy heRhoThermo reactingMixture const hConst rhoConst specie sensibleEnthalpy heRhoThermo reactingMixture polynomial hPolynomial icoPolynomial specie sensibleEnthalpy heRhoThermo reactingMixture polynomial hPolynomial icoPolynomial specie sensibleInternalEnergy heRhoThermo reactingMixture sutherland janaf incompressiblePerfectGas specie sensibleEnthalpy heRhoThermo reactingMixture sutherland janaf incompressiblePerfectGas specie sensibleInternalEnergy heRhoThermo reactingMixture sutherland janaf perfectGas specie sensibleEnthalpy heRhoThermo reactingMixture sutherland janaf perfectGas specie sensibleInternalEnergy heRhoThermo singleStepReactingMixture sutherland janaf perfectGas specie sensibleEnthalpy heRhoThermo singleStepReactingMixture sutherland janaf perfectGas specie sensibleInternalEnergy heRhoThermo veryInhomogeneousMixture const hConst incompressiblePerfectGas specie sensibleEnthalpy heRhoThermo veryInhomogeneousMixture const hConst perfectGas specie sensibleEnthalpy heRhoThermo veryInhomogeneousMixture sutherland janaf incompressiblePerfectGas specie sensibleEnthalpy heRhoThermo veryInhomogeneousMixture sutherland janaf perfectGas specie sensibleEnthalpy file: constant/midAir/thermophysicalProperties.thermoType at line 19 to 25. From static typename ThermoConstructTable::mapped_type Foam::basicThermo::getThermoOrDie(const Foam::dictionary&, ThermoConstructTable&, const Foam::word&, const wordList&) [with Thermo = Foam::rhoReactionThermo; ThermoConstructTable = Foam::HashTable<Foam::autoPtr<Foam::rhoReactionThe rmo> (*)(const Foam::fvMesh&, const Foam::word&), Foam::word, Foam::Hash<Foam::word> >; typename ThermoConstructTable::mapped_type = Foam::autoPtr<Foam::rhoReactionThermo> (*)(const Foam::fvMesh&, const Foam::word&); Foam::wordList = Foam::List<Foam::word>] in file ./src/thermophysicalModels/basic/lnInclude/basicThermoTemplates.C at line 50. FOAM exiting Thank you. Best Regards, Dasith |
|
September 21, 2022, 02:59 |
|
#6 |
Senior Member
Desh
Join Date: Mar 2021
Location: Sydney
Posts: 118
Rep Power: 5 |
please find an update in this link
HTML Code:
https://www.cfd-online.com/Forums/openfoam-pre-processing/221218-conjugate-heat-transfer-real-gas-eos.html#post836197 |
|
September 21, 2022, 03:05 |
|
#7 | |
Senior Member
Desh
Join Date: Mar 2021
Location: Sydney
Posts: 118
Rep Power: 5 |
Quote:
PHP Code:
|
||
September 22, 2022, 01:28 |
|
#8 |
Senior Member
|
Hello Dasith,
The solver you are using doesn't support customized rho model. So, you didn't construct PengRobinsonGas properly. Let me look into your work by arranging a meeting. Thank you |
|
September 28, 2022, 08:09 |
|
#9 |
Senior Member
Desh
Join Date: Mar 2021
Location: Sydney
Posts: 118
Rep Power: 5 |
Hi Kummi,
Thank you very much for offering the help, but I figure it out. OpenFoam Version 10 facilitates the PengRobinson model with chtmultiRegionFoam. My model works fine now. Thanks Dasith |
|
Tags |
chtmultiregionfoam, peng robinson |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Setting the height of the stream in the free channel | kevinmccartin | CFX | 12 | October 13, 2022 22:43 |
Domain Reference Pressure and mass flow inlet boundary | AdidaKK | CFX | 75 | August 20, 2018 06:37 |
mass flow in is not equal to mass flow out | saii | CFX | 12 | March 19, 2018 06:21 |
error message | cuteapathy | CFX | 14 | March 20, 2012 07:45 |
Constant velocity of the material | Sas | CFX | 15 | July 13, 2010 09:56 |