81 vector force = -coeff_*model_.v(model_.master(bodyID_)).l();
100 coeffs_.lookup(
"coeff") >> coeff_;
addToRunTimeSelectionTable(restraint, externalForce, dictionary)
virtual void write(Ostream &) const
Write.
defineTypeNameAndDebug(externalForce, 0)
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual ~linearDamper()
Destructor.
Base class for defining restraints for rigid-body dynamics.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Macros for easy insertion into run-time selection tables.
Holds the motion state of rigid-body model.
bool read(const char *, int32_t &)
virtual bool read(const dictionary &dict)
Update properties from given dictionary.
linearDamper(const word &name, const dictionary &dict, const rigidBodyModel &model)
Construct from components.
A class for handling words, derived from string.
SpatialVector< scalar > spatialVector
SpatialVector of scalars.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
virtual void restrain(scalarField &tau, Field< spatialVector > &fx, const rigidBodyModelState &state) const
Accumulate the retraint internal joint forces into the tau field and.
tmp< Field< Type > > T() const
Return the field transpose (only defined for second rank tensors)
Basic rigid-body model representing a system of rigid-bodies connected by 1-6 DoF joints...
virtual void write(Ostream &) const =0
Write.
virtual bool read(const dictionary &dict)
Update properties from given dictionary.