CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   SU2 (https://www.cfd-online.com/Forums/su2/)
-   -   TNE2-Solver output (https://www.cfd-online.com/Forums/su2/141281-tne2-solver-output.html)

saitej09 September 4, 2014 03:42

TNE2-Solver output
 
The tne2 euler and NS solver output doesnot have variable like mass fraction of the different species. how to add these to the output list ? Also, if some one can confirm what the variables conservative 1-10 actually denote/mean, it will be very helpful.

akun646 September 5, 2014 04:40

Quote:

Originally Posted by saitej09 (Post 509019)
The tne2 euler and NS solver output doesnot have variable like mass fraction of the different species. how to add these to the output list ? Also, if some one can confirm what the variables conservative 1-10 actually denote/mean, it will be very helpful.

Hi there!

I was looking at the source files, but I have to say that I don't really have experiences in programing so just trying to give my opinions and hoping someone with more experiences to give their suggestions.

I tried to run the tutorial case for TNE2 and had Conservative_1 to 7. This is because in the tutorial the N2 model was used so there are two species. Therefore, in my opinions, after having a look in the source files:

Conservative_1: density

Conservative_2: density*Mass Fraction Species 1
Conservative_3: density*Mass Fraction Species 2
(from Conservative_2 to Conservative_2+n should depend on your number of species)

Conservative_4: density*VelocityX
Conservative_5: density*VelocityY
(depending on the dimension of the problem)

and in the case of the tutorial, the last two conservative parameters should be:
Conservative_6: density*Mixture total energy
Consevative_7: density*Vibration-electronic energy

These are my "feelings" about what the solution variables should be, so hoping some else with more experiences can give the right answer!!

Cheers!!

Facundo

copeland September 9, 2014 13:07

Hello Saitej and Facundo,

The TNE2 outputs are as follows:

Conservative_1 - Density of species '1'
...
Conservative_nSp - Density of species 'nSpecies'
Conservative_nSp+1 - X-momentum
Conservative_nSp+2 - Y-momentum
(Conservative_nSp+nDim) - Z-momentum
Conservative_nSp+nDim+1 - Total energy per unit volume
Conservative_nSp+nDim+2 - Vib-el. energy per unit volume

So, for example, if you are running a 3D simulation with the N2 gas model, you should have 2+3+2=7 conserved variables that follow the mapping above. Similarly, if you are running the 5 species air gas model in 2D, you should have 5+2+2 = 9 conserved variables. To acquire the mass fractions, you must do a post-processing step to locally sum all the densities to get the mixture density, then divide the species density by the mixture density.

There are also primitive variables (Pressure, Temperature, etc.) that are printed to the output file for convenience, and they should be labeled clearly.



Hope that helps,
Sean

akun646 September 11, 2014 08:23

Quote:

Originally Posted by copeland (Post 509719)
Hello Saitej and Facundo,

The TNE2 outputs are as follows:

Conservative_1 - Density of species '1'
...
Conservative_nSp - Density of species 'nSpecies'
Conservative_nSp+1 - X-momentum
Conservative_nSp+2 - Y-momentum
(Conservative_nSp+nDim) - Z-momentum
Conservative_nSp+nDim+1 - Total energy per unit volume
Conservative_nSp+nDim+2 - Vib-el. energy per unit volume

So, for example, if you are running a 3D simulation with the N2 gas model, you should have 2+3+2=7 conserved variables that follow the mapping above. Similarly, if you are running the 5 species air gas model in 2D, you should have 5+2+2 = 9 conserved variables. To acquire the mass fractions, you must do a post-processing step to locally sum all the densities to get the mixture density, then divide the species density by the mixture density.

There are also primitive variables (Pressure, Temperature, etc.) that are printed to the output file for convenience, and they should be labeled clearly.



Hope that helps,
Sean

Hi Sean,

thank you very much for the explanation, it is really clear!!!

Facundo

Sachchit January 28, 2015 00:23

Quote:

Originally Posted by copeland (Post 509719)
Hello Saitej and Facundo,

The TNE2 outputs are as follows:

Conservative_1 - Density of species '1'
...
Conservative_nSp - Density of species 'nSpecies'
Conservative_nSp+1 - X-momentum
Conservative_nSp+2 - Y-momentum
(Conservative_nSp+nDim) - Z-momentum
Conservative_nSp+nDim+1 - Total energy per unit volume
Conservative_nSp+nDim+2 - Vib-el. energy per unit volume

So, for example, if you are running a 3D simulation with the N2 gas model, you should have 2+3+2=7 conserved variables that follow the mapping above. Similarly, if you are running the 5 species air gas model in 2D, you should have 5+2+2 = 9 conserved variables. To acquire the mass fractions, you must do a post-processing step to locally sum all the densities to get the mixture density, then divide the species density by the mixture density.

There are also primitive variables (Pressure, Temperature, etc.) that are printed to the output file for convenience, and they should be labeled clearly.



Hope that helps,
Sean

Hi,

I have been reading the paper "Adjoint-Based Goal-Oriented Mesh Adaptation for Nonequilibrium Hypersonic Flows" and also the "Multidimensional Simulation of Plasma in Argon through a Shock in Hypersonic Flow". In both the paper momentum equation and energy (/vibrational) is solved for each specie. I have a doubt that by solving those equations we should get momentum for each specie and same goes for Energy (/vibrational), mach number and so on.

I am new to plasma flows. So pardon me if this question is silly:(. And if there is some way to calculate all the mentioned properties from those given conservative variables kindly let me know.

Thanks in Advance,
Sachchit


All times are GMT -4. The time now is 19:38.