rigidBodyDynamics: Generalized the interface to the restraints

Now internal forces and restraints may be applied between bodies within
the articulated structure.
This commit is contained in:
Henry Weller
2016-04-19 21:58:10 +01:00
parent 39bfef2b11
commit 858146ca4b
15 changed files with 90 additions and 39 deletions

View File

@ -101,8 +101,13 @@ public:
// Member Functions
//- Return the external force applied to the body by this restraint
virtual spatialVector restrain() const;
//- Accumulate the retraint internal joint forces into the tau field and
// external forces into the fx field
virtual void restrain
(
scalarField& tau,
Field<spatialVector>& fx
) const;
//- Update properties from given dictionary
virtual bool read(const dictionary& dict);