pub struct ThermalAnalyzer { /* private fields */ }Expand description
Thermal analyzer for thermal engineering analysis
Implementations§
Source§impl ThermalAnalyzer
impl ThermalAnalyzer
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates an analyzer with default heat-transfer, thermal-stress, and thermal-analysis state.
Sourcepub fn attach_physics_simulation(
&mut self,
lib: Option<Arc<Mutex<PhysicsSimulationLibrary>>>,
)
pub fn attach_physics_simulation( &mut self, lib: Option<Arc<Mutex<PhysicsSimulationLibrary>>>, )
Attaches (or detaches with None) a physics-simulation library handle used by the conduction solver path.
Sourcepub fn attach_statistical_computing(
&mut self,
lib: Option<Arc<Mutex<StatisticalComputingLibrary>>>,
)
pub fn attach_statistical_computing( &mut self, lib: Option<Arc<Mutex<StatisticalComputingLibrary>>>, )
Attach the Phase 2 statistical-computing library for stochastic thermal analysis.
Sourcepub fn initialize(&mut self) -> Result<(), EngineeringError>
pub fn initialize(&mut self) -> Result<(), EngineeringError>
No-op returning Ok(()) — in-memory state needs no setup.
Sourcepub fn validate_model(
&self,
model: &EngineeringModel,
) -> Result<(), EngineeringError>
pub fn validate_model( &self, model: &EngineeringModel, ) -> Result<(), EngineeringError>
Fails closed (ValidationError) when the model has no dimensions.
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>
Runs real 1-D steady-state conduction: Fourier’s law on a finite-difference mesh via the Thomas algorithm, driven by model conductivity/length/BCs (Temperature→Dirichlet, HeatFlux→Neumann). Ill-posed input → InsufficientData, never a fabricated field. 2-D/3-D FE thermal is out of scope and flagged, not faked.
Sourcepub fn heat_transfer(&self) -> &HeatTransfer
pub fn heat_transfer(&self) -> &HeatTransfer
Borrow the heat-transfer sub-component.
Sourcepub fn heat_transfer_mut(&mut self) -> &mut HeatTransfer
pub fn heat_transfer_mut(&mut self) -> &mut HeatTransfer
Mutably borrow the heat-transfer sub-component.
Sourcepub fn thermal_stress(&self) -> &ThermalStress
pub fn thermal_stress(&self) -> &ThermalStress
Borrow the thermal-stress sub-component.
Sourcepub fn thermal_stress_mut(&mut self) -> &mut ThermalStress
pub fn thermal_stress_mut(&mut self) -> &mut ThermalStress
Mutably borrow the thermal-stress sub-component.
Sourcepub fn thermal_analysis(&self) -> &ThermalAnalysis
pub fn thermal_analysis(&self) -> &ThermalAnalysis
Borrow the thermal-analysis sub-component.
Sourcepub fn thermal_analysis_mut(&mut self) -> &mut ThermalAnalysis
pub fn thermal_analysis_mut(&mut self) -> &mut ThermalAnalysis
Mutably borrow the thermal-analysis sub-component.
Auto Trait Implementations§
impl Freeze for ThermalAnalyzer
impl RefUnwindSafe for ThermalAnalyzer
impl Send for ThermalAnalyzer
impl Sync for ThermalAnalyzer
impl Unpin for ThermalAnalyzer
impl UnsafeUnpin for ThermalAnalyzer
impl UnwindSafe for ThermalAnalyzer
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