pub struct Mesh2D<T> { /* private fields */ }
Implementations§
source§impl<T: Clone + Number> Mesh2D<T>
impl<T: Clone + Number> Mesh2D<T>
sourcepub fn new(x_nodes: Vector<f64>, y_nodes: Vector<f64>, nvars: usize) -> Self
pub fn new(x_nodes: Vector<f64>, y_nodes: Vector<f64>, nvars: usize) -> Self
Create a new 2D mesh
sourcepub fn coord(&self, nodex: usize, nodey: usize) -> (f64, f64)
pub fn coord(&self, nodex: usize, nodey: usize) -> (f64, f64)
Return the spatial position of a specfied nodes as a tuple
sourcepub fn set_nodes_vars(&mut self, nodex: usize, nodey: usize, vec: Vector<T>)
pub fn set_nodes_vars(&mut self, nodex: usize, nodey: usize, vec: Vector<T>)
Set the variables stored at a specified node
sourcepub fn get_nodes_vars(&self, nodex: usize, nodey: usize) -> Vector<T>
pub fn get_nodes_vars(&self, nodex: usize, nodey: usize) -> Vector<T>
Get the vector of variables stored at a specified node
sourcepub fn cross_section_xnode(&self, nodex: usize) -> Mesh1D<T, f64>
pub fn cross_section_xnode(&self, nodex: usize) -> Mesh1D<T, f64>
Return a cross section of the 2D mesh at a specified x node
sourcepub fn cross_section_ynode(&self, nodey: usize) -> Mesh1D<T, f64>
pub fn cross_section_ynode(&self, nodey: usize) -> Mesh1D<T, f64>
Return a cross section of the 2D mesh at a specified y node
sourcepub fn var_as_matrix(&self, var: usize) -> Matrix<T>
pub fn var_as_matrix(&self, var: usize) -> Matrix<T>
Return a matrix for a variable corresponding to each nodal point
Trait Implementations§
Auto Trait Implementations§
impl<T> RefUnwindSafe for Mesh2D<T>where T: RefUnwindSafe,
impl<T> Send for Mesh2D<T>where T: Send,
impl<T> Sync for Mesh2D<T>where T: Sync,
impl<T> Unpin for Mesh2D<T>where T: Unpin,
impl<T> UnwindSafe for Mesh2D<T>where T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more