PeriDyno 1.0.0
Loading...
Searching...
No Matches
Wake.h
Go to the documentation of this file.
1
16#pragma once
17#include "CapillaryWave.h"
18#include "Vessel.h"
19
20namespace dyno
21{
25 template<typename TDataType>
26 class Wake : public CapillaryWave<TDataType>
27 {
28 DECLARE_TCLASS(Wake, TDataType)
29 public:
30 typedef typename TDataType::Real Real;
31 typedef typename ::dyno::Vector<Real, 2> Coord2D;
32 typedef typename ::dyno::Vector<Real, 3> Coord3D;
33 typedef typename ::dyno::Vector<Real, 4> Coord4D;
34
36 ~Wake() override;
37
38 public:
39 DEF_VAR(Real, Magnitude, 0.2, "A parameter to control the strength of the tails");
40
42
43 protected:
44 void updateStates() override;
45
46 private:
47 void addTrails();
48
51 };
52}
#define DECLARE_TCLASS(name, T1)
Definition Object.h:87
DArray2D< Real > mWeight
Definition Wake.h:49
void updateStates() override
~Wake() override
void addTrails()
::dyno::Vector< Real, 3 > Coord3D
Definition Wake.h:32
DArray2D< Coord2D > mSource
Definition Wake.h:50
::dyno::Vector< Real, 2 > Coord2D
Definition Wake.h:31
DEF_VAR(Real, Magnitude, 0.2, "A parameter to control the strength of the tails")
DEF_NODE_PORT(Vessel< TDataType >, Vessel, "")
::dyno::Vector< Real, 4 > Coord4D
Definition Wake.h:33
TDataType::Real Real
Definition Wake.h:30
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25
Array2D< T, DeviceType::GPU > DArray2D
Definition Array2D.inl:90