Skip to main content

ProcessWindow

Struct ProcessWindow 

Source
pub struct ProcessWindow {
    pub theoretical_density: f64,
    pub e_low: f64,
    pub e_high: f64,
    pub hardness_full_dense: f64,
    pub hall_petch_k: f64,
    pub grain_size_opt: f64,
}
Expand description

Process-window model mapping energy density to part quality metrics.

Fields§

§theoretical_density: f64

Material density of the fully dense material (kg/m³).

§e_low: f64

Lower bound energy density for good densification (J/m³).

§e_high: f64

Upper bound energy density before keyhole formation (J/m³).

§hardness_full_dense: f64

Vickers hardness at theoretical density (HV).

§hall_petch_k: f64

Fitted Hall–Petch coefficient (HV·m^0.5).

§grain_size_opt: f64

Grain size at optimal energy density (m).

Implementations§

Source§

impl ProcessWindow

Source

pub fn new( theoretical_density: f64, e_low: f64, e_high: f64, hardness_full_dense: f64, hall_petch_k: f64, grain_size_opt: f64, ) -> Self

Construct a ProcessWindow.

Source

pub fn relative_density(&self, energy_density: f64) -> f64

Predicted relative density (0–1) as a function of energy_density (J/m³).

Uses a sigmoidal model: ρ_rel = 1 / (1 + exp(−k · (E − E_mid))).

Source

pub fn hardness_prediction(&self, energy_density: f64, grain_size: f64) -> f64

Predicted Vickers hardness at a given energy_density (J/m³).

Combines density-based degradation with a Hall–Petch grain-size term.

Source

pub fn is_in_window(&self, energy_density: f64) -> bool

True if energy_density lies within the acceptable process window.

Source

pub fn window_width(&self) -> f64

Window width in J/m³.

Trait Implementations§

Source§

impl Clone for ProcessWindow

Source§

fn clone(&self) -> ProcessWindow

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ProcessWindow

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.