Base class for defining restraints for sixDoF motions.
const word & name() const
Return the name.
sixDoFRigidBodyMotionRestraints model. Spherical angular spring.
virtual void write(Ostream &) const
Write.
sphericalAngularSpring(const word &name, const dictionary &sDoFRBMRDict)
Construct from components.
virtual void restrain(const sixDoFRigidBodyMotion &motion, vector &restraintPosition, vector &restraintForce, vector &restraintMoment) const
Calculate the restraint position, force and moment.
virtual autoPtr< sixDoFRigidBodyMotionRestraint > clone() const
Construct and return a clone.
virtual ~sphericalAngularSpring()
Destructor.
TypeName("sphericalAngularSpring")
Runtime type information.
virtual bool read(const dictionary &sDoFRBMRCoeff)
Update properties from given dictionary.
Six degree of freedom motion for a rigid body.