pub struct MultiLoadTopOpt {
pub simp: SiMP,
pub filter: FilteringMethods,
pub load_cases: Vec<LoadCase>,
pub move_limit: f64,
pub damping: f64,
pub compliance_history: Vec<f64>,
}Expand description
Multi-load case topology optimization.
Minimizes a weighted combination of compliances across multiple load cases.
Fields§
§simp: SiMPSIMP model.
filter: FilteringMethodsFilter.
load_cases: Vec<LoadCase>Load cases.
move_limit: f64Move limit.
damping: f64Damping for OC update.
compliance_history: Vec<f64>Compliance history per iteration.
Implementations§
Source§impl MultiLoadTopOpt
impl MultiLoadTopOpt
Sourcepub fn new(
simp: SiMP,
filter: FilteringMethods,
load_cases: Vec<LoadCase>,
) -> Self
pub fn new( simp: SiMP, filter: FilteringMethods, load_cases: Vec<LoadCase>, ) -> Self
Creates a new MultiLoadTopOpt.
Sourcepub fn weighted_compliance(&self, density: &[f64]) -> f64
pub fn weighted_compliance(&self, density: &[f64]) -> f64
Computes weighted compliance given current density field.
Sourcepub fn aggregated_sensitivity(&self, density: &[f64]) -> Vec<f64>
pub fn aggregated_sensitivity(&self, density: &[f64]) -> Vec<f64>
Computes aggregated sensitivity for all load cases.
Trait Implementations§
Source§impl Clone for MultiLoadTopOpt
impl Clone for MultiLoadTopOpt
Source§fn clone(&self) -> MultiLoadTopOpt
fn clone(&self) -> MultiLoadTopOpt
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 moreAuto Trait Implementations§
impl Freeze for MultiLoadTopOpt
impl RefUnwindSafe for MultiLoadTopOpt
impl Send for MultiLoadTopOpt
impl Sync for MultiLoadTopOpt
impl Unpin for MultiLoadTopOpt
impl UnsafeUnpin for MultiLoadTopOpt
impl UnwindSafe for MultiLoadTopOpt
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.