PeriDyno 1.0.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
SemiImplicitHyperelasticitySolver.h
Go to the documentation of this file.
1#pragma once
2#include "../Bond.h"
4
6
8
9namespace dyno
10{
11 template<typename TDataType>
13 {
15
16 public:
17 typedef typename TDataType::Real Real;
18 typedef typename TDataType::Coord Coord;
19 typedef typename TDataType::Matrix Matrix;
20 typedef typename ::dyno::TBond<TDataType> Bond;
21
24
25 void solveElasticity() override;
26
27 DEF_VAR(Real, StrainLimiting, 0.1, "");
28
29 public:
32
33 DEF_VAR(bool, IsAlphaComputed, true, "");
34
35 DEF_ARRAY_IN(Attribute, Attribute, DeviceType::GPU, "Particle Attribute");
36 DEF_ARRAY_IN(Real, Volume, DeviceType::GPU, "Particle volume");
37
38 DEF_ARRAYLIST_IN(Real, VolumePair, DeviceType::GPU, "");
39
40 protected:
42
44
45 private:
47
52
54
63
69
72
74
75 bool m_alphaCompute = true; // inversion control
76 };
77}
#define DECLARE_TCLASS(name, T1)
Definition Object.h:87
particle attribute 0x00000000: [31-30]material; [29]motion; [28]Dynamic; [27-8]undefined yet,...
Definition Attribute.h:26
DEF_ARRAY_IN(Attribute, Attribute, DeviceType::GPU, "Particle Attribute")
DEF_VAR(Real, StrainLimiting, 0.1, "")
DEF_ARRAY_IN(Real, Volume, DeviceType::GPU, "Particle volume")
DEF_VAR_IN(EnergyModels< Real >, EnergyModels, "")
DEF_VAR(bool, IsAlphaComputed, true, "")
DEF_ARRAYLIST_IN(Real, VolumePair, DeviceType::GPU, "")
DEF_VAR_IN(EnergyType, EnergyType, "")
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25
Array< T, DeviceType::GPU > DArray
Definition Array.inl:89