pub struct Quantity<U = Dimensionless>(/* private fields */);Expand description
A scalar carrying a physical unit.
Implementations§
Source§impl<U> Quantity<U>
impl<U> Quantity<U>
Sourcepub const fn value(&self) -> TensorRank0
pub const fn value(&self) -> TensorRank0
Returns the value with its unit discarded.
Sourcepub const fn value_as<V>(&self) -> TensorRank0where
U: Is<V>,
pub const fn value_as<V>(&self) -> TensorRank0where
U: Is<V>,
Returns the value, stating the unit being discarded.
Source§impl<U> Quantity<U>
impl<U> Quantity<U>
Sourcepub fn differs(self, quantity: Self, epsilon: TensorRank0) -> bool
pub fn differs(self, quantity: Self, epsilon: TensorRank0) -> bool
Returns whether two quantities differ by more than the epsilon relatively, at least one of them being large enough for that ratio to mean anything.
Sourcepub fn differs_severely(self, quantity: Self, epsilon: TensorRank0) -> bool
pub fn differs_severely(self, quantity: Self, epsilon: TensorRank0) -> bool
Returns whether two quantities differ absolutely as well as relatively.
Sourcepub fn total_cmp(&self, quantity: &Self) -> Ordering
pub fn total_cmp(&self, quantity: &Self) -> Ordering
Returns how two quantities of the same unit order, totally.
Source§impl<U> Quantity<U>where
U: UnitHalves,
impl<U> Quantity<U>where
U: UnitHalves,
Sourcepub const fn halves(
self,
) -> (Quantity<<U as UnitHalves>::First>, Quantity<<U as UnitHalves>::Second>)
pub const fn halves( self, ) -> (Quantity<<U as UnitHalves>::First>, Quantity<<U as UnitHalves>::Second>)
Returns the quantity twice over, as the units the halves of a tuple take from it.
Source§impl Quantity<Dimensionless>
impl Quantity<Dimensionless>
Sourcepub fn powf(self, n: TensorRank0) -> Self
pub fn powf(self, n: TensorRank0) -> Self
Raises to a power.
Source§impl Quantity<Length>
impl Quantity<Length>
Sourcepub const fn in_meters(&self) -> TensorRank0
pub const fn in_meters(&self) -> TensorRank0
How many metres the quantity is.
Sourcepub const fn in_millimeters(&self) -> TensorRank0
pub const fn in_millimeters(&self) -> TensorRank0
How many millimetres the quantity is.
Sourcepub const fn in_micrometers(&self) -> TensorRank0
pub const fn in_micrometers(&self) -> TensorRank0
How many micrometres the quantity is.
Sourcepub const fn in_nanometers(&self) -> TensorRank0
pub const fn in_nanometers(&self) -> TensorRank0
How many nanometres the quantity is.
Sourcepub const fn in_centimeters(&self) -> TensorRank0
pub const fn in_centimeters(&self) -> TensorRank0
How many centimetres the quantity is.
Sourcepub const fn in_kilometers(&self) -> TensorRank0
pub const fn in_kilometers(&self) -> TensorRank0
How many kilometres the quantity is.
Sourcepub const fn in_inches(&self) -> TensorRank0
pub const fn in_inches(&self) -> TensorRank0
How many inches the quantity is.
Sourcepub const fn in_feet(&self) -> TensorRank0
pub const fn in_feet(&self) -> TensorRank0
How many feet the quantity is.
Source§impl Quantity<Area>
impl Quantity<Area>
Sourcepub const fn in_square_meters(&self) -> TensorRank0
pub const fn in_square_meters(&self) -> TensorRank0
How many square metres the quantity is.
Sourcepub const fn in_square_millimeters(&self) -> TensorRank0
pub const fn in_square_millimeters(&self) -> TensorRank0
How many square millimetres the quantity is.
Sourcepub const fn in_square_centimeters(&self) -> TensorRank0
pub const fn in_square_centimeters(&self) -> TensorRank0
How many square centimetres the quantity is.
Source§impl Quantity<Volume>
impl Quantity<Volume>
Sourcepub const fn in_cubic_meters(&self) -> TensorRank0
pub const fn in_cubic_meters(&self) -> TensorRank0
How many cubic metres the quantity is.
Sourcepub const fn in_cubic_millimeters(&self) -> TensorRank0
pub const fn in_cubic_millimeters(&self) -> TensorRank0
How many cubic millimetres the quantity is.
Sourcepub const fn in_cubic_centimeters(&self) -> TensorRank0
pub const fn in_cubic_centimeters(&self) -> TensorRank0
How many cubic centimetres the quantity is.
Sourcepub const fn in_liters(&self) -> TensorRank0
pub const fn in_liters(&self) -> TensorRank0
How many litres the quantity is.
Source§impl Quantity<Time>
impl Quantity<Time>
Sourcepub const fn in_seconds(&self) -> TensorRank0
pub const fn in_seconds(&self) -> TensorRank0
How many seconds the quantity is.
Sourcepub const fn in_milliseconds(&self) -> TensorRank0
pub const fn in_milliseconds(&self) -> TensorRank0
How many milliseconds the quantity is.
Sourcepub const fn in_microseconds(&self) -> TensorRank0
pub const fn in_microseconds(&self) -> TensorRank0
How many microseconds the quantity is.
Sourcepub const fn in_minutes(&self) -> TensorRank0
pub const fn in_minutes(&self) -> TensorRank0
How many minutes the quantity is.
Sourcepub const fn in_hours(&self) -> TensorRank0
pub const fn in_hours(&self) -> TensorRank0
How many hours the quantity is.
Source§impl Quantity<Rate>
impl Quantity<Rate>
Sourcepub const fn in_per_second(&self) -> TensorRank0
pub const fn in_per_second(&self) -> TensorRank0
How many reciprocal seconds the quantity is.
Sourcepub const fn in_per_minute(&self) -> TensorRank0
pub const fn in_per_minute(&self) -> TensorRank0
How many reciprocal minutes the quantity is.
Sourcepub const fn in_per_hour(&self) -> TensorRank0
pub const fn in_per_hour(&self) -> TensorRank0
How many reciprocal hours the quantity is.
Sourcepub const fn in_hertz(&self) -> TensorRank0
pub const fn in_hertz(&self) -> TensorRank0
How many hertz the quantity is.
Source§impl Quantity<Stress>
impl Quantity<Stress>
Sourcepub const fn in_pascals(&self) -> TensorRank0
pub const fn in_pascals(&self) -> TensorRank0
How many pascals the quantity is.
Sourcepub const fn in_kilopascals(&self) -> TensorRank0
pub const fn in_kilopascals(&self) -> TensorRank0
How many kilopascals the quantity is.
Sourcepub const fn in_megapascals(&self) -> TensorRank0
pub const fn in_megapascals(&self) -> TensorRank0
How many megapascals the quantity is.
Sourcepub const fn in_gigapascals(&self) -> TensorRank0
pub const fn in_gigapascals(&self) -> TensorRank0
How many gigapascals the quantity is.
Sourcepub const fn in_bars(&self) -> TensorRank0
pub const fn in_bars(&self) -> TensorRank0
How many bars the quantity is.
Sourcepub const fn in_psi(&self) -> TensorRank0
pub const fn in_psi(&self) -> TensorRank0
How many pounds per square inch the quantity is.
Sourcepub const fn in_ksi(&self) -> TensorRank0
pub const fn in_ksi(&self) -> TensorRank0
How many kips per square inch the quantity is.
Source§impl Quantity<Force>
impl Quantity<Force>
Sourcepub const fn in_newtons(&self) -> TensorRank0
pub const fn in_newtons(&self) -> TensorRank0
How many newtons the quantity is.
Sourcepub const fn in_millinewtons(&self) -> TensorRank0
pub const fn in_millinewtons(&self) -> TensorRank0
How many millinewtons the quantity is.
Sourcepub const fn in_kilonewtons(&self) -> TensorRank0
pub const fn in_kilonewtons(&self) -> TensorRank0
How many kilonewtons the quantity is.
Sourcepub const fn in_meganewtons(&self) -> TensorRank0
pub const fn in_meganewtons(&self) -> TensorRank0
How many meganewtons the quantity is.
Sourcepub const fn in_pounds_force(&self) -> TensorRank0
pub const fn in_pounds_force(&self) -> TensorRank0
How many pounds force the quantity is.
Source§impl Quantity<Energy>
impl Quantity<Energy>
Sourcepub const fn in_joules(&self) -> TensorRank0
pub const fn in_joules(&self) -> TensorRank0
How many joules the quantity is.
Sourcepub const fn in_millijoules(&self) -> TensorRank0
pub const fn in_millijoules(&self) -> TensorRank0
How many millijoules the quantity is.
Sourcepub const fn in_kilojoules(&self) -> TensorRank0
pub const fn in_kilojoules(&self) -> TensorRank0
How many kilojoules the quantity is.
Sourcepub const fn in_electronvolts(&self) -> TensorRank0
pub const fn in_electronvolts(&self) -> TensorRank0
How many electronvolts the quantity is.
Source§impl Quantity<Entropy>
impl Quantity<Entropy>
Sourcepub const fn in_joules_per_kelvin(&self) -> TensorRank0
pub const fn in_joules_per_kelvin(&self) -> TensorRank0
How many joules per kelvin the quantity is.
Source§impl Quantity<Action>
impl Quantity<Action>
Sourcepub const fn in_joule_seconds(&self) -> TensorRank0
pub const fn in_joule_seconds(&self) -> TensorRank0
How many joule seconds the quantity is.
Source§impl Quantity<Amount>
impl Quantity<Amount>
Sourcepub const fn in_moles(&self) -> TensorRank0
pub const fn in_moles(&self) -> TensorRank0
How many moles the quantity is.
Sourcepub const fn in_millimoles(&self) -> TensorRank0
pub const fn in_millimoles(&self) -> TensorRank0
How many millimoles the quantity is.
Source§impl Quantity<ReciprocalAmount>
impl Quantity<ReciprocalAmount>
Sourcepub const fn in_per_mole(&self) -> TensorRank0
pub const fn in_per_mole(&self) -> TensorRank0
How many reciprocal moles the quantity is.
Source§impl Quantity<MolarEntropy>
impl Quantity<MolarEntropy>
Sourcepub const fn in_joules_per_mole_kelvin(&self) -> TensorRank0
pub const fn in_joules_per_mole_kelvin(&self) -> TensorRank0
How many joules per mole kelvin the quantity is.
Source§impl Quantity<MolarEnergy>
impl Quantity<MolarEnergy>
Sourcepub const fn in_joules_per_mole(&self) -> TensorRank0
pub const fn in_joules_per_mole(&self) -> TensorRank0
How many joules per mole the quantity is.
Sourcepub const fn in_kilojoules_per_mole(&self) -> TensorRank0
pub const fn in_kilojoules_per_mole(&self) -> TensorRank0
How many kilojoules per mole the quantity is.
Source§impl Quantity<ForcePerLength>
impl Quantity<ForcePerLength>
Sourcepub const fn in_newtons_per_meter(&self) -> TensorRank0
pub const fn in_newtons_per_meter(&self) -> TensorRank0
How many newtons per metre the quantity is.
Sourcepub const fn in_piconewtons_per_nanometer(&self) -> TensorRank0
pub const fn in_piconewtons_per_nanometer(&self) -> TensorRank0
How many piconewtons per nanometre the quantity is.
Source§impl Quantity<Velocity>
impl Quantity<Velocity>
Sourcepub const fn in_meters_per_second(&self) -> TensorRank0
pub const fn in_meters_per_second(&self) -> TensorRank0
How many metres per second the quantity is.
Sourcepub const fn in_millimeters_per_second(&self) -> TensorRank0
pub const fn in_millimeters_per_second(&self) -> TensorRank0
How many millimetres per second the quantity is.
Sourcepub const fn in_kilometers_per_hour(&self) -> TensorRank0
pub const fn in_kilometers_per_hour(&self) -> TensorRank0
How many kilometres per hour the quantity is.
Source§impl Quantity<Charge>
impl Quantity<Charge>
Sourcepub const fn in_coulombs(&self) -> TensorRank0
pub const fn in_coulombs(&self) -> TensorRank0
How many coulombs the quantity is.
Source§impl Quantity<Viscosity>
impl Quantity<Viscosity>
Sourcepub const fn in_pascal_seconds(&self) -> TensorRank0
pub const fn in_pascal_seconds(&self) -> TensorRank0
How many pascal seconds the quantity is.
Sourcepub const fn in_poise(&self) -> TensorRank0
pub const fn in_poise(&self) -> TensorRank0
How many poise the quantity is.
Sourcepub const fn in_centipoise(&self) -> TensorRank0
pub const fn in_centipoise(&self) -> TensorRank0
How many centipoise the quantity is.
Source§impl Quantity<Temperature>
impl Quantity<Temperature>
Sourcepub const fn in_kelvin(&self) -> TensorRank0
pub const fn in_kelvin(&self) -> TensorRank0
How many kelvin the quantity is.
Source§impl Quantity<ReciprocalTemperature>
impl Quantity<ReciprocalTemperature>
Sourcepub const fn in_per_kelvin(&self) -> TensorRank0
pub const fn in_per_kelvin(&self) -> TensorRank0
How many reciprocal kelvin the quantity is.
Sourcepub const fn in_per_celsius(&self) -> TensorRank0
pub const fn in_per_celsius(&self) -> TensorRank0
How many reciprocal degrees celsius the quantity is.
Source§impl Quantity<StressPerLength>
impl Quantity<StressPerLength>
Sourcepub const fn in_pascals_per_meter(&self) -> TensorRank0
pub const fn in_pascals_per_meter(&self) -> TensorRank0
How many pascals per metre the quantity is.
Sourcepub const fn in_megapascals_per_millimeter(&self) -> TensorRank0
pub const fn in_megapascals_per_millimeter(&self) -> TensorRank0
How many megapascals per millimetre the quantity is.
Source§impl Quantity<PowerPerLengthTemperature>
impl Quantity<PowerPerLengthTemperature>
Sourcepub const fn in_watts_per_meter_kelvin(&self) -> TensorRank0
pub const fn in_watts_per_meter_kelvin(&self) -> TensorRank0
How many watts per metre kelvin the quantity is.
Source§impl Quantity<Dimensionless>
impl Quantity<Dimensionless>
Sourcepub const fn in_percent(&self) -> TensorRank0
pub const fn in_percent(&self) -> TensorRank0
How many percent the quantity is.
Source§impl Quantity<Temperature>
impl Quantity<Temperature>
Sourcepub const fn in_celsius(&self) -> TensorRank0
pub const fn in_celsius(&self) -> TensorRank0
How many degrees celsius the temperature is.
Sourcepub const fn in_fahrenheit(&self) -> TensorRank0
pub const fn in_fahrenheit(&self) -> TensorRank0
How many degrees fahrenheit the temperature is.
Trait Implementations§
Source§impl Add<Quantity> for TensorRank0
impl Add<Quantity> for TensorRank0
Source§impl<U> AddAssign<&Quantity<U>> for Quantity<U>
impl<U> AddAssign<&Quantity<U>> for Quantity<U>
Source§fn add_assign(&mut self, quantity: &Self)
fn add_assign(&mut self, quantity: &Self)
+= operation. Read moreSource§impl<U> AddAssign for Quantity<U>
impl<U> AddAssign for Quantity<U>
Source§fn add_assign(&mut self, quantity: Self)
fn add_assign(&mut self, quantity: Self)
+= operation. Read moreSource§impl<U, T> Differentiate<T> for Quantity<U>where
U: UnitDiv<T>,
impl<U, T> Differentiate<T> for Quantity<U>where
U: UnitDiv<T>,
Source§impl<const D: usize, I, J, U, V> Div<Quantity<V>> for &TensorRank2<D, I, J, U>where
U: UnitDiv<V>,
impl<const D: usize, I, J, U, V> Div<Quantity<V>> for &TensorRank2<D, I, J, U>where
U: UnitDiv<V>,
Source§impl<T, V> Div<Quantity<V>> for &TensorVector<T>
impl<T, V> Div<Quantity<V>> for &TensorVector<T>
Source§impl<const D: usize, I, J, U, V> Div<Quantity<V>> for TensorRank2<D, I, J, U>where
U: UnitDiv<V>,
impl<const D: usize, I, J, U, V> Div<Quantity<V>> for TensorRank2<D, I, J, U>where
U: UnitDiv<V>,
Source§impl<const D: usize, I, J, K, L, U, V> Div<Quantity<V>> for TensorRank4<D, I, J, K, L, U>where
U: UnitDiv<V>,
impl<const D: usize, I, J, K, L, U, V> Div<Quantity<V>> for TensorRank4<D, I, J, K, L, U>where
U: UnitDiv<V>,
Source§impl<T1, T2, V> Div<Quantity<V>> for TensorTuple<T1, T2>where
V: UnitHalves,
T1: Div<Quantity<<V as UnitHalves>::First>> + Tensor,
T2: Div<Quantity<<V as UnitHalves>::Second>> + Tensor,
<T1 as Div<Quantity<<V as UnitHalves>::First>>>::Output: Tensor,
<T2 as Div<Quantity<<V as UnitHalves>::Second>>>::Output: Tensor,
impl<T1, T2, V> Div<Quantity<V>> for TensorTuple<T1, T2>where
V: UnitHalves,
T1: Div<Quantity<<V as UnitHalves>::First>> + Tensor,
T2: Div<Quantity<<V as UnitHalves>::Second>> + Tensor,
<T1 as Div<Quantity<<V as UnitHalves>::First>>>::Output: Tensor,
<T2 as Div<Quantity<<V as UnitHalves>::Second>>>::Output: Tensor,
Source§impl<T, V> Div<Quantity<V>> for TensorVector<T>
impl<T, V> Div<Quantity<V>> for TensorVector<T>
Source§impl<U> DivAssign<&f64> for Quantity<U>
impl<U> DivAssign<&f64> for Quantity<U>
Source§fn div_assign(&mut self, tensor_rank_0: &TensorRank0)
fn div_assign(&mut self, tensor_rank_0: &TensorRank0)
/= operation. Read moreSource§impl<U> DivAssign<f64> for Quantity<U>
impl<U> DivAssign<f64> for Quantity<U>
Source§fn div_assign(&mut self, tensor_rank_0: TensorRank0)
fn div_assign(&mut self, tensor_rank_0: TensorRank0)
/= operation. Read moreSource§impl ElasticViscoplastic<Quantity> for Hencky
impl ElasticViscoplastic<Quantity> for Hencky
Source§fn state_variables_evolution(
&self,
deformation_gradient: &DeformationGradient,
state_variables: &ViscoplasticStateVariables<Y>,
) -> Result<ViscoplasticEvolution<Y>, ConstitutiveError>
fn state_variables_evolution( &self, deformation_gradient: &DeformationGradient, state_variables: &ViscoplasticStateVariables<Y>, ) -> Result<ViscoplasticEvolution<Y>, ConstitutiveError>
Source§impl ElasticViscoplastic<Quantity> for SaintVenantKirchhoff
impl ElasticViscoplastic<Quantity> for SaintVenantKirchhoff
Source§fn state_variables_evolution(
&self,
deformation_gradient: &DeformationGradient,
state_variables: &ViscoplasticStateVariables<Y>,
) -> Result<ViscoplasticEvolution<Y>, ConstitutiveError>
fn state_variables_evolution( &self, deformation_gradient: &DeformationGradient, state_variables: &ViscoplasticStateVariables<Y>, ) -> Result<ViscoplasticEvolution<Y>, ConstitutiveError>
Source§impl<U> FiniteDifference for Quantity<U>
impl<U> FiniteDifference for Quantity<U>
Source§impl<B, const D: usize> FirstOrderMinimize<Quantity<Energy>, TensorVector<TensorRank1<D, Current, Force>>, TensorVector<TensorRank1<D, Current, Length>>> for Model<B, D>where
B: HyperelasticElements<D>,
impl<B, const D: usize> FirstOrderMinimize<Quantity<Energy>, TensorVector<TensorRank1<D, Current, Force>>, TensorVector<TensorRank1<D, Current, Length>>> for Model<B, D>where
B: HyperelasticElements<D>,
fn minimize( &self, equality_constraint: EqualityConstraint, solver: impl FirstOrderOptimization<Quantity<Energy>, NodalForcesSolid<D>, NodalCoordinates<D>>, ) -> Result<NodalCoordinates<D>, OptimizationError>
Source§impl<B, const D: usize> FirstOrderMinimize<Quantity<PowerTemperature>, TensorVector<Quantity<Power>>, TensorVector<Quantity<Temperature>>> for Model<B, D>where
B: ThermalConductionElements,
impl<B, const D: usize> FirstOrderMinimize<Quantity<PowerTemperature>, TensorVector<Quantity<Power>>, TensorVector<Quantity<Temperature>>> for Model<B, D>where
B: ThermalConductionElements,
fn minimize( &self, equality_constraint: EqualityConstraint, solver: impl FirstOrderOptimization<Quantity<PowerTemperature>, NodalForcesThermal, NodalTemperatures>, ) -> Result<NodalTemperatures, OptimizationError>
Source§impl<U> FromIterator<Quantity<U>> for QuantitySparseVec<U>
impl<U> FromIterator<Quantity<U>> for QuantitySparseVec<U>
Source§impl<const D: usize, I, U> FromIterator<Quantity<U>> for TensorRank1<D, I, U>
impl<const D: usize, I, U> FromIterator<Quantity<U>> for TensorRank1<D, I, U>
Source§impl<U> Hessian for Quantity<U>
impl<U> Hessian for Quantity<U>
Source§fn quadratic_form(&self, vector: &Vector) -> TensorRank0
fn quadratic_form(&self, vector: &Vector) -> TensorRank0
Source§fn entry(&self, _row: usize, _column: usize) -> TensorRank0
fn entry(&self, _row: usize, _column: usize) -> TensorRank0
Source§fn fill_into(self, _square_matrix: &mut SquareMatrix)
fn fill_into(self, _square_matrix: &mut SquareMatrix)
Source§fn retain_from(self, _retained: &[bool]) -> SquareMatrix
fn retain_from(self, _retained: &[bool]) -> SquareMatrix
Source§impl HyperelasticViscoplastic<Quantity> for Hencky
impl HyperelasticViscoplastic<Quantity> for Hencky
Source§fn helmholtz_free_energy_density(
&self,
deformation_gradient: &DeformationGradient,
deformation_gradient_p: &DeformationGradientPlastic,
) -> Result<Quantity<EnergyDensity>, ConstitutiveError>
fn helmholtz_free_energy_density( &self, deformation_gradient: &DeformationGradient, deformation_gradient_p: &DeformationGradientPlastic, ) -> Result<Quantity<EnergyDensity>, ConstitutiveError>
a(\mathbf{F},\mathbf{F}_\mathrm{p}) = \mu\,\mathrm{tr}(\mathbf{h}_\mathrm{e}^2) + \frac{1}{2}\left(\kappa - \frac{2}{3}\,\mu\right)\mathrm{tr}(\mathbf{h}_\mathrm{e})^2Source§impl HyperelasticViscoplastic<Quantity> for SaintVenantKirchhoff
impl HyperelasticViscoplastic<Quantity> for SaintVenantKirchhoff
Source§fn helmholtz_free_energy_density(
&self,
deformation_gradient: &DeformationGradient,
deformation_gradient_p: &DeformationGradientPlastic,
) -> Result<Quantity<EnergyDensity>, ConstitutiveError>
fn helmholtz_free_energy_density( &self, deformation_gradient: &DeformationGradient, deformation_gradient_p: &DeformationGradientPlastic, ) -> Result<Quantity<EnergyDensity>, ConstitutiveError>
a(\mathbf{F},\mathbf{F}_\mathrm{p}) = \mu\,\mathrm{tr}(\mathbf{E}_\mathrm{e}^2) + \frac{1}{2}\left(\kappa - \frac{2}{3}\,\mu\right)\mathrm{tr}(\mathbf{E}_\mathrm{e})^2Source§impl<U> Jacobian for Quantity<U>
impl<U> Jacobian for Quantity<U>
Source§fn fill_into_chained(self, _other: Vector, _vector: &mut Vector)
fn fill_into_chained(self, _other: Vector, _vector: &mut Vector)
Source§fn retain_from(self, _retained: &[bool]) -> Vector
fn retain_from(self, _retained: &[bool]) -> Vector
Source§impl<const D: usize, I, U, V> Mul<&Quantity<V>> for &TensorRank1<D, I, U>where
U: UnitMul<V>,
impl<const D: usize, I, U, V> Mul<&Quantity<V>> for &TensorRank1<D, I, U>where
U: UnitMul<V>,
Source§impl<const D: usize, I, J, U, V> Mul<&Quantity<V>> for &TensorRank2<D, I, J, U>where
U: UnitMul<V>,
impl<const D: usize, I, J, U, V> Mul<&Quantity<V>> for &TensorRank2<D, I, J, U>where
U: UnitMul<V>,
Source§impl<const D: usize, I, J, K, L, U, V> Mul<&Quantity<V>> for &TensorRank4<D, I, J, K, L, U>where
U: UnitMul<V>,
impl<const D: usize, I, J, K, L, U, V> Mul<&Quantity<V>> for &TensorRank4<D, I, J, K, L, U>where
U: UnitMul<V>,
Source§impl<V> Mul<&Quantity<V>> for &TensorRank0
impl<V> Mul<&Quantity<V>> for &TensorRank0
Source§impl<const D: usize, I, J, U, V> Mul<&Quantity<V>> for TensorRank2<D, I, J, U>where
U: UnitMul<V>,
impl<const D: usize, I, J, U, V> Mul<&Quantity<V>> for TensorRank2<D, I, J, U>where
U: UnitMul<V>,
Source§impl<const D: usize, I, J, K, L, U, V> Mul<&Quantity<V>> for TensorRank4<D, I, J, K, L, U>where
U: UnitMul<V>,
impl<const D: usize, I, J, K, L, U, V> Mul<&Quantity<V>> for TensorRank4<D, I, J, K, L, U>where
U: UnitMul<V>,
Source§impl<V> Mul<&Quantity<V>> for TensorRank0
impl<V> Mul<&Quantity<V>> for TensorRank0
Source§impl<U> Mul<Quantity<U>> for TensorRank0
impl<U> Mul<Quantity<U>> for TensorRank0
Source§impl<const D: usize, I, J, U, V> Mul<Quantity<V>> for &TensorRank2<D, I, J, U>where
U: UnitMul<V>,
impl<const D: usize, I, J, U, V> Mul<Quantity<V>> for &TensorRank2<D, I, J, U>where
U: UnitMul<V>,
Source§impl<const D: usize, I, J, K, L, U, V> Mul<Quantity<V>> for &TensorRank4<D, I, J, K, L, U>where
U: UnitMul<V>,
impl<const D: usize, I, J, K, L, U, V> Mul<Quantity<V>> for &TensorRank4<D, I, J, K, L, U>where
U: UnitMul<V>,
Source§impl<T1, T2, V> Mul<Quantity<V>> for &TensorTuple<T1, T2>where
V: UnitHalves,
T1: Clone + Mul<Quantity<<V as UnitHalves>::First>> + Tensor,
T2: Clone + Mul<Quantity<<V as UnitHalves>::Second>> + Tensor,
<T1 as Mul<Quantity<<V as UnitHalves>::First>>>::Output: Tensor,
<T2 as Mul<Quantity<<V as UnitHalves>::Second>>>::Output: Tensor,
impl<T1, T2, V> Mul<Quantity<V>> for &TensorTuple<T1, T2>where
V: UnitHalves,
T1: Clone + Mul<Quantity<<V as UnitHalves>::First>> + Tensor,
T2: Clone + Mul<Quantity<<V as UnitHalves>::Second>> + Tensor,
<T1 as Mul<Quantity<<V as UnitHalves>::First>>>::Output: Tensor,
<T2 as Mul<Quantity<<V as UnitHalves>::Second>>>::Output: Tensor,
Source§impl<T, V> Mul<Quantity<V>> for &TensorVector<T>
impl<T, V> Mul<Quantity<V>> for &TensorVector<T>
Source§impl<const D: usize, I, J, U, V> Mul<Quantity<V>> for TensorRank2<D, I, J, U>where
U: UnitMul<V>,
impl<const D: usize, I, J, U, V> Mul<Quantity<V>> for TensorRank2<D, I, J, U>where
U: UnitMul<V>,
Source§impl<const D: usize, I, J, K, L, U, V> Mul<Quantity<V>> for TensorRank4<D, I, J, K, L, U>where
U: UnitMul<V>,
impl<const D: usize, I, J, K, L, U, V> Mul<Quantity<V>> for TensorRank4<D, I, J, K, L, U>where
U: UnitMul<V>,
Source§impl<T1, T2, V> Mul<Quantity<V>> for TensorTuple<T1, T2>where
V: UnitHalves,
T1: Mul<Quantity<<V as UnitHalves>::First>> + Tensor,
T2: Mul<Quantity<<V as UnitHalves>::Second>> + Tensor,
<T1 as Mul<Quantity<<V as UnitHalves>::First>>>::Output: Tensor,
<T2 as Mul<Quantity<<V as UnitHalves>::Second>>>::Output: Tensor,
impl<T1, T2, V> Mul<Quantity<V>> for TensorTuple<T1, T2>where
V: UnitHalves,
T1: Mul<Quantity<<V as UnitHalves>::First>> + Tensor,
T2: Mul<Quantity<<V as UnitHalves>::Second>> + Tensor,
<T1 as Mul<Quantity<<V as UnitHalves>::First>>>::Output: Tensor,
<T2 as Mul<Quantity<<V as UnitHalves>::Second>>>::Output: Tensor,
Source§impl<T, V> Mul<Quantity<V>> for TensorVector<T>
impl<T, V> Mul<Quantity<V>> for TensorVector<T>
Source§impl Mul<Quantity> for &TensorRank0
Scaling a bare scalar by a dimensionless quantity leaves it bare.
impl Mul<Quantity> for &TensorRank0
Scaling a bare scalar by a dimensionless quantity leaves it bare.
Source§impl<U> MulAssign<&f64> for Quantity<U>
impl<U> MulAssign<&f64> for Quantity<U>
Source§fn mul_assign(&mut self, tensor_rank_0: &TensorRank0)
fn mul_assign(&mut self, tensor_rank_0: &TensorRank0)
*= operation. Read moreSource§impl<U> MulAssign<f64> for Quantity<U>
impl<U> MulAssign<f64> for Quantity<U>
Source§fn mul_assign(&mut self, tensor_rank_0: TensorRank0)
fn mul_assign(&mut self, tensor_rank_0: TensorRank0)
*= operation. Read moreSource§impl PartialEq<Quantity> for TensorRank0
impl PartialEq<Quantity> for TensorRank0
Source§impl PartialEq<f64> for Quantity<Dimensionless>
impl PartialEq<f64> for Quantity<Dimensionless>
Source§fn eq(&self, tensor_rank_0: &TensorRank0) -> bool
fn eq(&self, tensor_rank_0: &TensorRank0) -> bool
self and other values to be equal, and is used by ==.Source§impl PartialOrd<Quantity> for TensorRank0
impl PartialOrd<Quantity> for TensorRank0
Source§impl PartialOrd<f64> for Quantity<Dimensionless>
impl PartialOrd<f64> for Quantity<Dimensionless>
Source§impl<U> PartialOrd for Quantity<U>
impl<U> PartialOrd for Quantity<U>
Source§impl<B, const D: usize> SecondOrderMinimize<Quantity<Energy>, TensorVector<TensorRank1<D, Current, Force>>, TensorRank2SparseVec2DSymmetric<D, Current, Current, ForcePerLength>, TensorVector<TensorRank1<D, Current, Length>>> for Model<B, D>where
B: HyperelasticElements<D>,
impl<B, const D: usize> SecondOrderMinimize<Quantity<Energy>, TensorVector<TensorRank1<D, Current, Force>>, TensorRank2SparseVec2DSymmetric<D, Current, Current, ForcePerLength>, TensorVector<TensorRank1<D, Current, Length>>> for Model<B, D>where
B: HyperelasticElements<D>,
fn minimize( &self, equality_constraint: EqualityConstraint, solver: impl SecondOrderOptimization<Quantity<Energy>, NodalForcesSolid<D>, NodalStiffnessesSolidSymmetric<D>, NodalCoordinates<D>>, ) -> Result<NodalCoordinates<D>, OptimizationError>
Source§impl<B, const D: usize> SecondOrderMinimize<Quantity<PowerTemperature>, TensorVector<Quantity<Power>>, TensorVector<QuantitySparseVec<PowerPerTemperature>>, TensorVector<Quantity<Temperature>>> for Model<B, D>where
B: ThermalConductionElements,
impl<B, const D: usize> SecondOrderMinimize<Quantity<PowerTemperature>, TensorVector<Quantity<Power>>, TensorVector<QuantitySparseVec<PowerPerTemperature>>, TensorVector<Quantity<Temperature>>> for Model<B, D>where
B: ThermalConductionElements,
fn minimize( &self, equality_constraint: EqualityConstraint, solver: impl SecondOrderOptimization<Quantity<PowerTemperature>, NodalForcesThermal, NodalStiffnessesThermal, NodalTemperatures>, ) -> Result<NodalTemperatures, OptimizationError>
Source§impl<U> Solution for Quantity<U>
impl<U> Solution for Quantity<U>
Source§fn decrement_from(&mut self, _other: &Vector)
fn decrement_from(&mut self, _other: &Vector)
Source§fn decrement_from_chained(&mut self, _other: &mut Vector, _vector: &Vector)
fn decrement_from_chained(&mut self, _other: &mut Vector, _vector: &Vector)
Source§fn decrement_from_retained(&mut self, _retained: &[bool], _other: &Vector)
fn decrement_from_retained(&mut self, _retained: &[bool], _other: &Vector)
Source§impl Sub<Quantity> for TensorRank0
impl Sub<Quantity> for TensorRank0
Source§impl<U> SubAssign<&Quantity<U>> for Quantity<U>
impl<U> SubAssign<&Quantity<U>> for Quantity<U>
Source§fn sub_assign(&mut self, quantity: &Self)
fn sub_assign(&mut self, quantity: &Self)
-= operation. Read moreSource§impl<U> SubAssign for Quantity<U>
impl<U> SubAssign for Quantity<U>
Source§fn sub_assign(&mut self, quantity: Self)
fn sub_assign(&mut self, quantity: Self)
-= operation. Read moreSource§impl<U> Tensor for Quantity<U>
impl<U> Tensor for Quantity<U>
Source§fn error_count_zero(
&self,
tol_abs: TensorRank0,
tol_rel: TensorRank0,
) -> Option<usize>
fn error_count_zero( &self, tol_abs: TensorRank0, tol_rel: TensorRank0, ) -> Option<usize>
Source§fn error_count(
&self,
other: &Self,
tol_abs: TensorRank0,
tol_rel: TensorRank0,
) -> Option<usize>
fn error_count( &self, other: &Self, tol_abs: TensorRank0, tol_rel: TensorRank0, ) -> Option<usize>
Source§fn full_contraction(&self, quantity: &Self) -> TensorRank0
fn full_contraction(&self, quantity: &Self) -> TensorRank0
Source§fn iter_mut(&mut self) -> impl Iterator<Item = &mut Self::Item>
fn iter_mut(&mut self) -> impl Iterator<Item = &mut Self::Item>
Source§fn norm_p_sum(&self, p: TensorRank0) -> TensorRank0
fn norm_p_sum(&self, p: TensorRank0) -> TensorRank0
norm_p).