pub struct StructuralAnalyzer { /* private fields */ }Expand description
Structural analyzer for structural engineering analysis
Implementations§
Source§impl StructuralAnalyzer
impl StructuralAnalyzer
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a StructuralAnalyzer with empty registries / default configuration.
Sourcepub fn attach_linear_algebra(
&mut self,
lib: Option<Arc<Mutex<LinearAlgebraLibrary>>>,
)
pub fn attach_linear_algebra( &mut self, lib: Option<Arc<Mutex<LinearAlgebraLibrary>>>, )
Attach the Phase 2 linear-algebra library for FEA matrix operations.
Sourcepub fn store_model(&mut self, model: EngineeringModel)
pub fn store_model(&mut self, model: EngineeringModel)
Stores the model in the in-memory registry keyed by model_id.
Sourcepub fn initialize(&mut self) -> Result<(), EngineeringError>
pub fn initialize(&mut self) -> Result<(), EngineeringError>
Readies StructuralAnalyzer; initializes any owned sub-engines (no-op for leaf structs).
Sourcepub fn validate_model(
&self,
model: &EngineeringModel,
) -> Result<(), EngineeringError>
pub fn validate_model( &self, model: &EngineeringModel, ) -> Result<(), EngineeringError>
Checks the model has at least geometry dimensions; ValidationError otherwise.
Sourcepub fn analyze(
&mut self,
model: &EngineeringModel,
analysis_type: AnalysisType,
) -> Result<AnalysisResults, EngineeringError>
pub fn analyze( &mut self, model: &EngineeringModel, analysis_type: AnalysisType, ) -> Result<AnalysisResults, EngineeringError>
First-principles axial strength-of-materials analysis: σ = F/A,
ε = σ/E, δ = F·L/(A·E), factor of safety σ_yield/|σ|. Dispatches
Thermal to ThermalAnalyzer and Vibration to a single-element
solve_modal_eigen. Missing materials/geometry/loads return
InsufficientData — never a fabricated constant.
Sourcepub fn fem_static(
&self,
model: &FeModel,
) -> Result<FeStaticResult, EngineeringError>
pub fn fem_static( &self, model: &FeModel, ) -> Result<FeStaticResult, EngineeringError>
Real finite-element linear-static solve of an explicit fem::FeModel
(assemble K u = F, apply displacement BCs, solve via LU, recover reactions
and element axial forces). This is the direct FE entry point (the abstract
analyze facade interprets a prismatic member; this takes a full mesh).
Sourcepub fn list_analysis_types(&self) -> Vec<String>
pub fn list_analysis_types(&self) -> Vec<String>
Lists the supported analysis types (LinearStatic…Buckling).
Sourcepub fn get_model(&self, model_id: &str) -> Option<EngineeringModel>
pub fn get_model(&self, model_id: &str) -> Option<EngineeringModel>
Returns a clone of the stored model, or None if absent.
Sourcepub fn get_performance_metrics(&self) -> EngineeringPerformanceMetrics
pub fn get_performance_metrics(&self) -> EngineeringPerformanceMetrics
Returns a snapshot of the analyzer’s performance metrics.
Sourcepub fn buckling_analysis(&self) -> &BucklingAnalysis
pub fn buckling_analysis(&self) -> &BucklingAnalysis
Borrow the buckling-analysis sub-analyzer.
Sourcepub fn buckling_analysis_mut(&mut self) -> &mut BucklingAnalysis
pub fn buckling_analysis_mut(&mut self) -> &mut BucklingAnalysis
Mutably borrow the buckling-analysis sub-analyzer.
Sourcepub fn vibration_analysis(&self) -> &VibrationAnalysis
pub fn vibration_analysis(&self) -> &VibrationAnalysis
Borrow the vibration-analysis sub-analyzer.
Sourcepub fn vibration_analysis_mut(&mut self) -> &mut VibrationAnalysis
pub fn vibration_analysis_mut(&mut self) -> &mut VibrationAnalysis
Mutably borrow the vibration-analysis sub-analyzer.
Auto Trait Implementations§
impl Freeze for StructuralAnalyzer
impl RefUnwindSafe for StructuralAnalyzer
impl Send for StructuralAnalyzer
impl Sync for StructuralAnalyzer
impl Unpin for StructuralAnalyzer
impl UnsafeUnpin for StructuralAnalyzer
impl UnwindSafe for StructuralAnalyzer
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>,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
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> ⓘ
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