Giter Site home page Giter Site logo

xavierdechamps / nozzle_moc_supersonic Goto Github PK

View Code? Open in Web Editor NEW
9.0 3.0 6.0 4.38 MB

A code based on the Method of Characteristics to solve the supersonic flow inside a nozzle

License: GNU General Public License v3.0

MATLAB 100.00%
supersonic characteristics gas-dynamics predictor-corrector nozzle

nozzle_moc_supersonic's Introduction

Nozzle_MOC_supersonic

A code based on the Method of Characteristics to solve the supersonic flow inside a de Laval nozzle.

This Matlab / Octave code solves the flow inside a de Laval nozzle of known shape. The flow is assumed to be steady, two-dimensional, irrotational and supersonic. The methods developed in this project are strongly based on the reference book "Gas Dynamics, Volume II, Multidimensional Flow" by Zucrow Maurice J. and Hoffman Joe D., John Wiley and Sons, 1977.

The main routine is called MOC_2D_steady_irrotational_main.m. It contains all the inputs for the geometry of the nozzle. The geometry of this nozzle contains only the diverging part of the nozzle and a sonic condition is assumed at the throat. The radius of the throat is adapted by the parameter (geom.yt). The downstream region shows first a circular arc of radius (geom.rhod) which extends up to an angle (geom.ta). The diverging section is made of a parabolic curve which extends up to an axial distance (geom.xe) and shows an exit lip angle (geom.te). If (geom.ta) and (geom.te) are equal, then the diverging section is a line.

The initial-value line is chosen as the line where the y-velocity component is equal to zero. This line is discretized by (geom.NI) points and the data is propagated downstream by intersecting left-running and right-running characteristics. The compatibility and characteristic equations are numerically solved by a modified Euler predictor-corrector method to determine the x- and y-velocity components and the location of the new node.

Example of result in the case of a horizontal tangent at the exit lip point

Example of intersections of characteristics

Example of result in the case of conical diverging section

Example of intersections of characteristics

Example of pressure distribution

Example of pressure distribution

nozzle_moc_supersonic's People

Contributors

xavierdechamps avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

nozzle_moc_supersonic's Issues

Get the solution in the exhaust jet

Apply the free pressure boundary point.
Verify if static pressure at nozzle exit lip point exceeds the stagnation pressure (then expansion wave) or is less than the stagnation pressure (oblique shock wave).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.