FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
CableBranchedAttractor.h
1#pragma once
63#include "AttractorNetBin.h"
64#include "InternalCableWithAttractor.h"
65
66#include <cable/CableBranched.h>
67
68#include <string>
69
70
74{
75public:
76 CableBranchedAttractor(std::string simObjectName, ISimObjectCreator* creator);
77 void FinalSetup(const double dT, const double* const adX, ISimObjectCreator* const creator) override;
78
79protected:
81 void PrepareSections(double dT, const double* adX) const override;
82
84 void AddJunctionNodeForce(const double pos[3], const double vel[3], double force[3]) const override;
85
86 const AttractorNetBin* m_attractor = nullptr;
88};
The net bin of Seine/Vessel: a sphere that pulls the net and warp nodes inside it.
Definition AttractorNetBin.h:16
Definition CableBranchedAttractor.h:74
AttractorNetBin::Motion m_attractorMotion
As PrepareSections found it.
Definition CableBranchedAttractor.h:87
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:86
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:247
Where the attractor is, how fast it moves, and how strongly it pulls.
Definition AttractorNetBin.h:20