Skip to main content

WallAttr

Struct WallAttr 

Source
pub struct WallAttr {
    pub elem: ElemId,
    pub opening_area: f64,
    pub opening_weight: f64,
    pub slit: WallSlit,
    pub openings: Vec<WallOpening>,
    pub finish_intensity: f64,
}
Expand description

壁要素(ElementKind::Wall/Shell)の壁属性 (壁自重(固定荷重)の開口、柱際スリット、および 剛性計算の開口低減・耐震壁判定に用いる個別開口寸法。RC 規準)。

Fields§

§elem: ElemId§opening_area: f64

開口面積の合計 [mm²]。壁自重から ρ·t·開口面積·g を控除する。 openings(個別開口)が非空の場合はそちらの面積和を優先し、 本フィールドは無視される(total_opening_area 参照)。

§opening_weight: f64

開口部(サッシ等)の重量 [N]。控除後に加算する。

§slit: WallSlit

耐震スリット。由来する壁版の super::WallPlate::slit を写したもので、 意味も添字の規則も同じである。いずれかの辺が切れていれば耐震壁として 成立しない。

§openings: Vec<WallOpening>

個別開口の寸法リスト。非空の場合、開口の面積評価(自重控除・ 開口周比 r0・開口低減率 r)と耐震壁検定の開口供給はこのリストを 優先する。空の場合は従来どおり opening_area(合計面積のみ)で評価する。

§finish_intensity: f64

仕上げ・増打ちの面荷重強度 [N/mm²]。由来する壁版の super::WallPlate::finish_intensity を写したもので、意味も同じである。 躯体の自重は含まない。

壁エレメントになる壁版もこの重さを持つため、要素経由の自重算定 (squid_n_load::story_gen::self_weight_calc)が読む。写し忘れると、 入力された仕上げ・増打ちが壁エレメントの壁だけ黙って落ちる。

Implementations§

Source§

impl WallAttr

Source

pub fn total_opening_area(&self) -> f64

開口の合計面積 [mm²]。個別開口 openings が非空ならその面積和、 空なら opening_area を返す(全消費側はこのメソッドを経由すること)。

Source

pub fn opening_dims(&self) -> Option<Vec<(f64, f64)>>

個別開口の (l0, h0) ペア列。個別開口が未入力(面積のみ)なら None。 面積ゼロの開口は除外する。

Source

pub fn opening_dims_for( &self, mode: MultiOpeningMode, ) -> Option<Vec<(f64, f64)>>

複数開口の取り扱い(mode)適用後の (l0, h0) ペア列。 個別開口が未入力(面積のみ)なら None(消費側は opening_area で評価)。

Source

pub fn total_opening_area_for(&self, mode: MultiOpeningMode) -> f64

複数開口の取り扱い(mode)適用後の開口合計面積 [mm²]。 包絡モードでは包絡矩形の面積となるため、生の面積和 (total_opening_area、自重控除用)とは異なり得る。

Source

pub fn openings_for_mode(&self, mode: MultiOpeningMode) -> Vec<WallOpening>

複数開口の取り扱い(RC 規準)を適用した開口リスト。

  • Equivalent: 個別開口をそのまま返す(等価開口への統合は消費側の式)。
  • Envelope: 位置(offset)を持つ開口全体の包絡矩形 1 つに置換。 位置不明の開口は包絡できないため個別のまま残る。
  • Auto: 包絡可能(WallOpening::can_envelope、l<1.5h または l<1m)な開口対が なくなるまで繰り返し包絡開口を作成し、残った開口を返す (包絡できなくなった時点の開口状況で『等価開口とする』と 同様の判定を行う扱いに対応。等価開口への統合は消費側)。

Trait Implementations§

Source§

impl Clone for WallAttr

Source§

fn clone(&self) -> WallAttr

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 WallAttr

Source§

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

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

impl<'de> Deserialize<'de> for WallAttr

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 WallAttr

Source§

fn eq(&self, other: &WallAttr) -> 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 WallAttr

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 WallAttr

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.