81 restraintForce = -coeff_*motion.
v();
82 restraintMoment =
Zero;
86 Info<<
" force " << restraintForce
110 os.writeEntry(
"coeff", coeff_);
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Base class for defining restraints for sixDoF motions.
sixDoFRigidBodyMotionRestraint(const word &name, const dictionary &sDoFRBMRDict)
Construct from the sDoFRBMRDict dictionary and Time.
const word & name() const
Return the name.
virtual bool read(const dictionary &sDoFRBMRDict)
Update properties from given dictionary.
dictionary sDoFRBMRCoeffs_
Restraint model specific coefficient dictionary.
sixDoFRigidBodyMotionRestraints model. Linear spring.
virtual void write(Ostream &) const
Write.
virtual ~linearDamper()
Destructor.
virtual void restrain(const sixDoFRigidBodyMotion &motion, vector &restraintPosition, vector &restraintForce, vector &restraintMoment) const
Calculate the restraint position, force and moment.
linearDamper(const word &name, const dictionary &sDoFRBMRDict)
Construct from components.
virtual bool read(const dictionary &sDoFRBMRCoeff)
Update properties from given dictionary.
Six degree of freedom motion for a rigid body.
const vector & v() const
Return the current velocity.
bool report() const
Return the report Switch.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
OBJstream os(runTime.globalPath()/outputName)
Namespace for six DoF motion restraints.
messageStream Info
Information stream (stdout output on master, null elsewhere).
Ostream & endl(Ostream &os)
Add newline and flush stream.
static constexpr const zero Zero
Global zero (0).
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.