PeriDyno 1.0.0
Loading...
Searching...
No Matches
SemiAnalyticalSurfaceTensionModel.h
Go to the documentation of this file.
1#pragma once
3
4#include "Topology/TriangleSet.h"
5
6namespace dyno
7{
16 typedef typename TopologyModule::Triangle Triangle;
17 class Attribute;
18
19 template<typename TDataType>
21 {
23 public:
24 typedef typename TDataType::Real Real;
25 typedef typename TDataType::Coord Coord;
26
29
30 public:
31
32 DEF_VAR(Real, SmoothingLength, Real(0.006), "smoothing length");//0.006
33 DEF_VAR_IN(Real, TimeStep, "Time step size!");
34
35 DEF_ARRAY_IN(Coord, Position, DeviceType::GPU, "");
36 DEF_ARRAY_IN(Coord, Velocity, DeviceType::GPU, "");
37 DEF_ARRAY_IN(Coord, ForceDensity, DeviceType::GPU, "");
38
39 DEF_ARRAY_IN(Attribute, Attribute, DeviceType::GPU, "Particle attribute");
40
42
43 DEF_VAR(Real, SurfaceTension, Real(0.055), "surface tension");
44 DEF_VAR(Real, AdhesionIntensity, Real(30.0), "adhesion");
45 DEF_VAR(Real, RestDensity, Real(1000), "Rest Density");
46
49 };
50}
#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, Velocity, DeviceType::GPU, "")
DEF_ARRAY_IN(Coord, ForceDensity, DeviceType::GPU, "")
DEF_VAR(Real, RestDensity, Real(1000), "Rest Density")
DEF_VAR_IN(Real, TimeStep, "Time step size!")
DEF_VAR(Real, AdhesionIntensity, Real(30.0), "adhesion")
DEF_INSTANCE_IN(TriangleSet< TDataType >, TriangleSet, "")
DEF_VAR(Real, SmoothingLength, Real(0.006), "smoothing length")
DEF_ARRAY_IN(Coord, Position, DeviceType::GPU, "")
DEF_ARRAY_IN(Attribute, Attribute, DeviceType::GPU, "Particle attribute")
DEF_VAR(Real, SurfaceTension, Real(0.055), "surface tension")
Vector< PointType, 3 > Triangle
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25
FArray< T, DeviceType::GPU > DeviceArrayField
Definition Field.h:279
TopologyModule::Triangle Triangle
The standard summation density.