63 externalForce_(nullptr)
84 const vector force = externalForce_().value(state.
t());
85 const vector moment(location_ ^ force);
89 Info<<
" location " << location_
91 <<
" moment " << moment
107 coeffs_.lookup(
"location") >> location_;
Macros for easy insertion into run-time selection tables.
static autoPtr< Function1< Type > > New(const word &name, const Function1s::unitConversions &units, const dictionary &dict)
Select from dictionary.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Base class for defining restraints for rigid-body dynamics.
virtual bool read(const dictionary &dict)
Update properties from given dictionary.
virtual void write(Ostream &) const =0
Write.
Time-dependent external force restraint using Function1.
virtual void write(Ostream &) const
Write.
virtual bool read(const dictionary &dict)
Update properties from given dictionary.
virtual void restrain(scalarField &tau, Field< spatialVector > &fx, const rigidBodyModelState &state) const
Accumulate the retraint internal joint forces into the tau field and.
externalForce(const word &name, const dictionary &dict, const rigidBodyModel &model)
Construct from components.
virtual ~externalForce()
Destructor.
Holds the motion state of rigid-body model.
scalar t() const
Return access to the time.
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 any number of values (e....
A class for handling words, derived from string.
addToRunTimeSelectionTable(restraint, externalForce, dictionary)
defineTypeNameAndDebug(externalForce, 0)
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.
const dimensionSet dimForce
const dimensionSet dimTime
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
SpatialVector< scalar > spatialVector
SpatialVector of scalars.