PeriDyno 1.0.0
Loading...
Searching...
No Matches
ProjectionBasedFluidModel.h
Go to the documentation of this file.
1#pragma once
3
5
6namespace dyno
7{
8 template<typename TDataType>
10 {
12 public:
13 typedef typename TDataType::Real Real;
14 typedef typename TDataType::Coord Coord;
15
18
19 public:
20 DEF_VAR(Real, SmoothingLength, Real(0.006), "The smoothing length in SPH");
21 DEF_VAR(Real, SamplingDistance, Real(0.005), "Particle samplilng distance");
22
23 DEF_VAR_IN(Real, TimeStep, "Time step size!");
24
25 DEF_ARRAY_IN(Coord, Position, DeviceType::GPU, "");
26 DEF_ARRAY_IN(Coord, Velocity, DeviceType::GPU, "");
27
28 DEF_ARRAY_IN(Attribute, Attribute, DeviceType::GPU, "");
29
30 DEF_ARRAY_IN(Coord, Normal, DeviceType::GPU, "");
31 };
32}
#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, "")
DEF_VAR(Real, SamplingDistance, Real(0.005), "Particle samplilng distance")
DEF_VAR_IN(Real, TimeStep, "Time step size!")
DEF_ARRAY_IN(Coord, Position, DeviceType::GPU, "")
DEF_VAR(Real, SmoothingLength, Real(0.006), "The smoothing length in SPH")
DEF_ARRAY_IN(Coord, Velocity, DeviceType::GPU, "")
DEF_ARRAY_IN(Coord, Normal, DeviceType::GPU, "")
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25