|
[Sponsors] |
June 6, 2020, 19:40 |
Steady flow nozzle
|
#1 |
New Member
Deli
Join Date: Jun 2020
Posts: 1
Rep Power: 0 |
Hi
I am a student in mechanical engineering and for my homework, I'm willing to solve 1D steady flow in a convergent-divergent nozzle with MATLAB, I have total pressure and total temperature at inlet and static pressure at the outlet as boundary condition. It should be a normal shock in the divergent part and I have to capture it. for solving this flow I utilize the MacCormack method and when I check my answers in the first iteration there is no problem or any unnormal number but after 915 iterations I face negative temperature and also complex numbers. I would be grateful if anyone could help me. |
|
June 7, 2020, 13:34 |
|
#2 |
Senior Member
duri
Join Date: May 2010
Posts: 245
Rep Power: 17 |
Divergence could be due to stability or boundary condition. A quick look in the code raised some doubts on time step calculation. It is not clear how those numbers are calculated, it should be simple (fabs(v)+a) the viscous term can be ignored for this case as it is less restrictive.
On the inlet boundary condition it is not clear (I haven't checked it thoroughly) how the mach number is calculated. It should be straight forward. Use energy equation to estimate static temperature from velocity and total temperature. With this any other variable can be estimated easily unless specific heat capacities are functions of temperature and pressure. |
|
Tags |
maccormack, matlab codes for cfd, nozzle flow, phase error, unstability |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
About Some Concepts:Laminar flow, turbulent flow, steady flow and time-dependent flow | Jing | Main CFD Forum | 8 | October 5, 2018 18:02 |
calculate a nozzle flow using rhoCentralFoam | hg2lf | OpenFOAM | 0 | October 25, 2012 22:26 |
Flow Across Tube Banks - Transient vs Steady State | HeatTransferFan | CFX | 11 | September 28, 2012 15:21 |
How to determine whether flow is steady or unstead | Maliya,Barth | Main CFD Forum | 7 | October 7, 2006 03:26 |
fluid flow fundas | ram | Main CFD Forum | 5 | June 17, 2000 22:31 |