12#include "Topology/TriangleSet.h"
23 template <
typename TDataType>
26 template <
typename TDataType>
31 typedef typename TDataType::Real
Real;
32 typedef typename TDataType::Coord
Coord;
#define DECLARE_TCLASS(name, T1)
SpikyKernel< Real > m_kernel
std::shared_ptr< SemiAnalyticalSummationDensity< TDataType > > mCalculateDensity
DEF_VAR(uint, InterationNumber, 3, "")
DEF_VAR_IN(Real, SmoothingLength, "")
smoothing length A positive number represents the radius of neighborhood for each point
DEF_VAR_IN(Real, SamplingDistance, "")
DEF_ARRAY_IN(Coord, Velocity, DeviceType::GPU, "")
Particle velocity.
DEF_INSTANCE_IN(TriangleSet< TDataType >, TriangleSet, "")
TopologyModule::Triangle Triangle
void constrain() override
DEF_ARRAYLIST_IN(int, NeighborParticleIds, DeviceType::GPU, "")
neighbor list of particles, only neighbor pairs of particle-particle are counted
DEF_ARRAYLIST_IN(int, NeighborTriangleIds, DeviceType::GPU, "")
neighbor list of particles and mesh triangles, only neighbor pairs of particle-triangle are counted
DEF_VAR_IN(Real, TimeStep, "")
~SemiAnalyticalPBD() override
DArray< Coord > mPosBuffer
DEF_ARRAY_IN(Coord, Position, DeviceType::GPU, "")
Particle position.
DArray< Coord > mDeltaPos
Vector< PointType, 3 > Triangle
This is an implementation of AdditiveCCD based on peridyno.
Array< T, DeviceType::GPU > DArray