[][src]Trait salva2d::coupling::CouplingManager

pub trait CouplingManager {
    fn update_boundaries(
        &mut self,
        timestep: &TimestepManager,
        h: Real,
        particle_radius: Real,
        hgrid: &HGrid<HGridEntry>,
        fluids: &mut [Fluid],
        boundaries: &mut BoundarySet
    );
fn transmit_forces(&mut self, boundaries: &BoundarySet); }

Trait that needs to be implemented by middlewares responsible for coupling bodies from a rigid-body physic framework (nphysics, bullet, PhysX, etc.) with boundary objects of salva.

Required methods

fn update_boundaries(
    &mut self,
    timestep: &TimestepManager,
    h: Real,
    particle_radius: Real,
    hgrid: &HGrid<HGridEntry>,
    fluids: &mut [Fluid],
    boundaries: &mut BoundarySet
)
[src]

Updates the boundary objects from the coupled bodies.

The goal of this method is to update the particles composing the boundary objects so they reflect the state of the coupled body. Those particles will generally be samplings of the boundary of the object. This also updates the velocity at those particles.

fn transmit_forces(&mut self, boundaries: &BoundarySet)[src]

Transmit forces from salva's boundary objects to the coupled bodies.

Loading content...

Implementations on Foreign Types

impl CouplingManager for ()[src]

Loading content...

Implementors

Loading content...