Public Types | Public Member Functions

OpenTissue::mbd::ForceInterface< mbd_types > Class Template Reference

#include <mbd_force_interface.h>

Inheritance diagram for OpenTissue::mbd::ForceInterface< mbd_types >:
OpenTissue::mbd::Damping< mbd_types > OpenTissue::mbd::DrivingForce< mbd_types > OpenTissue::mbd::Gravity< mbd_types >

List of all members.

Public Types

typedef mbd_types::body_type body_type
typedef
mbd_types::math_policy::vector3_type 
vector3_type

Public Member Functions

virtual void compute (body_type const &body, vector3_type &force, vector3_type &torque)=0

Detailed Description

template<typename mbd_types>
class OpenTissue::mbd::ForceInterface< mbd_types >

force_type (callback) Class. force_type types are implemented by inheritence from this adapter, the compute method must be overriden and specified for the wanted force type.

Notice that a force is a type that can be applied to multiple bodies, such as gravity which can be shared by all bodies in a configuration. invocation of the run method evaluates the force types effect on the specified body.


Member Typedef Documentation


Member Function Documentation

template<typename mbd_types >
virtual void OpenTissue::mbd::ForceInterface< mbd_types >::compute ( body_type const &  body,
vector3_type force,
vector3_type torque 
) [pure virtual]

Compute External force_type and Torque. Add the effect of a external force type to the force and torque accumulators of the specified rigid body.

Parameters:
body A pointer to the rigid body where the external force type should be applied.
force Upon return this vector should contain the force on the center of mass.
torque Upon return this vector should contain the torque wrt. the center of mass.

The documentation for this class was generated from the following file: