FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
NetWithAttractor.h
1
9
10#pragma once
11
12// Includes
13#include "AttractorBase.h"
14
15#include <net/NetStructure.h>
16
17// Class definition
19{
20public:
22 NetWithAttractor(std::string simObjectName, ISimObjectCreator* creator);
23
26
27 virtual void OdeFcn(const double dT, const double* const adX, double* const adXDot) const;
28 virtual void FinalSetup(const double dT, const double* const adX, ISimObjectCreator* const creator);
29
30protected:
31 void AddNetForces(const double dT, const double* const adX);
32 void AddAttractorForces(const double* const adX);
33
34 std::vector<AttractorBase*> m_VAttractors;
35 // unsigned long m_IInAttractorPos; ///< The index of the input port with position of the attractor (such as a net bin).
36 // unsigned long m_IInAttractorVel; ///< The index of the input port with velocity of the attractor (such as a net bin).
37 std::string m_attractorName;
38
39 double* m_padZero;
40 bool* m_isInBin;
41 // double m_breakawayForce;
42
43 // sfh::filters::IIR* m_forceFilter;
44};
Definition NetStructure.h:203
Class containing a net object with functionality to be affected by attractors.
Definition NetWithAttractor.h:19
NetWithAttractor(std::string simObjectName, ISimObjectCreator *creator)
The constructor sets the pointer to the output object and the parser object.
virtual void OdeFcn(const double dT, const double *const adX, double *const adXDot) const
Does nothing, as the object contains no states.
~NetWithAttractor()
The destructor deletes dynamically allocated memory.
std::string m_attractorName
The name of the attractor.
Definition NetWithAttractor.h:37