PeriDyno 1.0.0
Loading...
Searching...
No Matches
Thread.h
Go to the documentation of this file.
1#pragma once
2#include "ThreadSystem.h"
3#include "Bond.h"
4
5namespace dyno
6{
11 template<typename TDataType>
12 class Thread : public ThreadSystem<TDataType>
13 {
14 DECLARE_TCLASS(Thread, TDataType)
15 public:
16 typedef typename TDataType::Real Real;
17 typedef typename TDataType::Coord Coord;
18 typedef typename ::dyno::TBond<TDataType> Bond;
19
21 virtual ~Thread();
22
24 bool scale(Real s);
25
26
27 public:
28 DEF_VAR(Real, Horizon, 0.01, "Horizon");
29
30 DEF_ARRAYLIST_STATE(Bond, RestShape, DeviceType::GPU, "Storing neighbors");
31
32 protected:
33 void resetStates() override;
34
35
36
37 private:
38
39 };
40}
#define DECLARE_TCLASS(name, T1)
Definition Object.h:87
bool scale(Real s)
void resetStates() override
DEF_VAR(Real, Horizon, 0.01, "Horizon")
::dyno::TBond< TDataType > Bond
Definition Thread.h:18
virtual ~Thread()
TDataType::Coord Coord
Definition Thread.h:17
DEF_ARRAYLIST_STATE(Bond, RestShape, DeviceType::GPU, "Storing neighbors")
bool translate(Coord t)
TDataType::Real Real
Definition Thread.h:16
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25