35 #ifndef RBD_restraints_linearSpring_H 36 #define RBD_restraints_linearSpring_H 65 point refAttachmentPt_;
A list of keyword definitions, which are a keyword followed by any number of values (e...
linearSpring(const word &name, const dictionary &dict, const rigidBodyModel &model)
Construct from components.
Base class for defining restraints for rigid-body dynamics.
virtual void write(Ostream &) const
Write.
virtual bool read(const dictionary &dict)
Update properties from given dictionary.
A simple wrapper around bool so that it can be read as a word: true/false, on/off, yes/no, y/n, t/f, or none/any.
TypeName("linearSpring")
Runtime type information.
Holds the motion state of rigid-body model.
virtual autoPtr< restraint > clone() const
Construct and return a clone.
const word & name() const
Return the name.
A class for handling words, derived from string.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual void restrain(scalarField &tau, Field< spatialVector > &fx, const rigidBodyModelState &state) const
Accumulate the retraint internal joint forces into the tau field and.
virtual ~linearSpring()
Destructor.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Basic rigid-body model representing a system of rigid-bodies connected by 1-6 DoF joints...