Go to the documentation of this file.
66 externalForce_(
nullptr),
88 const vector force = externalForce_().value(state.
t());
89 const vector moment(location_ ^ force);
93 Info<<
" location " << location_
95 <<
" moment " << moment
111 coeffs_.readEntry(
"location", location_);
128 externalForce_().writeData(os);
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)
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual bool read(const dictionary &dict)
Update properties from given dictionary.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
scalar t() const
Return access to the time.
messageStream Info
Information stream (uses stdout - output is on the master only)
word name(const complex &c)
Return string representation of complex.
virtual bool read(const dictionary &dict)
Update properties from given dictionary.
virtual ~externalForce()
Destructor.
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,...
virtual void restrain(scalarField &tau, Field< spatialVector > &fx, const rigidBodyModelState &state) const
Accumulate the retraint internal joint forces into the tau field and.
Macros for easy insertion into run-time selection tables.
Time-dependent external force restraint using Function1.
externalForce(const word &name, const dictionary &dict, const rigidBodyModel &model)
Construct from components.
virtual void write(Ostream &) const =0
Write.
virtual void write(Ostream &) const
Write.
Base class for defining restraints for rigid-body dynamics.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
SpatialVector< scalar > spatialVector
SpatialVector of scalars.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...