CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Steady flow nozzle

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 6, 2020, 19:40
Default Steady flow nozzle
  #1
New Member
 
Deli
Join Date: Jun 2020
Posts: 1
Rep Power: 0
Deli is on a distinguished road
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.
Attached Files
File Type: txt ConDive nozzle.txt (9.1 KB, 6 views)
Deli is offline   Reply With Quote

Old   June 7, 2020, 13:34
Default
  #2
Senior Member
 
duri
Join Date: May 2010
Posts: 245
Rep Power: 17
duri is on a distinguished road
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.
duri is offline   Reply With Quote

Reply

Tags
maccormack, matlab codes for cfd, nozzle flow, phase error, unstability


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 16:23.