Fhsim
Marine systems simulation
TrawlCableInterface.h
1
9
#ifndef CONSTRAINTCABLE_INTERFACE_H
10
#define CONSTRAINTCABLE_INTERFACE_H
11
12
#include "JointConstraint.h"
13
#include "CollisionManager.h"
14
15
namespace
CoRiBoDynamics
{
16
17
class
ConstraintCableInterface
:
public
JointConstraint
{
18
public
:
19
ConstraintCableInterface
(
ConstraintSolver
* solver,
CollisionManager
* collisionManager,
int
finalElement,
double
frequencyCoefficient,
double
Gamma,
double
elementLength);
20
21
virtual
void
ComputeConstraints
(
const
double
T,
const
double
*
const
X);
22
23
double
GetTimeConstant();
24
ConstraintSolver
* GetConstraintSolver();
25
CollisionManager
* GetCollisionManager();
26
size_t
ConnectElement(
int
index,
const
vec3& vector,
const
Quat& orientation);
27
void
SetConnectedUnit(
int
index,
double
strength);
28
29
protected
:
30
ConstraintSolver
* m_ConstraintSolver;
31
CollisionManager
* m_CollisionManager;
32
double
m_frequencyCoefficient;
33
double
m_Gamma;
34
int
m_finalElement;
35
double
m_elementLength;
36
std::vector<RigidCoupling,Eigen::aligned_allocator<RigidCoupling>> m_coupling;
37
std::vector<double> m_strength;
38
};
39
40
}
41
#endif
CoRiBoDynamics::CollisionManager
Definition:
CollisionManager.h:37
CoRiBoDynamics::ConstraintCableInterface
Definition:
TrawlCableInterface.h:17
CoRiBoDynamics::ConstraintCableInterface::ComputeConstraints
virtual void ComputeConstraints(const double T, const double *const X)
CoRiBoDynamics::ConstraintSolver
Definition:
ConstraintSolver.h:31
CoRiBoDynamics::JointConstraint
Definition:
JointConstraint.h:17
CoRiBoDynamics
Definition:
CollisionManager.h:6
reloadrepos
fhsim_extras
src
trawl_mooring_interaction
TrawlCableInterface.h
Generated by
1.9.4