Skip to main content

FrameSpec

Struct FrameSpec 

Source
pub struct FrameSpec {
Show 14 fields pub origin: [f64; 2], pub base_elevation: f64, pub x_spans: Vec<f64>, pub y_spans: Vec<f64>, pub story_heights: Vec<f64>, pub story_names: Vec<String>, pub x_group_name: String, pub y_group_name: String, pub base_support: BaseSupport, pub with_girders: bool, pub with_slabs: bool, pub slab_usage: Option<SlabUsage>, pub slab_thickness: f64, pub slab_concrete: String,
}
Expand description

架構作成ウィザードの入力。

Fields§

§origin: [f64; 2]

平面の原点 (x, y) [mm]。1 本目の通りの位置になる。

§base_elevation: f64

基部の標高 [mm]。最下レベル(柱脚)になる。

§x_spans: Vec<f64>

X 方向のスパン [mm](要素数 = 通りの本数 − 1)。空なら通り 1 本。

§y_spans: Vec<f64>

Y 方向のスパン [mm](同上)。

§story_heights: Vec<f64>

下から順の階高 [mm](要素数 = 生成するの数)。

§story_names: Vec<String>

階(床)の名前。要素数は story_heights より 1 つ多く、先頭が基部の 床の名前である(階は床であり、床レベルは層より 1 つ多いため)。 空文字の要素は default_story_name で補う。

§x_group_name: String

X 方向グループの名前(通り名の接頭辞)。

§y_group_name: String

Y 方向グループの名前(通り名の接頭辞)。

§base_support: BaseSupport

柱脚の支持条件。

§with_girders: bool

大梁を生成するか。

§with_slabs: bool

床を生成するか。各階の各格子区画(隣り合う通りで囲まれた矩形)に 1 枚ずつ。

§slab_usage: Option<SlabUsage>

床の室用途(積載荷重プリセット)。

§slab_thickness: f64

床の板厚 [mm](断面 SLAB_SECTION_NAME の板厚になる)。

§slab_concrete: String

床のコンクリートのグレード名(material_presets の名称。既定は DEFAULT_SLAB_CONCRETE)。この材料を 1 つ作り、床の断面へ割り当てる。

Implementations§

Source§

impl FrameSpec

Source

pub fn x_coords(&self) -> Vec<f64>

X 方向の通りの座標 [mm](原点から各スパンを積み上げる)。

Source

pub fn y_coords(&self) -> Vec<f64>

Y 方向の通りの座標 [mm]。

Source

pub fn levels(&self) -> Vec<f64>

基部を含むレベル [mm](先頭が基部)。

Source

pub fn validate(&self) -> Option<String>

入力の不備を日本語で返す(None なら生成できる)。

スパン・階高は正の値でなければならない。0 以下を許すと同じ位置に節点が 重なり、長さ 0 の部材ができて剛性行列が特異になる。

Source

pub fn counts(&self) -> FrameCounts

生成される節点数・柱本数・梁本数・床枚数。ウィザードが実行前に規模を示すために使う。

Trait Implementations§

Source§

impl Clone for FrameSpec

Source§

fn clone(&self) -> FrameSpec

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 FrameSpec

Source§

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

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

impl Default for FrameSpec

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl PartialEq for FrameSpec

Source§

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

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> 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.