pub struct DragOverride {
pub coefficient: f64,
pub include_children: bool,
}Expand description
A drag coefficient stated in place of the one a component’s geometry gives: OpenRocket’s
drag-coefficient override (<overridecd>, <overridesubcomponentscd>), as OpenRocket 24.12
flies it, measured on probe designs (validation/oracles/openrocket/drag_override.py,
ADR-167):
- The coefficient is on the rocket’s reference area and is the same at every Mach number.
- It replaces all the component’s own zero-lift drag: skin friction, pressure drag and the base drag of its aft face, whether that is the rocket’s base or a step down to the part behind it. A step up at its fore end is its own face, and goes too.
- It counts once per instance: per fin of a fin set, per lug or button of a set.
- On a tube fin set, a pod set or a part in a pod, or covering a pod set, it was not measured,
and
hpr-aerorefuses it by name. - With
include_children, the parts attached to the component have no drag of their own. - On a part inside the body (an inner tube, a ring, a mass) it does nothing, as such a part has no drag.
- On a stage, it is added to the rocket’s drag; with
include_children, it replaces the drag of everything in the stage.
Fields§
§coefficient: f64The zero-lift drag coefficient, on the rocket’s reference area, per instance. Zero is a value: no drag at all.
include_children: boolWhether the parts attached to the component (or everything in the stage) lose their own drag too.
Trait Implementations§
Source§impl Clone for DragOverride
impl Clone for DragOverride
Source§fn clone(&self) -> DragOverride
fn clone(&self) -> DragOverride
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 DragOverride
Source§impl Debug for DragOverride
impl Debug for DragOverride
Source§impl<'de> Deserialize<'de> for DragOverride
impl<'de> Deserialize<'de> for DragOverride
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for DragOverride
impl JsonSchema for DragOverride
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for DragOverride
impl PartialEq for DragOverride
Source§fn eq(&self, other: &DragOverride) -> bool
fn eq(&self, other: &DragOverride) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DragOverride
impl Serialize for DragOverride
impl StructuralPartialEq for DragOverride
Auto Trait Implementations§
impl Freeze for DragOverride
impl RefUnwindSafe for DragOverride
impl Send for DragOverride
impl Sync for DragOverride
impl Unpin for DragOverride
impl UnsafeUnpin for DragOverride
impl UnwindSafe for DragOverride
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