PeriDyno 1.0.0
Loading...
Searching...
No Matches
ComputeParticleAnisotropy.h
Go to the documentation of this file.
1
16#pragma once
17#include "Matrix/Transform3x3.h"
19
20namespace dyno
21{
22 template<typename TDataType>
24 {
25 public:
26 typedef typename TDataType::Real Real;
27 typedef typename TDataType::Coord Coord;
28 typedef typename TDataType::Matrix Matrix;
29 typedef typename ::dyno::Transform<Real, 3> Transform;
30
33
34 void compute() override;
35
36 public:
37 DEF_VAR(Real, SmoothingLength, Real(0.0125), "smoothing length");
38
39 DEF_ARRAY_IN(Coord, Position, DeviceType::GPU, "Particle position");
40
41 DEF_ARRAYLIST_IN(int, NeighborIds, DeviceType::GPU, "");
42
43 DEF_ARRAY_OUT(Transform, Transform, DeviceType::GPU, "transform");
44 };
45}
::dyno::Transform< Real, 3 > Transform
DEF_ARRAYLIST_IN(int, NeighborIds, DeviceType::GPU, "")
DEF_ARRAY_OUT(Transform, Transform, DeviceType::GPU, "transform")
DEF_VAR(Real, SmoothingLength, Real(0.0125), "smoothing length")
DEF_ARRAY_IN(Coord, Position, DeviceType::GPU, "Particle position")
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25