A collection of physics equations and simulations implemented in Rust.
src/main.rs
: Entry point and module declarations.src/bernoulli_equation.rs
: Bernoulli's equation for fluid dynamics.src/clausius_clapeyron.rs
: Clausius-Clapeyron equation for phase transitions.src/ideal_gas_law.rs
: Ideal gas law calculations.src/newton_graviational_law.rs
: Newton's law of gravitation.src/mass_thread.rs
: Multithreaded mass calculations using Newton's law.
-
Build the project:
cargo build
-
Run an example module:
cargo run --bin bernoulli_equation
Or run the main entry point:
cargo run
-
Run tests:
cargo test
MIT License