const word & name() const
Return the name.
virtual autoPtr< sixDoFRigidBodyMotionRestraint > clone() const
Construct and return a clone.
scalar restLength_
Rest length - length of spring when no forces are applied to it.
virtual void write(Ostream &) const
Write.
scalar stiffness_
Spring stiffness coefficient (N/m)
linearSpring(const word &name, const dictionary &sDoFRBMRDict)
Construct from components.
scalar damping_
Damping coefficient (Ns/m)
TypeName("linearSpring")
Runtime type information.
Base class for defining restraints for sixDoF motions.
virtual bool read(const dictionary &sDoFRBMRCoeff)
Update properties from given dictionary.
point refAttachmentPt_
Reference point of attachment to the solid body.
sixDoFRigidBodyMotionRestraints model. Linear spring.
virtual void restrain(const sixDoFRigidBodyMotion &motion, vector &restraintPosition, vector &restraintForce, vector &restraintMoment) const
Calculate the restraint position, force and moment.
Six degree of freedom motion for a rigid body.
point anchor_
Anchor point, where the spring is attached to an immovable.