Skip to main content

DofMap

Struct DofMap 

Source
pub struct DofMap { /* private fields */ }

Implementations§

Source§

impl DofMap

Source

pub fn build(model: &Model) -> Self

Source

pub fn n_active(&self) -> usize

Source

pub fn active(&self, g: GlobalDof) -> Option<u32>

Source

pub fn expand_to_nodes(&self, u_free: &[f64], n_nodes: usize) -> Vec<[f64; 6]>

自由 DOF 空間のベクトル(active 添字順。従属自由度は expand_u 済み)を 節点×6 成分の配列へ展開する。拘束・非構造自由度は 0 のまま。

静的解析の変位・時刻歴の節点変位・固有モード形状の散布で同一の展開が 必要になるため、単一実装としてここに置く(各ソルバでの手書きコピーの 再発防止)。

Source

pub fn global(&self, a: u32) -> GlobalDof

Source

pub fn panel_dof(&self, node_idx: usize, d: usize) -> Option<u32>

節点 node_idx の仕口パネル自由度(d = 0 が γX、1 が γY)の独立自由度番号。 パネルを持たない節点・範囲外は None

Source

pub fn has_panel_dof(&self, node_idx: usize) -> bool

節点 node_idx に仕口パネル自由度が払い出されているか。

Source

pub fn is_node_dof(&self, g: GlobalDof) -> bool

グローバル自由度 g が標準自由度(節点 × 6)の範囲にあるか。 false は仕口パネルの追加自由度を指す(g / DOF_PER_NODE で節点番号へ 換算してはならない)。

Source

pub fn panel_dof_ref(&self, g: GlobalDof) -> Option<(usize, usize)>

グローバル自由度 g が仕口パネルの追加自由度であれば (節点 index, 成分(0 = γX, 1 = γY)) を返す。標準自由度・範囲外は None

Trait Implementations§

Source§

impl Clone for DofMap

Source§

fn clone(&self) -> DofMap

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 DofMap

Source§

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

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

impl Default for DofMap

Source§

fn default() -> DofMap

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

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.