Question: matlab code for This highly compressible transonic unsteady flow is produced in the long one - dimensional tube by sudden breakdown of the diaphragm, separating
matlab code for
This highly compressible transonic unsteady flow is produced in the long onedimensional tube by sudden breakdown of the diaphragm, separating two initial gas states at different pressures and densities.
The viscous effects are neglected, and it is assumed that there are no shock wave reflections at the tube ends long tube assumption
After the bursting of the diaphragm at t the pressure discontinuity shock wave propagates to the right in the lowpressure gas and simultaneously an expansion fan propagates to the left in the highpressure gas see Figure The D Euler equations describe the flow.
The D Euler equations describe the flow
The initial conditions at t are given by
The computational domain is
The computational domain is
The boundary conditions at x and xxo may be set equal to the initial conditions in undisturbed gas Left or Right state, respectively
Consider two cases in this assignment:
Case : PR x Pa R kgm tf s
Assume PL Pa atmospheric pressure L kgm velocities ULUR and xm
Model the D flow from t to ttf using the MacCormack twostep predictorcorrector scheme see Textbook, rd edition, p ; th edition pp for grid nodes per computational domain that is intervals
Note: To choose the right time step, take care about stability condition!
Obtain numerical solution for N and N grid nodes per computational domain. Present computed pressure distribution ppx for both numerical methods and all three numerical grids.
Present velocity distribution ux and temperature distribution Tx for the finest grid.
Report about possible oscillations in the solution for Case :
Case : PR x Pa R kgm tf s
For both cases and PL Pa atmospheric pressure L kgm
Notes:
The stability requirement that the Courant number needs to be less than one? yes. It is the same as LaxWendroff, see Textbook rd edition, p or th editionp and lecture notes.
Take maximum Courant equal to for safety.
The speed of sound is csqrt kRT where k R gas constant for air, T static temperature. See my lecture notes LectureCFD Methods for Compressible Flow and Shock Wave for details.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
