PeriDyno 0.9.2
Loading...
Searching...
No Matches
OneDimElasticityModule.h
Go to the documentation of this file.
1
12#pragma once
14
15namespace dyno {
16
17 template<typename TDataType>
19 {
20 public:
21 typedef typename TDataType::Real Real;
22 typedef typename TDataType::Coord Coord;
23
26
27 void constrain() override;
28
30
31 void setIterationNumber(int num) { m_iterNum.setValue(num); }
33
35
36 protected:
37 bool initializeImpl() override;
38
40
41 public:
47
56
58
59 protected:
65
68
69 private:
71 };
72}
DataType getData()
Definition Field.h:74
void setValue(T val)
Definition Field.h:111
bool initializeImpl() override
FVar< Real > m_lambda
Lame parameters m_lambda controls the isotropic part while mu controls the deviatoric part.
DeviceArrayField< Real > m_mass
DeviceArrayField< Coord > m_position
Particle position.
FVar< Real > m_distance
Horizon A positive number represents the radius of neighborhood for each point.
DeviceArrayField< Coord > m_velocity
Particle velocity.
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:24