CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   problem about adding another equation of state (http://www.cfd-online.com/Forums/openfoam/101814-problem-about-adding-another-equation-state.html)

yhaomin2007 May 14, 2012 21:02

problem about adding another equation of state
 
Hi, all foamers:

I want to imply another equation of state, so I copied the prefect gas file, and renamed it.

The compilation of the specie.so is successful, then I recompiled the solver. But when I run the solver it says:


Quote:

Unknown basicPsiThermo type hPsiThermo<pureMixture<sutherlandTransport<specieT hermo<hConstThermo<RedlichKwong>>>>>

Valid basicPsiThermo types are:

11
(
ePsiThermo<pureMixture<constTransport<specieThermo <eConstThermo<perfectGas>>>>>
ePsiThermo<pureMixture<constTransport<specieThermo <hConstThermo<perfectGas>>>>>
ePsiThermo<pureMixture<sutherlandTransport<specieT hermo<eConstThermo<perfectGas>>>>>
ePsiThermo<pureMixture<sutherlandTransport<specieT hermo<hConstThermo<perfectGas>>>>>
ePsiThermo<pureMixture<sutherlandTransport<specieT hermo<janafThermo<perfectGas>>>>>
hPsiThermo<pureMixture<constTransport<specieThermo <hConstThermo<perfectGas>>>>>
hPsiThermo<pureMixture<sutherlandTransport<specieT hermo<hConstThermo<perfectGas>>>>>
hPsiThermo<pureMixture<sutherlandTransport<specieT hermo<janafThermo<perfectGas>>>>>
hsPsiThermo<pureMixture<constTransport<specieTherm o<hConstThermo<perfectGas>>>>>
hsPsiThermo<pureMixture<sutherlandTransport<specie Thermo<hConstThermo<perfectGas>>>>>
hsPsiThermo<pureMixture<sutherlandTransport<specie Thermo<janafThermo<perfectGas>>>>>
)



From function basicPsiThermo::New(const fvMesh&)
in file psiThermo/basicPsiThermo/basicPsiThermoNew.C at line 60.
it seems that I have to put the new equation of state to somewhere.

Could somebody help me with this??

thank you in advance.:p

olivierG May 15, 2012 04:17

hello,

You should take a look at this thread:
http://www.cfd-online.com/Forums/ope...roperties.html

regards,
olivier

yhaomin2007 May 15, 2012 11:37

thank you very much~

yhaomin2007 May 15, 2012 13:47

hi, olivier:

I have seen the threads that you quoted. but I did not find the clear solution in it.

Do you have any ideas?

thank you

olivierG May 16, 2012 04:36

hello,

In this post http://www.cfd-online.com/Forums/ope...tml#post263539 you will find a step by step method.

Due to the multi layer structure in the thermoType, you need do modify more than one file. I don't know an easy "Howto" for that.

regards,
olivier



All times are GMT -4. The time now is 10:03.