CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   inlet gas in shockTube (rhoCentralFoam solver) (https://www.cfd-online.com/Forums/openfoam/118447-inlet-gas-shocktube-rhocentralfoam-solver.html)

gnozh May 28, 2013 03:35

inlet gas in shockTube (rhoCentralFoam solver)
 
Hi foamers,

I am investigating a case by using the shockTube tutorial (rhoCentralFoam solver).

The shockTube is divided into two parts by a diaphragm.

In my case, the left part is filled with hydrogen and the right part with air.

Nevertheless, the shockTube can only define one mixture in the thermophysicalProperties.

Then how can I define two different kind of gas in my case?

Thanks.

bob91 March 20, 2014 13:31

hi
ı have same problem if you solve . can you help me ?

zhengzh5 March 24, 2014 16:47

Quote:

Originally Posted by gnozh (Post 430413)
Hi foamers,

I am investigating a case by using the shockTube tutorial (rhoCentralFoam solver).

The shockTube is divided into two parts by a diaphragm.

In my case, the left part is filled with hydrogen and the right part with air.

Nevertheless, the shockTube can only define one mixture in the thermophysicalProperties.

Then how can I define two different kind of gas in my case?

Thanks.

Try using reactingMixture instead of pureMixture in constant/thermophysicalProperties. That way you can use setField to specify your initial specie distribution.

thermoType
{
type heRhoThermo;
mixture reactingMixture;
transport sutherland;
thermo janaf;
energy sensibleEnthalpy;
equationOfState perfectGas;
specie specie;
}

you can check out one of the lagrangian tutorial for the setup of thermophysicalProperties file.

bluemuny July 17, 2014 15:09

same problem
 
Hello all,

I am a new user of OpenFoam and doing my case using a shock tube sample in the rhoCentralFoam folder.
As with other folks above, I am using a shock tube with two different gases: He and air.
The sample, however, used only air in both sides, so the output has a lot of discrepancy.
I found that, in a setFieldsDict, we can put initial condition of pressure and temperature in both sides of a shock tube. Is there any way to put specific heat ratio and sound speed of both gases separately?
I have looked at the sample using reacting mixture instead of pure mixture but it is too difficult for me to understand.
If anyone knows a solution, could you explain to me?
Thank you very much in advance.

Best regards,
Ye


All times are GMT -4. The time now is 05:16.