Skip to main content

Material

Struct Material 

Source
pub struct Material {
    pub id: MaterialId,
    pub name: String,
    pub category: MaterialCategory,
    pub young: f64,
    pub poisson: f64,
    pub density: f64,
    pub shear: Option<f64>,
    pub fc: Option<f64>,
    pub fy: Option<f64>,
    pub concrete_class: ConcreteClass,
    pub strength_factor: Option<f64>,
}

Fields§

§id: MaterialId§name: String§category: MaterialCategory

材料の区分。S 造・RC 造の判定はこの値による(MaterialCategory)。

§young: f64§poisson: f64§density: f64§shear: Option<f64>§fc: Option<f64>

コンクリート設計基準強度 Fc [N/mm²]。 鋼材では None。RC 設計(令91条)の許容圧縮・せん断に用いる。

§fy: Option<f64>

降伏応力 fy [N/mm²]。鋼材の弾塑性挙動(ファイバ材料・端ばねスケルトン)に用いる。 None の場合、ファイバ材料は弾性(降伏しない)として扱う(P5 非線形)。

§concrete_class: ConcreteClass

コンクリートの種類(普通/軽量1種/軽量2種)。固定荷重の 単位体積重量表・許容応力度低減(軽量コンクリートは 普通コンクリートの 0.9 倍。技術基準解説書)に用いる。鋼材では意味を持たない(既定 Normal)。 旧スキーマ(フィールド無し)は Normal 扱い。

§strength_factor: Option<f64>

保有水平耐力計算(プッシュオーバー)用の材料強度割増係数の直接入力。 None(既定)の場合は自動判定(鋼材グレードは 1.1、590N 級の SA440・TMCP440 は 1.05、RC 主筋は 1.1。せん断補強筋は割増対象外)。 直接入力材料など自動判定できない材料に対して割増を指定する用途。 許容応力度計算(一次設計)には影響しない。 旧スキーマ(フィールド無し)は None(自動判定)扱い。

Implementations§

Trait Implementations§

Source§

impl Clone for Material

Source§

fn clone(&self) -> Material

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 Material

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Material

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for Material

Source§

fn eq(&self, other: &Material) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Material

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Material

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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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.