pub struct NoseCone {
pub shape: NoseShape,
pub length_m: f64,
pub base_radius_m: f64,
pub wall: Wall,
pub shoulder: Option<Shoulder>,
pub material: Material,
}Expand description
A nose cone: a profile with its tip forward, and an optional shoulder aft of its base.
Fields§
§shape: NoseShapeProfile shape.
length_m: f64Length from tip to base, m.
base_radius_m: f64Base radius, m.
wall: WallFilled, or a wall of a thickness.
shoulder: Option<Shoulder>Optional shoulder.
material: MaterialMaterial (bulk).
Implementations§
Source§impl NoseCone
impl NoseCone
Sourcepub fn profile(&self) -> Result<Profile, DesignError>
pub fn profile(&self) -> Result<Profile, DesignError>
Sourcepub fn mass_properties(&self) -> Result<MassProperties, DesignError>
pub fn mass_properties(&self) -> Result<MassProperties, DesignError>
Mass properties in the nose cone’s frame (origin at the tip).
§Errors
Geometry, material and numerical errors from the profile, the solid and the shoulder.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NoseCone
impl<'de> Deserialize<'de> for NoseCone
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 NoseCone
impl JsonSchema for NoseCone
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 moreimpl StructuralPartialEq for NoseCone
Auto Trait Implementations§
impl Freeze for NoseCone
impl RefUnwindSafe for NoseCone
impl Send for NoseCone
impl Sync for NoseCone
impl Unpin for NoseCone
impl UnsafeUnpin for NoseCone
impl UnwindSafe for NoseCone
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