comp-flow

Crates.iocomp-flow
lib.rscomp-flow
version0.1.1
sourcesrc
created_at2024-04-14 20:03:54.428288
updated_at2024-04-15 19:47:24.588532
descriptionBasic compressible flow relations
homepage
repositoryhttps://github.com/aureliegrebe/comp-flow
max_upload_size
id1208509
size19,906
Aurélie Grebe (aureliegrebe)

documentation

https://docs.rs/comp-flow/

README

comp-flow

About

This library contains functions for basic compressible flow relations. The naming of the API is heavily inspired by the python library compflow.

The included functions have no input checking or error handling whatsoever. Invalid (non-physical) inputs such as mach < 1 for a shock relation or gamma < 1 may produce non-sensical outputs.

Usage

Add this to your Cargo.toml:

[dependencies]
comp-flow = "0.1"

For API documentation, see docs.rs

Features

  • Isentropic relations calculated from Mach numbers.
  • Inverse isentropic relations calculating Mach numbers.
  • Normal shock relations.
  • Weak oblique shock relations.

To Do

  • Fanno Flow
  • Rayleigh Flow
  • Conical Shock Relations

Contributing

Contributions are welcome, particularly optimizing the functions that make use of Newton's method. If a particular relation that you use is not included, feel free to add it.

Commit count: 3

cargo fmt