PeriDyno 1.0.0
Loading...
Searching...
No Matches
Bond.h
Go to the documentation of this file.
1
16#pragma once
17#include "Platform.h"
18
19namespace dyno
20{
24 template<typename TDataType>
25 class TBond
26 {
27 public:
28 typedef typename TDataType::Real Real;
29 typedef typename TDataType::Coord Coord;
30
31 DYN_FUNC TBond()
32 {
33 idx = -1;
34 mu = Real(1);
35 };
36
37 DYN_FUNC TBond(int id, Coord _xi)
38 {
39 idx = id;
40 xi = _xi;
41 }
42
43 int idx; // index of x'
44 Real mu = Real(1); // A history-dependent scalar-valued function whose value belongs to [0, 1]
45 Coord xi; // x' - x
46 };
47}
TDataType::Coord Coord
Definition Bond.h:29
Coord xi
Definition Bond.h:45
Real mu
Definition Bond.h:44
TDataType::Real Real
Definition Bond.h:28
DYN_FUNC TBond()
Definition Bond.h:31
DYN_FUNC TBond(int id, Coord _xi)
Definition Bond.h:37
int idx
Definition Bond.h:43
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25