[−][src]Struct salva3d::object::Boundary
A boundary object.
A boundary object is composed of static particles, or of particles coupled with non-fluid bodies.
Fields
positions: Vec<Point<N>>
The world-space position of the boundary particles.
velocities: Vec<Vector<N>>
The artificial velocities of each boundary particle.
forces: RwLock<Vec<Vector<N>>>
The forces applied to each particle of this boundary object.
Methods
impl<N: RealField> Boundary<N>
[src]
pub fn new(particle_positions: Vec<Point<N>>) -> Self
[src]
Initialize a boundary object with the given particles.
pub fn num_particles(&self) -> usize
[src]
The number of particles of this boundary object.
pub fn apply_force(&self, i: usize, f: Vector<N>)
[src]
Apply a force f
to the i
-th particle of this boundary object.
This call relies on thread-safe interior mutability.
pub fn clear_forces(&mut self, resize_buffer: bool)
[src]
Clears all the forces applied to this boundary object's particles.
Auto Trait Implementations
impl<N> Send for Boundary<N> where
N: Scalar,
N: Scalar,
impl<N> Sync for Boundary<N> where
N: Scalar,
N: Scalar,
impl<N> Unpin for Boundary<N> where
N: Scalar + Unpin,
N: Scalar + Unpin,
impl<N> UnwindSafe for Boundary<N> where
N: Scalar + UnwindSafe,
N: Scalar + UnwindSafe,
impl<N> RefUnwindSafe for Boundary<N> where
N: RefUnwindSafe + Scalar,
N: RefUnwindSafe + Scalar,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,