40 #ifndef linearAxialAngularSpring_H 41 #define linearAxialAngularSpring_H 80 TypeName(
"linearAxialAngularSpring");
virtual ~linearAxialAngularSpring()
Destructor.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Base class for defining restraints for rigid-body dynamics.
virtual bool read(const dictionary &dict)
Update properties from given dictionary.
Holds the motion state of rigid-body model.
virtual autoPtr< restraint > clone() const
Construct and return a clone.
virtual void write(Ostream &) const
Write.
const word & name() const
Return the name.
A class for handling words, derived from Foam::string.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
virtual void restrain(scalarField &tau, Field< spatialVector > &fx, const rigidBodyModelState &state) const
Accumulate the restraint internal joint forces into the tau field and.
TypeName("linearAxialAngularSpring")
Runtime type information.
Linear axial angular spring restraint.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Basic rigid-body model representing a system of rigid-bodies connected by 1-6 DoF joints...
Tensor of scalars, i.e. Tensor<scalar>.
linearAxialAngularSpring(const word &name, const dictionary &dict, const rigidBodyModel &model)
Construct from components.