Vulcan
Aerospace Engineering Utilities Built on Janus
Loading...
Searching...
No Matches
AltitudeThrust.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <janus/janus.hpp>
4
5namespace vulcan::propulsion {
6
27template <typename Scalar>
28Scalar altitude_thrust(const Scalar &F_vac, const Scalar &P_atm, double P_exit,
29 double A_exit) {
30 // Suppress unused parameter warning for P_exit if needed,
31 // or we could use it if we were given F_mom instead of F_vac.
32 (void)P_exit;
33 return F_vac - P_atm * A_exit;
34}
35
47template <typename Scalar>
48Scalar thrust_coefficient(const Scalar &thrust, const Scalar &P_chamber,
49 double A_throat) {
50 return thrust / (P_chamber * A_throat);
51}
52
53} // namespace vulcan::propulsion
Propulsion utilities for rocket, air-breathing, and electric systems.
Definition AirBreathing.hpp:5
Scalar thrust_coefficient(const Scalar &thrust, const Scalar &P_chamber, double A_throat)
Calculates the thrust coefficient.
Definition AltitudeThrust.hpp:48
Scalar altitude_thrust(const Scalar &F_vac, const Scalar &P_atm, double P_exit, double A_exit)
Calculates thrust adjusted for ambient pressure (altitude).
Definition AltitudeThrust.hpp:28