How to Calculate Analytical Results for Quasi-1D Air Flow in a Duct

  • Thread starter roldy
  • Start date
In summary, the conversation is about a propulsion class project involving an analysis of a quasi-one-dimensional air flow in a 1 meter long duct. The project requires the use of isentropic flow and differential analysis, and the student has written MATLAB code for the analysis. However, they are also required to check their results against analytical results. The conversation includes a discussion on how to calculate the analytical results, and the student shares the exit conditions calculated from their program. They also share their work and equations used for the iterations, and ask for someone to check their steps.
  • #1
roldy
237
2
I'm working on an interaction project for my propulsion class. I am to do an analysis on a quasi-one-dimensional air flow in a duct that is 1 meter long.

Length 1 meter
Isentropic flow
no work interaction
[tex]P_0=101325[/tex]Pa
[tex]T_0=288[/tex]K
Mach=0.5
cross-section area at inlet=0.1 m^2
cross-section area at exit=0.4345 m^2

I'm to perform 100,000 iterations from the inlet to the exit to calculate the exit conditions

P, T, velocity, Mach, P total, T total.

We are to use differential analysis. I wrote MATLAB code to perform this analysis but I'm also required to check my results against analytical results.

Could someone explain to me how to calculate the analytical results?

The exit conditions as calculated from my program are as follow below. Attached is my code.Exit pressure = 101325.9571 Pa
Exit temperature = 288.0015 K
Exit velocity = 168.8889 m/s
Exit Mach = 0.49997
Exit total pressure = 191802.8588 Pa
Exit total temperature = 86.3911 K
Exit density = 0.28613 kg/m^3
P/P*= 0.99999
rho/rho*= 4.3448
T/T*= 0.99999
U/U*= 1.0001
Pt/Pt*= 0.62665
Tt/Tt*= 3.5004
 

Attachments

  • aeromidterm2.m
    1.7 KB · Views: 507
Last edited:
Physics news on Phys.org
  • #2
I suppose the first thing you would need to do is check to see if your exit area is smaller than the critical area. If not, then you should be able to just use Mach tables to find your exit conditions given your area ratio.

Have you done a sanity check on your results? Your exit area is more than 4x larger, but your exit Mach is only 0.0003 different.
 
  • #3
I was thinking the same thing about the area and Mach. I've worked with these equations about 5 times now. I'll have to post later my steps for coming up with the equations used for the iterations.
 
  • #4
So I went through the algebra again and came up with a different equation for my velocity but now my Mach number increased. Something is seriously wrong. Here is my work.

As we move along the nozzle for each iteration, the area increases by dA.
steps=100,001

A variable with subscript i represents the value of the variable at the current step.
A variable with subscript j represents the value of the variable at the previous step, i-1.

[tex]dA=(A_{exit} - A_{inlet})/(steps-1)[/tex]
So at any iteration step, the area can be calculated by,

[tex]A_i=A_j+dA[/tex]

Given:
[tex]\frac{d\rho}{\rho}+\frac{dU}{U}+\frac{dA}{A}=0[/tex]

But [tex]\frac{d\rho}{\rho}=\frac{\rho_i-\rho_j}{\rho_j}[/tex], like wise for the other terms.

[tex]\frac{\rho_i-\rho_j}{\rho_j}+\frac{U_i-U_j}{U_j}+\frac{A_i-A_j}{A_j}=0[/tex]

Simplifying and solving for [tex]\frac{\rho_i}{\rho_j}[/tex]

(1) [tex]\frac{\rho_i}{\rho_j}=3-\frac{U_i}{U_j}-\frac{A_i}{A_j}[/tex]

Given:
[tex]\frac{dP}{\rho}+UdU=\frac{-\tau_w*C*dx}{\rho{A}}+\eta*dw[/tex]

(*) [tex]\frac{P_i-P_j}{P_j}+U_j(U_i-U_j)=\frac{-\tau_w*C_i*dx}{\rho_j*A_j}+\eta*dw[/tex]

[tex]dS*\tau_w=1/2*C_f*\rho_j*U_j^2*C_i*dx[/tex]

[tex]dS=C*dx[/tex]

So then [tex]\tau_w=1/2*C_f*\rho_j*U_j^2[/tex]

Plugging into (*) and simplifying.

[tex]\frac{P_i-P_j}{P_j}+U_j(U_i-U_j)=\frac{-1/2*C_f*U_j^2*C_i*dx}{A_j}+\eta*dw[/tex]

Solve for [tex]\frac{P_i}{P_j}[/tex]

[tex]\frac{P_i}{P_j}=\frac{-.5*C_f*U_j^2*C_i*dx}{A_j}+\eta*dw-U_j(U_i-U_j)+1[/tex]
I then grouped the non-iterative terms of subscript i (including [tex]C_i[/tex]) into a variable called [tex]\beta[/tex].

[tex]\beta=\frac{-.5*C_f*U_j^2*C_i*dx}{A_j}+\eta*dw+1[/tex]

So now

(2) [tex]\frac{P_i}{P_j}=\beta-U_j(U-i-U_j)[/tex]

Given:
[tex]C_p*dT+UdU=d_q+d_w[/tex]

Solving for [tex]T_i[/tex]

[tex]T_i=\frac{d_q+d_w}{C_p}-\frac{U_j(U_i-U_j)}{C_p}+T_j[/tex]

Letting [tex]\alpha=\frac{d_q+d_w}{C_p}+T_j[/tex]

(3) [tex]T_i=\alpha-\frac{U_j(U_i-U_j)}{C_p}[/tex]

Given:
[tex]\frac{dP}{P}=\frac{d\rho}{\rho}+\frac{dT}{T}[/tex]

[tex]\frac{P_i-P_j}{P_j}=\frac{\rho_i-\rho_j}{\rho_j}+\frac{T_i-T_j}{T_j}[/tex]

Simplifying and solving for [tex]\frac{P_i}{P_j}[/tex]

(4) [tex]\frac{P_i}{P_j}=\frac{\rho_i}{\rho_j}+\frac{T_i}{T_j}-1[/tex]

So, eq (2) into (4):

(5) [tex]\beta-U_j(U_i-U_j)=\frac{\rho_i}{\rho_j}+\frac{T_i}{T_j}-1[/tex]

eq 3) into (5):

(6) [tex]\beta-U_j(U_i-U_j)=\frac{\rho_i}{\rho_j}-\frac{U_j(U_i-U_j)}{T_j*C_p}-1[/tex]

eq (1) into (6):

[tex]\beta-U_j(U_i-U_j)=3-\frac{U_i}{U_j} - \frac{A_i}{A_j} + \frac{\alpha}{T_j} - \frac{U_j(U_i-U_j)}{T_j*C_p} -1[/tex]

Gathering all [tex]U_i]/tex] terms:

[tex]-U_j(U_i-U_j)+\frac{U_i}{U_j}+\frac{U_j(U_i-U_j)}{T_j*C_p}=3-\beta-\frac{A_i}{A_j}+\frac{\alpha}{T_j}-1[/tex]

Factoring the [tex]U_i[/tex] term:

[tex]U_i\left(-U_j+\frac{1}{U_j}+\frac{U_j}{T_j*C_p}\right)=2-\beta-\frac{A_i}{A_j}+\frac{\alpha}{T_j}-U_i^2+\frac{U_i^2}{T_j*C_p}[/tex]

[tex]U_i=\left(2-\beta-\frac{A_i}{A_j}+\frac{\alpha}{T_j}-U_j^2+\frac{U_j^2}{T_j*C_p}\right)\left(-U_j+\frac{1}{U_j}+\frac{U_j}{T_j*C_p}\right)^{-1}[/tex]

To find the other values of the parameters my professor suggested to use these equations:

[tex]\rho_i=\frac{\rho_j*U_j*A_j}{U_i*A_i}[/tex]

[tex]T_i=T_j+\frac{.5*(U_j^2-U_i^2)+dq+dshaft}{C_p}[/tex]

[tex]P_i=\rho_i*R*T_i[/tex]

R=283, and [tex]C_p[/tex]=1004

[tex]M_i=\frac{U_i}{\sqrt{\gamma*R*T_i}}[/tex]

It would be very much appreciated if someone could check over my steps. I've solved through these equations like 6 times and I can't figure out what I'm doing wrong. The only thing I can think of is the term [tex]\frac{-\tau_w*C*dx}{\rho{A}}[/tex] in equation (2). I thinking that maybe the denominator term should be [tex]\rho_i*A_i[/tex]. Any suggestions would be greatly appreciated.
 
  • #5


I would approach this problem by first understanding the principles and equations that govern quasi-1D air flow in a duct. This would involve studying fluid mechanics and thermodynamics, specifically the equations of continuity, momentum, and energy conservation.

To calculate the analytical results for this problem, we can use the following equations:

1. Continuity equation: This equation states that the mass flow rate (m_dot) remains constant throughout the duct, and is given by:

m_dot = rho * A * u

Where:
rho is the density of the fluid
A is the cross-sectional area of the duct
u is the velocity of the fluid

2. Momentum equation: This equation states that the change in momentum of the fluid is equal to the sum of all forces acting on it, and is given by:

d(m * u)/dx = A * (P - P_0)

Where:
m is the mass of the fluid
u is the velocity of the fluid
x is the distance along the duct
A is the cross-sectional area of the duct
P is the pressure at a certain point along the duct
P_0 is the reference pressure (in this case, P_0=101325Pa)

3. Energy equation: This equation states that the change in total energy of the fluid is equal to the work done on the fluid (in this case, there is no work interaction) and the heat added or removed from the fluid, and is given by:

d(m * h)/dx = A * (T - T_0)

Where:
m is the mass of the fluid
h is the specific enthalpy of the fluid
x is the distance along the duct
A is the cross-sectional area of the duct
T is the temperature at a certain point along the duct
T_0 is the reference temperature (in this case, T_0=288K)

Using these equations, we can perform a differential analysis, similar to what was done in the MATLAB code, to calculate the exit conditions at each iteration.

To check the results against analytical results, we can compare the calculated values with values obtained from using the isentropic flow equations, which describe the properties of a fluid undergoing a reversible, adiabatic process.

For example, the isentropic flow equations can be used to calculate the exit Mach number (M_exit) and exit temperature (T_exit) as follows:

M_exit = (2/(gamma
 

Related to How to Calculate Analytical Results for Quasi-1D Air Flow in a Duct

1. How do I know if my iteration results are accurate?

The best way to check the accuracy of your iteration results is to compare them to a known benchmark or ground truth. If your results are close to the benchmark, then they are likely accurate. You can also try running your iteration multiple times and comparing the results to see if they are consistent.

2. What is the best way to visualize my iteration results?

There are many different ways to visualize iteration results, depending on the type of data and the goal of your analysis. Some common methods include line graphs, scatter plots, and bar charts. Choose a visualization that best represents your data and makes it easy to interpret.

3. How can I improve my iteration results?

There are a few ways to improve your iteration results. One is to adjust the parameters or inputs of your iteration and see how it affects the outcome. Another is to incorporate more data or refine your algorithms. You can also try different types of iterations to see which one yields the best results.

4. What should I do if my iteration results are not what I expected?

If your iteration results are not what you expected, it could be due to a number of factors such as incorrect data, flawed methodology, or insufficient computing power. Try reviewing your data and methods to identify any potential errors. You can also seek help from other scientists or experts in your field.

5. How can I validate my iteration results?

Validation is an important step in the iteration process to ensure that your results are reliable and accurate. One way to validate your results is to compare them to other methods or models used in the same field. You can also perform sensitivity analysis to see how small changes in inputs affect the results. Additionally, peer review and replication of the study by other scientists can also validate your results.

Similar threads

  • Classical Physics
Replies
6
Views
1K
  • Aerospace Engineering
Replies
2
Views
5K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
743
  • Mechanical Engineering
Replies
1
Views
1K
  • Advanced Physics Homework Help
Replies
5
Views
1K
  • Mechanical Engineering
Replies
8
Views
874
  • Engineering and Comp Sci Homework Help
Replies
2
Views
2K
  • Introductory Physics Homework Help
Replies
1
Views
1K
  • Introductory Physics Homework Help
Replies
1
Views
5K
  • Engineering and Comp Sci Homework Help
Replies
2
Views
4K
Back
Top