FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
CableBranchedAttractor.h
1#pragma once
35#include "AttractorNetBin.h"
36#include "InternalCableWithAttractor.h"
37
38#include <cable/CableBranched.h>
39
40#include <string>
41
42
46{
47public:
48 CableBranchedAttractor(std::string simObjectName, ISimObjectCreator* creator);
49 void FinalSetup(const double dT, const double* const adX, ISimObjectCreator* const creator) override;
50
51protected:
53 void PrepareSections(double dT, const double* adX) const override;
54
56 void AddJunctionNodeForce(const double pos[3], const double vel[3], double force[3]) const override;
57
58 const AttractorNetBin* m_attractor = nullptr;
60};
The net bin of Seine/Vessel: a sphere that pulls the net and warp nodes inside it.
Definition AttractorNetBin.h:16
Definition CableBranchedAttractor.h:46
AttractorNetBin::Motion m_attractorMotion
As PrepareSections found it.
Definition CableBranchedAttractor.h:59
void PrepareSections(double dT, const double *adX) const override
Takes the attractor's motion at (dT, adX) for the junction nodes and gives it to every section.
const AttractorNetBin * m_attractor
The attractor AttractorName names, from FinalSetup.
Definition CableBranchedAttractor.h:58
void AddJunctionNodeForce(const double pos[3], const double vel[3], double force[3]) const override
Adds the attractor's pull on a junction node, at the motion PrepareSections took.
Definition CableBranched.h:243
Where the attractor is, how fast it moves, and how strongly it pulls.
Definition AttractorNetBin.h:20