Skip to main content

Constraint

Enum Constraint 

Source
pub enum Constraint {
    RigidDiaphragm {
        story: StoryId,
        master: NodeId,
        slaves: Vec<NodeId>,
        weight: Option<f64>,
        ci_override: Option<f64>,
    },
    Mpc {
        master: NodeId,
        terms: Vec<(NodeId, Dof, f64)>,
    },
    RigidLink {
        master: NodeId,
        slaves: Vec<NodeId>,
        dofs: Dof6Mask,
    },
}

Variants§

§

RigidDiaphragm

剛床(面内剛体ダイアフラム)。剛床の唯一の情報源であり、階 (Story)は剛床を保持しない(階と剛床は別概念。model::story の モジュールドキュメント参照)。階から剛床を辿るときは Model::diaphragms_of を使う。

この拘束が存在すること自体が「面内剛体である」ことを意味する。 スレーブ節点は階のレベル上にある節点に限る (Model::on_diaphragm_level)。

Fields

§story: StoryId

この剛床が属する階。1 つの階が複数の剛床を持つことがある(段差床)。

§master: NodeId
§slaves: Vec<NodeId>
§weight: Option<f64>

この剛床が負担する地震用重量 [N]。多剛床の階では層の水平力 Pi を 剛床ごとの重量比で分配するために用いる(多剛床の設計用せん断力。 令88条・昭55建告1793号)。None は未算定(階に単一剛床なら層重量全量)。

§ci_override: Option<f64>

副剛床の層せん断力係数 Ci の直接入力(令88条・昭55建告1793号の 層せん断力係数)。Some の剛床は主系統の Ai 分布から除外され、 水平力 = ci_override × 剛床重量(等価震度扱い。上階に同一系統の 剛床が積み上がらない副剛床を想定)として作用する。 None は主系統(Ai 分布)。

§

Mpc

Fields

§master: NodeId
§terms: Vec<(NodeId, Dof, f64)>

Fields

§master: NodeId
§slaves: Vec<NodeId>

Implementations§

Source§

impl Constraint

Source

pub fn rigid_diaphragm( story: StoryId, master: NodeId, slaves: Vec<NodeId>, ) -> Self

重量・Ci 指定を持たない剛床拘束を作る。

階に剛床が 1 つだけの場合、水平力はその剛床へ全量載るため重量比の按分が 不要になる(Model::diaphragms_of を用いる分配側の規則)。多剛床の階を 作るときだけ weightci_override を明示的に設定する。

Trait Implementations§

Source§

impl Clone for Constraint

Source§

fn clone(&self) -> Constraint

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 Constraint

Source§

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

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

impl<'de> Deserialize<'de> for Constraint

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 Constraint

Source§

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

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 Constraint

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.