PeriDyno 1.0.0
Loading...
Searching...
No Matches
RigidWaterCoupling.h
Go to the documentation of this file.
1
16#pragma once
17
18#include "OceanBase.h"
19#include "Vessel.h"
20
21#include "Algorithm/Reduction.h"
22
23namespace dyno
24{
25 template<typename TDataType>
26 class RigidWaterCoupling : public Node
27 {
29 public:
30 typedef typename TDataType::Coord Coord;
31 typedef typename TDataType::Matrix Matrix;
32
35
36 std::string getNodeType() override { return "Height Fields"; }
37 public:
38 DEF_VAR(Real, Damping, Real(0.98), "Translational damping");
39 DEF_VAR(Real, RotationalDamping, Real(0.9), "Rotational damping");
40
43
44 protected:
45 void resetStates() override;
46 void updateStates() override;
47
48 private:
51
53 };
54
56}
#define DECLARE_TCLASS(name, T1)
Definition Object.h:87
#define IMPLEMENT_TCLASS(name, T1)
Definition Object.h:103
double Real
Definition Typedef.inl:23
DEF_NODE_PORT(OceanBase< TDataType >, Ocean, "Ocean")
DEF_VAR(Real, RotationalDamping, Real(0.9), "Rotational damping")
DEF_NODE_PORTS(Vessel< TDataType >, Vessel, "Vessel")
std::string getNodeType() override
void updateStates() override
DEF_VAR(Real, Damping, Real(0.98), "Translational damping")
void resetStates() override
~RigidWaterCoupling() override
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25
Array< T, DeviceType::GPU > DArray
Definition Array.inl:89