PeriDyno 1.0.0
Loading...
Searching...
No Matches
SemiAnalyticalPositionBasedFluidModel.h
Go to the documentation of this file.
1
8#pragma once
10
11#include "Collision/Attribute.h"
12
13#include "Topology/TriangleSet.h"
14
34
35namespace dyno
36{
37 template <typename TDataType>
39 {
41 public:
42 typedef typename TDataType::Real Real;
43 typedef typename TDataType::Coord Coord;
44
47
48 public:
49 DEF_VAR(Real, SmoothingLength, 0.01, "Smoothing length");
50
51 DEF_VAR_IN(Real, TimeStep, "Time step size");
52
53 DEF_ARRAY_IN(Coord, Position, DeviceType::GPU, ""); //current particle position
54 DEF_ARRAY_IN(Coord, Velocity, DeviceType::GPU, ""); //current particle velocity
55
57 };
58} // namespace dyno
#define DECLARE_TCLASS(name, T1)
Definition Object.h:87
DEF_VAR_IN(Real, TimeStep, "Time step size")
DEF_INSTANCE_IN(TriangleSet< TDataType >, TriangleSet, "")
DEF_ARRAY_IN(Coord, Position, DeviceType::GPU, "")
DEF_ARRAY_IN(Coord, Velocity, DeviceType::GPU, "")
DEF_VAR(Real, SmoothingLength, 0.01, "Smoothing length")
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25