Go to the documentation of this file.
83 vector force = -coeff_*model_.v(model_.master(bodyID_)).l();
102 coeffs_.readEntry(
"coeff", coeff_);
addToRunTimeSelectionTable(restraint, externalForce, dictionary)
defineTypeNameAndDebug(externalForce, 0)
Holds the motion state of rigid-body model.
A class for handling words, derived from Foam::string.
static constexpr const zero Zero
Global zero (0)
linearDamper(const word &name, const dictionary &dict, const rigidBodyModel &model)
Construct from components.
Ostream & endl(Ostream &os)
Add newline and flush stream.
messageStream Info
Information stream (uses stdout - output is on the master only)
word name(const complex &c)
Return string representation of complex.
tmp< Field< Type > > T() const
Return the field transpose (only defined for second rank tensors)
virtual bool read(const dictionary &dict)
Update properties from given dictionary.
Basic rigid-body model representing a system of rigid-bodies connected by 1-6 DoF joints.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Macros for easy insertion into run-time selection tables.
virtual void restrain(scalarField &tau, Field< spatialVector > &fx, const rigidBodyModelState &state) const
Accumulate the restraint internal joint forces into the tau field and.
virtual bool read(const dictionary &dict)
Update properties from given dictionary.
virtual void write(Ostream &) const =0
Write.
Base class for defining restraints for rigid-body dynamics.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
virtual ~linearDamper()
Destructor.
SpatialVector< scalar > spatialVector
SpatialVector of scalars.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual void write(Ostream &) const
Write.