pub struct ReshapedDrag {
pub scale: f64,
pub bump: f64,
pub slope: f64,
}Expand description
Set B’s drag: HPR Sim’s zero-lift drag times scale · (1 + a·exp(−((M − 1)/0.2)²) + b·M), a
transonic rise and a slope shaped differently from HPR Sim’s.
Fields§
§scale: f64The constant factor.
bump: f64The transonic bump’s height.
slope: f64The slope per unit Mach number.
Implementations§
Trait Implementations§
Source§impl Clone for ReshapedDrag
impl Clone for ReshapedDrag
Source§fn clone(&self) -> ReshapedDrag
fn clone(&self) -> ReshapedDrag
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ReshapedDrag
Source§impl Debug for ReshapedDrag
impl Debug for ReshapedDrag
Source§impl DragModel for ReshapedDrag
impl DragModel for ReshapedDrag
Source§fn zero_lift_drag(&self, query: &DragQuery<'_>) -> Result<f64, AeroError>
fn zero_lift_drag(&self, query: &DragQuery<'_>) -> Result<f64, AeroError>
The whole rocket’s zero-lift drag coefficient
C_D0 at query’s flow, on the rocket’s
reference area (DragQuery::reference_area_m2). From HPR Sim’s buildup that is
Drag::zero_lift_coefficient, not Drag::axial_coefficient, which is already scaled
for the angle of attack. Read moreAuto Trait Implementations§
impl Freeze for ReshapedDrag
impl RefUnwindSafe for ReshapedDrag
impl Send for ReshapedDrag
impl Sync for ReshapedDrag
impl Unpin for ReshapedDrag
impl UnsafeUnpin for ReshapedDrag
impl UnwindSafe for ReshapedDrag
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more