49 const rigidBodyModel& model
53 bodyID_(model.bodyID(
dict.get<
word>(
"body"))),
54 bodyIndex_(model.master(bodyID_)),
83 os.writeEntry(
"type",
type());
84 os.writeEntry(
"body", model_.name(bodyID_));
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Base class for defining restraints for rigid-body dynamics.
label bodyID_
ID of the body the restraint is applied to.
restraint(const word &name, const dictionary &dict, const rigidBodyModel &model)
Construct from the dict dictionary and Time.
word name_
Name of the restraint.
const word & name() const
Return the name.
label bodyIndex_
Index of the body the force is applied to.
virtual bool read(const dictionary &dict)
Update properties from given dictionary.
virtual ~restraint()
Destructor.
dictionary coeffs_
Restraint model specific coefficient dictionary.
const dictionary & coeffDict() const
Return access to coeffs.
virtual void write(Ostream &) const =0
Write.
const rigidBodyModel & model_
Reference to the model.
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,...
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
OBJstream os(runTime.globalPath()/outputName)
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
#define defineRunTimeSelectionTable(baseType, argNames)
Define run-time selection table.