8    template<
typename TDataType>
 
   13        typedef typename TDataType::Real 
Real;
 
   14        typedef typename TDataType::Coord 
Coord;
 
 
#define DECLARE_TCLASS(name, T1)
 
particle attribute 0x00000000: [31-30]material; [29]motion; [28]Dynamic; [27-8]undefined yet,...
 
DEF_ARRAY_IN(Attribute, Attribute, DeviceType::GPU, "")
 
DEF_VAR_IN(Real, TimeStep, "Time step size!")
 
DEF_ARRAY_IN(Coord, Position, DeviceType::GPU, "")
 
virtual ~ProjectionBasedFluidModel()
 
ProjectionBasedFluidModel()
 
DEF_VAR_IN(Real, SmoothingLength, "The smoothing length in SPH")
 
DEF_VAR_IN(Real, SamplingDistance, "Particle samplilng distance")
 
DEF_ARRAY_IN(Coord, Velocity, DeviceType::GPU, "")
 
DEF_ARRAY_IN(Coord, Normal, DeviceType::GPU, "")
 
This is an implementation of AdditiveCCD based on peridyno.