Skip to main content

Slab

Struct Slab 

Source
pub struct Slab {
    pub id: SlabId,
    pub shape: SlabShape,
    pub plate: SlabPlate,
}
Expand description

床板。大梁または小梁で囲まれた版、または主架構に取り付く版 (片持ち・バルコニー・出隅)ごとに 1 つ。

Fields§

§id: SlabId

床板 ID(Model::slabs の配列インデックスと一致すること)。

§shape: SlabShape§plate: SlabPlate

Implementations§

Source§

impl Slab

Source

pub fn is_attached(&self) -> bool

取り付く床板か。

Source

pub fn boundary_nodes(&self) -> Option<&[NodeId]>

境界の節点列。大梁または小梁で囲まれた床板のみ(取り付く床板は 自由端に節点を持たないため None)。

Source

pub fn boundary_coords(&self, model: &Model) -> Option<Vec<[f64; 3]>>

境界多角形の座標列 [mm]。取り付く床板は取付き先と張り出し量から算出する。 節点が引けない(陳腐化した参照)場合は None

Source

pub fn boundary_coords_with( &self, coord_of: impl Fn(NodeId) -> Option<[f64; 3]>, ) -> Option<Vec<[f64; 3]>>

境界多角形の座標列 [mm] を、節点座標の引き方を差し替えて求める。

Slab::boundary_coords はモデルの節点座標をそのまま使うが、変形図・ モード形・時刻歴は変形後の節点座標で描く必要がある。形状の組み立て方 (取付き線の内挿・左向き法線への張り出し)は同じなので、座標の引き方だけを 差し替えられるようにして実装を 1 つに保つ。

Source

pub fn edge_nodes(&self, k: usize) -> Option<[NodeId; 2]>

境界の辺 k の両端節点。荷重分配の結果(LoadTarget::Edge)を主架構の梁へ 結びつけるために使う。

大梁または小梁で囲まれた床板は boundary[k]boundary[k+1]、取り付く床板 (線)は辺 0 が取付き線そのもの(それ以外の辺は自由端なので None)。 取り付く床板(点)は辺を持たない。

Source

pub fn reference_node(&self) -> Option<NodeId>

床板を代表する節点。大梁または小梁で囲まれた床板は境界の先頭、 取り付く床板は取付き先の節点。

Source

pub fn level(&self, model: &Model) -> Option<f64>

床板のレベル Z [mm](境界座標の Z の平均)。境界が引けなければ None

Source

pub fn method(&self) -> DistributionMethod

分配方法。

Source

pub fn one_way(&self) -> Option<OneWayDir>

一方向スラブの伝達方向。

Source

pub fn live_intensity(&self, purpose: LoadPurpose) -> f64

用途別の積載荷重(LL)の面荷重強度 [N/mm²]。用途未設定は 0。

Source

pub fn section(&self) -> Option<SectionId>

版の断面(未割当は None)。

Source

pub fn usage(&self) -> Option<SlabUsage>

室用途(未設定は None)。

Source

pub fn attached_design_span(&self) -> Option<f64>

取り付く床板の設計スパン [mm](張り出し量の絶対値の大きい方)。 大梁または小梁で囲まれた床板、値が非有限、または 0 以下のときは None

Trait Implementations§

Source§

impl Clone for Slab

Source§

fn clone(&self) -> Slab

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 Slab

Source§

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

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

impl<'de> Deserialize<'de> for Slab

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 Slab

Source§

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

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 Slab

Auto Trait Implementations§

§

impl Freeze for Slab

§

impl RefUnwindSafe for Slab

§

impl Send for Slab

§

impl Sync for Slab

§

impl Unpin for Slab

§

impl UnsafeUnpin for Slab

§

impl UnwindSafe for Slab

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.