BuildingBlockFactory

Struct BuildingBlockFactory 

Source
pub struct BuildingBlockFactory<'a> { /* private fields */ }

Implementations§

Source§

impl<'a> BuildingBlockFactory<'a>

Source

pub fn new(name: &str) -> Self

Source

pub fn set_vector( &mut self, block: &'a dyn Fn(&str, &VectorConfig<'_>, &GenConfig) -> BlockRes, )

Source

pub fn vector( &self, name: &str, config: &VectorConfig<'_>, gen_config: &GenConfig, ) -> BlockRes

Source

pub fn set_dof_handler( &mut self, block: &'a dyn Fn(&str, &DofHandlerConfig<'_>, &GenConfig) -> BlockRes, )

Source

pub fn dof_handler( &self, name: &str, config: &DofHandlerConfig<'_>, gen_config: &GenConfig, ) -> BlockRes

Source

pub fn set_sparsity_pattern( &mut self, block: &'a dyn Fn(&str, &SparsityPatternConfig<'_>, &GenConfig) -> BlockRes, )

Source

pub fn sparsity_pattern( &self, name: &str, config: &SparsityPatternConfig<'_>, gen_config: &GenConfig, ) -> BlockRes

Source

pub fn set_vector_from_function( &mut self, block: &'a dyn Fn(&str, &VectorFromFnConfig<'_>, &GenConfig) -> BlockRes, )

Source

pub fn vector_from_function( &self, name: &str, config: &VectorFromFnConfig<'_>, gen_config: &GenConfig, ) -> BlockRes

Source

pub fn set_apply_boundary_condition( &mut self, block: &'a dyn Fn(&str, &ApplyBoundaryConditionConfig<'_>, &GenConfig) -> BlockRes, )

Source

pub fn apply_boundary_condition( &self, name: &str, config: &ApplyBoundaryConditionConfig<'_>, gen_config: &GenConfig, ) -> BlockRes

Source

pub fn set_initial_condition( &mut self, block: &'a dyn Fn(&str, &InitialConditionConfig<'_>, &GenConfig) -> BlockRes, )

Source

pub fn initial_condition( &self, name: &str, config: &InitialConditionConfig<'_>, gen_config: &GenConfig, ) -> BlockRes

Source

pub fn set_add_vector_output( &mut self, block: &'a dyn Fn(&str, &str, &GenConfig) -> BlockRes, )

Source

pub fn add_vector_output( &self, name: &str, config: &str, gen_config: &GenConfig, ) -> BlockRes

Source

pub fn set_matrix( &mut self, block: &'a dyn Fn(&str, &MatrixConfig<'_>, &GenConfig) -> BlockRes, )

Source

pub fn matrix( &self, name: &str, config: &MatrixConfig<'_>, gen_config: &GenConfig, ) -> BlockRes

Source

pub fn add_mesh( &mut self, type: &str, block: &'a dyn Fn(&str, &dyn Mesh, &GenConfig) -> BlockRes, )

Source

pub fn mesh( &self, name: &str, config: &'a dyn Mesh, gen_config: &GenConfig, ) -> BlockRes

Source

pub fn set_finite_element( &mut self, block: &'a dyn Fn(&str, &FiniteElement, &GenConfig) -> BlockRes, )

Source

pub fn finite_element( &self, name: &str, config: &FiniteElement, gen_config: &GenConfig, ) -> BlockRes

Source

pub fn shape_matrix<'b: 'a>( &self, name: &str, config: &ShapeMatrixConfig<'b>, gen_config: &GenConfig, ) -> BlockRes

Source

pub fn set_shape_matrix( &mut self, block: &'a dyn Fn(&str, BuildingBlock, &ShapeMatrixConfig<'_>) -> BlockRes, )

Source

pub fn set_solve_unknown( &mut self, block: &'a dyn Fn(&str, &SolveUnknownConfig<'_>, &GenConfig) -> BlockRes, )

Source

pub fn solve_unknown( &self, name: &str, config: &SolveUnknownConfig<'_>, gen_config: &GenConfig, ) -> BlockRes

Source

pub fn set_equation_setup( &mut self, block: &'a dyn Fn(&str, &EquationSetupConfig<'_>, &GenConfig) -> BlockRes, )

Source

pub fn equation_setup( &self, name: &str, config: &EquationSetupConfig<'_>, gen_config: &GenConfig, ) -> BlockRes

Source

pub fn call(&self, name: &str, args: &[&str]) -> BlockRes

Source

pub fn set_call(&mut self, block: &'a dyn Fn(&str, &[&str]) -> BlockRes)

Source

pub fn set_parameter( &mut self, block: &'a dyn Fn(&str, &f64, &GenConfig) -> BlockRes, )

Source

pub fn parameter( &self, name: &str, config: &f64, gen_config: &GenConfig, ) -> BlockRes

Source

pub fn set_function( &mut self, block: &'a dyn Fn(&str, &FunctionDef, &GenConfig) -> BlockRes, )

Source

pub fn function( &self, name: &str, config: &FunctionDef, gen_config: &GenConfig, ) -> BlockRes

Trait Implementations§

Source§

impl<'a> Clone for BuildingBlockFactory<'a>

Source§

fn clone(&self) -> BuildingBlockFactory<'a>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. 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> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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.