PeriDyno 1.0.0
Loading...
Searching...
No Matches
ElasticBody.cpp
Go to the documentation of this file.
1#include "ElasticBody.h"
2
4
5namespace dyno
6{
8
9 template<typename TDataType>
11 : Peridynamics<TDataType>()
12 {
13 auto peri = std::make_shared<ProjectivePeridynamics<TDataType>>();
14 this->stateTimeStep()->connect(peri->inTimeStep());
15 this->stateHorizon()->connect(peri->inHorizon());
16 this->stateReferencePosition()->connect(peri->inX());
17 this->statePosition()->connect(peri->inY());
18 this->stateVelocity()->connect(peri->inVelocity());
19 this->stateBonds()->connect(peri->inBonds());
20 this->animationPipeline()->pushModule(peri);
21 }
22
23 template<typename TDataType>
28
30}
#define DEFINE_CLASS(name)
Definition Object.h:140
#define IMPLEMENT_TCLASS(name, T1)
Definition Object.h:103
~ElasticBody() override
std::shared_ptr< AnimationPipeline > animationPipeline()
Definition Node.cpp:311
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25