2121#include < chrono/physics/ChLoad.h>
2222#include < chrono/physics/ChSystem.h>
2323
24- using namespace chrono ;
25-
2624// =============================================================================
2725class ChLoadAddedMass : public chrono ::ChLoadCustomMultiple {
2826 public:
@@ -39,8 +37,8 @@ class ChLoadAddedMass : public chrono::ChLoadCustomMultiple {
3937 * @param system pointer to system containing the bodies, used for getting system mass matrix size at any time.
4038 */
4139 ChLoadAddedMass (const std::vector<HydroData::BodyInfo>& body_info_struct,
42- std::vector<std::shared_ptr<ChLoadable>>& bodies,
43- ChSystem* system);
40+ std::vector<std::shared_ptr<chrono:: ChLoadable>>& bodies,
41+ chrono:: ChSystem* system);
4442
4543 /* *
4644 * @brief "Virtual" copy constructor (covariant return type). Required from chrono inheritance.
@@ -56,8 +54,8 @@ class ChLoadAddedMass : public chrono::ChLoadCustomMultiple {
5654 * Called automatically at each Update().
5755 * The M*a term is not added: to this end one could use LoadIntLoadResidual_Mv afterward.
5856 */
59- virtual void ComputeQ (ChState* state_x, // /< state position to evaluate Q
60- ChStateDelta* state_w // /< state speed to evaluate Q
57+ virtual void ComputeQ (chrono:: ChState* state_x, // /< state position to evaluate Q
58+ chrono:: ChStateDelta* state_w // /< state speed to evaluate Q
6159 ) override {}
6260
6361 /* *
@@ -71,7 +69,7 @@ class ChLoadAddedMass : public chrono::ChLoadCustomMultiple {
7169 * @param state_x state position to evaluate jacobians
7270 * @param state_w state speed to evaluate jacobians
7371 */
74- virtual void ComputeJacobian (ChState* state_x, ChStateDelta* state_w) override ;
72+ virtual void ComputeJacobian (chrono:: ChState* state_x, chrono:: ChStateDelta* state_w) override ;
7573
7674 /* *
7775 * @brief Computes LoadIntLoadResidual_Mv for vector w, const c, and vector R. Also carried over from chrono
@@ -84,12 +82,14 @@ class ChLoadAddedMass : public chrono::ChLoadCustomMultiple {
8482 * @param w the w vector
8583 * @param c a scaling factor
8684 */
87- virtual void LoadIntLoadResidual_Mv (ChVectorDynamic<>& R, const ChVectorDynamic<>& w, const double c) override ;
85+ virtual void LoadIntLoadResidual_Mv (chrono::ChVectorDynamic<>& R,
86+ const chrono::ChVectorDynamic<>& w,
87+ const double c) override ;
8888
8989 private:
90- ChSystem* system;
91- ChMatrixDynamic<double > infinite_added_mass; // /< added mass at infinite frequency in global coordinates
92- ChMatrixDynamic<double >
90+ chrono:: ChSystem* system;
91+ chrono:: ChMatrixDynamic<double > infinite_added_mass; // /< added mass at infinite frequency in global coordinates
92+ chrono:: ChMatrixDynamic<double >
9393 infinite_added_mass_system; // /< added mass at infinite frequency in global coordinates (system matrix)
9494 virtual bool IsStiff () override { return true ; } // this to force the use of the inertial M, R and K matrices
9595};
0 commit comments