PeriDyno 1.0.0
Loading...
Searching...
No Matches
PositionBasedFluidModel.h
Go to the documentation of this file.
1#pragma once
3
5
6namespace dyno
7{
16 template<typename TDataType>
18 {
20 public:
21 typedef typename TDataType::Real Real;
22 typedef typename TDataType::Coord Coord;
23
26
27 public:
28 DEF_VAR(Real, SamplingDistance, 0.005, "Sampling distance");
29 DEF_VAR(Real, SmoothingLength, 0.006, "Smoothing length");
30
31 DEF_VAR_IN(Real, TimeStep, "Time step size!");
32
33 DEF_ARRAY_IN(Coord, Position, DeviceType::GPU, "");
34 DEF_ARRAY_IN(Coord, Velocity, DeviceType::GPU, "");
35
36 DEF_ARRAY_IN(Attribute, Attribute, DeviceType::GPU, "");
37 };
38}
#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(Coord, Position, DeviceType::GPU, "")
DEF_ARRAY_IN(Attribute, Attribute, DeviceType::GPU, "")
DEF_VAR_IN(Real, TimeStep, "Time step size!")
DEF_ARRAY_IN(Coord, Velocity, DeviceType::GPU, "")
DEF_VAR(Real, SamplingDistance, 0.005, "Sampling distance")
DEF_VAR(Real, SmoothingLength, 0.006, "Smoothing length")
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25