32    template<
typename TDataType>
 
   37        typedef typename TDataType::Real 
Real;
 
   38        typedef typename TDataType::Coord 
Coord;
 
   74        DEF_VAR(
int, IterationNumber, 5, 
"Iteration number of the PBD solver");
 
 
#define DECLARE_TCLASS(name, T1)
 
#define IMPLEMENT_TCLASS(name, T1)
 
particle attribute 0x00000000: [31-30]material; [29]motion; [28]Dynamic; [27-8]undefined yet,...
 
This is an implementation of the iterative density solver integrated into the Position Based Dynamics...
 
DEF_ARRAYLIST_IN(int, NeighborIds, DeviceType::GPU, "Neighboring particles' ids")
Neighboring particles' ids.
 
DEF_VAR(Real, RestDensity, 1000, "Reference density")
 
~IterativeDensitySolver() override
 
DArray< Coord > mDeltaPos
 
DEF_ARRAY_IN(Coord, Position, DeviceType::GPU, "Input particle position")
Particle positions.
 
DEF_VAR(int, IterationNumber, 5, "Iteration number of the PBD solver")
 
DEF_ARRAY_IN(Attribute, Attribute, DeviceType::GPU, "Particle attribute")
Attribute Particle attribute.
 
DEF_VAR(Real, Kappa, Real(1), "")
 
std::shared_ptr< SummationDensity< TDataType > > mSummation
 
DEF_ARRAY_OUT(Real, Density, DeviceType::GPU, "Final particle density")
Final particle densities.
 
DArray< Coord > mPositionOld
 
DEF_VAR_IN(Real, TimeStep, "Time Step")
 
Arithmetic< Real > * m_arithmetic
 
DEF_ARRAY_IN(Coord, Velocity, DeviceType::GPU, "Input particle velocity")
Particle velocities.
 
The standard summation density.
 
This is an implementation of AdditiveCCD based on peridyno.
 
Array< T, DeviceType::GPU > DArray