PeriDyno
1.0.0
Loading...
Searching...
No Matches
D:
Peridyno
peridyno
src
Dynamics
Cuda
ParticleSystem
GhostParticles.h
Go to the documentation of this file.
1
#pragma once
2
#include "
ParticleSystem.h
"
3
#include "
Collision/Attribute.h
"
4
5
namespace
dyno
6
{
7
template
<
typename
TDataType>
8
class
GhostParticles
:
public
ParticleSystem
<TDataType>
9
{
10
DECLARE_TCLASS
(
GhostParticles
, TDataType)
11
public
:
12
typedef
typename
TDataType::Real
Real
;
13
typedef
typename
TDataType::Coord
Coord
;
14
15
GhostParticles
();
16
~GhostParticles
()
override
;
17
18
public
:
19
DEF_ARRAY_STATE
(
Coord
, Normal, DeviceType::GPU,
"Ghost particle normals"
);
20
21
DEF_ARRAY_STATE
(
Attribute
,
Attribute
, DeviceType::GPU,
"Particle attributes"
);
22
23
protected
:
24
void
resetStates
()
override
;
25
};
26
27
IMPLEMENT_TCLASS
(
GhostParticles
, TDataType)
28
}
Attribute.h
ParticleSystem.h
DECLARE_TCLASS
#define DECLARE_TCLASS(name, T1)
Definition
Object.h:87
IMPLEMENT_TCLASS
#define IMPLEMENT_TCLASS(name, T1)
Definition
Object.h:103
dyno::Attribute
particle attribute 0x00000000: [31-30]material; [29]motion; [28]Dynamic; [27-8]undefined yet,...
Definition
Attribute.h:26
dyno::GhostParticles
Definition
GhostParticles.h:9
dyno::GhostParticles::Real
TDataType::Real Real
Definition
GhostParticles.h:12
dyno::GhostParticles::resetStates
void resetStates() override
Definition
GhostParticles.cpp:28
dyno::GhostParticles::GhostParticles
GhostParticles()
Definition
GhostParticles.cpp:10
dyno::GhostParticles::Coord
TDataType::Coord Coord
Definition
GhostParticles.h:13
dyno::GhostParticles::DEF_ARRAY_STATE
DEF_ARRAY_STATE(Attribute, Attribute, DeviceType::GPU, "Particle attributes")
dyno::GhostParticles::~GhostParticles
~GhostParticles() override
Definition
GhostParticles.cpp:23
dyno::GhostParticles::DEF_ARRAY_STATE
DEF_ARRAY_STATE(Coord, Normal, DeviceType::GPU, "Ghost particle normals")
dyno::ParticleSystem::ParticleSystem
ParticleSystem()
Definition
ParticleSystem.cpp:8
dyno
This is an implementation of AdditiveCCD based on peridyno.
Definition
Array.h:25
Generated by
1.13.2