pub struct ElementLibrary { /* private fields */ }Expand description
Element library
Implementations§
Source§impl ElementLibrary
impl ElementLibrary
pub fn new() -> Self
Sourcepub fn initialize(&mut self) -> Result<(), EngineeringError>
pub fn initialize(&mut self) -> Result<(), EngineeringError>
Populate the library with the standard finite-element types used in structural / mechanical FEA. Each element is registered with a default isotropic material (steel-like), unit geometry, and the DOF set appropriate to its kinematics.
Sourcepub fn get_element(&self, name: &str) -> Option<&Element>
pub fn get_element(&self, name: &str) -> Option<&Element>
Look up a registered element definition by name.
Sourcepub fn get_properties(&self, name: &str) -> Option<&ElementProperties>
pub fn get_properties(&self, name: &str) -> Option<&ElementProperties>
Look up the properties registered for an element by name.
Sourcepub fn list_elements(&self) -> Vec<String>
pub fn list_elements(&self) -> Vec<String>
List the names of all registered elements.
Auto Trait Implementations§
impl Freeze for ElementLibrary
impl RefUnwindSafe for ElementLibrary
impl Send for ElementLibrary
impl Sync for ElementLibrary
impl Unpin for ElementLibrary
impl UnsafeUnpin for ElementLibrary
impl UnwindSafe for ElementLibrary
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more