Temperature ratio across normal shockwave

Click For Summary
SUMMARY

This discussion focuses on calculating the temperature ratio across a normal shock wave in diatomic nitrogen (N2) using MATLAB for iterative solutions. The known parameters include an upstream velocity (U_2) of 3000 m/s and a temperature (T_2) of 300 K, with a characteristic vibrational temperature (Θ_{V,N_2}) of 3390 K. The iterative process involves estimating the density ratio (ε), calculating upstream velocity (U_1), and determining enthalpy (h_1) and temperature (T_1) before the shock. The discussion emphasizes the need for accurate pressure and density values to proceed with the calculations.

PREREQUISITES
  • Understanding of normal shock wave theory
  • Familiarity with MATLAB programming for iterative calculations
  • Knowledge of thermodynamic properties of diatomic gases
  • Proficiency in using the Eqair applet for gas property calculations
NEXT STEPS
  • Research the use of the continuity equation in shock wave analysis
  • Learn about the secant method for iterative solutions in MATLAB
  • Study the thermodynamic properties of diatomic gases, focusing on vibrational energy
  • Explore textbook relations for normal shock computations, including pressure and density ratios
USEFUL FOR

Students and professionals in aerospace engineering, particularly those involved in fluid dynamics and thermodynamics, will benefit from this discussion. It is especially relevant for individuals working on shock wave analysis and iterative computational methods.

roldy
Messages
206
Reaction score
2

Homework Statement


Consider a stationary normal shock wave in pure diatomic nitrogen. The velocity and temperature upstream are known. Calculate the temperature ratio across the shock, assuming local thermodynamic equilibrium. Neglect any chemical reactions and electronic energy.

U_2=3000m/s
T_2=300K
\Theta_{V,N_2}=3390K


Homework Equations


Continuity equation
Momentum equation
Energy equation

\epsilon=\frac{\rho_1}{\rho_2}

The Attempt at a Solution



So this will be an iterative process. I am programming the solution in MATLAB but ran into a problem figuring out the last of the iterative solution steps. The steps I have found so far are as follows.

1) Assume a value for \epsilon
2) Calculate U_1=\frac{U_2}{\epsilon}
3) Calculate h_1=h_2+\frac{U_2^2-U_1^2}{2}
For diatomic nitrogen,
h_2=7/2RT_2+\left[\frac{\Theta_V/T_2}{e^{\Theta_V/T_2}-1}\right]RT_2
4) Calculate T_1=\frac{h_1}{7/2R}

Now I need to figure out the check for the iterative process. Here is my idea. Using the Eqair applet here http://www.dept.aoe.vt.edu/~devenpor/tgas/" , I can solve for h1 if I new what the pressure and the density was. My professor posted MATLAB version of the Eqair applet. The inputs are pressure and density and the outputs are temperature and enthalpy. So the big question is how do I find what the pressure and density are before the shock. If only I could figure out what the density after the shock wave was I can then use the continuity equation to solve for the density before the shock wave and also the pressure.

I need to know what the enthalpy is from Eqair applet so I can use the sectant method to find my next ε value.

\epsilon_{i+1}=\epsilon_i-\frac{\Delta h_i}{\frac{\Delta h_i-\Delta h_{i-1}}{\epsilon_i-\epsilon_{i-1}}}

\Delta h_i=|\bar{h}_i-h_i|
\Delta h_{i-1}=|\bar{h}_{i-1}-h_{i-1}|

This is the check that I will be implementing based off of some tolerance value.

if Δhi≤.0001, then end the loop and calculate T2/T1.


I've been trying for the past few days now to figure out if I missed anything or if there is another way to go about the problem. Any suggestions or anything I messed up?
 
Last edited by a moderator:
Physics news on Phys.org
You have a 3390K number in your post. What is it?

As I recall there are textbook arithmetic relations for normal shock computation. They provide pressure ratios, density ratios, and entropy changes across the shock as a function of the upstream mach number and specific heat ratio. The one for entropy change requires constant volume specific heat in addition to mach number and specific heat ratio. Aren't they applicable to this problem?
 
3390 K is the characteristic temperature for molecular vibration of N2. I know what the equations you are talking about are. Those would work if I didn't have to deal with this molecular vibration. Because this shock wave is in thermodynamic equilibrium and I'm only given the velocity and temperature after the shock, I have to solve iteratively. Assume a value for the density ratio, solve for the velocity before the shock, calculate the temperature, etc. Unfortunately I can not figure out the next step.
 
I'm guessing here but with molecular vibration of nitrogen is stagnation temperature constant across the shock as it is when vibration is not considered? Or is stagnation temperature plus the kinetic energy of the vibration a constant? There is no work being done.

Whenever involved with an iterative process, a wrong estimate produces a violation of some basic law so the estimated is adjusted until the law is no longer violated. I'm guessing again but would an energy balance of some sort be appropriate as a check?
 
The stagnation temperature of an ideal gas is constant across a normal shock wave. I have no way of calculating the energy from the molecular vibration since I do not know the frequency of the vibrations. I don't think it's as easy as adding the vibration and the stagnation temperature, I could be wrong though. Also, the gas constant on both sides of the shock wave are equal to each other.

On other homework assignments involving an iterative process, we would use the following procedure. Note, the following steps are for solving the state variable AFTER a normal shock wave with known values of P1 and h1 known.

1) start the iteration with ε1=0.001 and ε2=0.1.

2) Solve for P2 using ε2
P_2=P_1+\rho_1U_1^2(1-\epsilon_2)

3) Solve for h2 using ε2
h_2=h_1+1/2U_1^2(1-\epsilon_2^2)

4) Using the Eqair applet, find h2' as a function of the pressure and density. Meaning, in the applet select pressure and density and type in the value for pressure found in step 2. ρ212.

5) With the value found in step 4, find the absolute value of the difference of the two. Δh=|h2'-h2|

6) Check to see if the difference found in step 5 is less than the tolerance of .0001. If it is, Then the calculated values of pressure, enthalpy, and density (as well as anything else that can be calculated from these) are correct. If however, the difference is greater than the tolerance. I go onto step 7

7) Use the secant method to find my next value of ε which is then used in 2, then repeat the procedure.

Sorry for a long post but I wanted you to see where I was coming from for my derivation of the iterative process. I rewrote this procedure in terms of solving for the state variables before the shock wave.
 
Last edited:
So apparently my assumption the problem was wrong. The problem is of a thermally perfect gas. I believe I figured it out. I will post my solution later if anyone cares to confirm it.
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
5
Views
2K
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 5 ·
Replies
5
Views
1K