PeriDyno 1.0.0
Loading...
Searching...
No Matches
LinearDamping.h
Go to the documentation of this file.
1
16#pragma once
18
19namespace dyno
20{
26 template<typename TDataType>
28 {
30 public:
31 typedef typename TDataType::Real Real;
32 typedef typename TDataType::Coord Coord;
33
35 ~LinearDamping() override;
36
37 public:
38 DEF_VAR(Real, DampingCoefficient, 0.9, "");
39
43 DEF_ARRAY_IN(Coord, Velocity, DeviceType::GPU, "");
44
45 protected:
46 void constrain() override;
47 };
48
50}
#define DECLARE_TCLASS(name, T1)
Definition Object.h:87
#define IMPLEMENT_TCLASS(name, T1)
Definition Object.h:103
A linear damping model.
DEF_VAR(Real, DampingCoefficient, 0.9, "")
TDataType::Real Real
~LinearDamping() override
DEF_ARRAY_IN(Coord, Velocity, DeviceType::GPU, "")
Particle velocity.
void constrain() override
TDataType::Coord Coord
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25