[−][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<Real>>
The world-space position of the boundary particles.
velocities: Vec<Vector<Real>>
The artificial velocities of each boundary particle.
volumes: Vec<Real>
The volume computed for each boundary particle.
forces: Option<RwLock<Vec<Vector<Real>>>>
The forces applied to each particle of this boundary object.
If this is set to None
(which is the default), the boundary won't receive any
force for fluids.
Implementations
impl Boundary
[src]
pub fn new(particle_positions: Vec<Point<Real>>) -> 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 transform_by(&mut self, pose: &Isometry<Real>)
[src]
Transforms all the particle positions of this boundary by the given isometry.
pub fn apply_force(&self, i: usize, f: Vector<Real>)
[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 RefUnwindSafe for Boundary
[src]
impl Send for Boundary
[src]
impl Sync for Boundary
[src]
impl Unpin for Boundary
[src]
impl UnwindSafe for Boundary
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
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.
pub 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,