25 template<
typename TDataType>
30 typedef typename TDataType::Real
Real;
31 typedef typename TDataType::Coord
Coord;
#define DECLARE_TCLASS(name, T1)
#define IMPLEMENT_TCLASS(name, T1)
An implementation of the energy-based surface model proposed by He et al.[2024]. Refer to "Robust Sim...
DEF_VAR_IN(Real, TimeStep, "Time step size!")
DEF_ARRAY_IN(Coord, Velocity, DeviceType::GPU, "")
DEF_VAR(Real, RestDensity, Real(1000), "Rest density")
DEF_ARRAY_IN(Coord, Position, DeviceType::GPU, "")
DEF_ARRAYLIST_IN(int, NeighborIds, DeviceType::GPU, "Neighboring particles' ids")
Neighboring particles.
DArray< Real > mFreeSurfaceEnergy
DEF_VAR(Real, Kappa, Real(1), "Surface tension coefficient")
~SurfaceEnergyForce() override
This is an implementation of AdditiveCCD based on peridyno.
Array< T, DeviceType::GPU > DArray