SPHSystemData3.h
Go to the documentation of this file.
139 Vector3D Interpolate(const Vector3D& origin, const ConstArrayAccessor1<Vector3D>& values) const;
void BuildNeighborLists()
Builds neighbor lists with kernel radius.
double Interpolate(const Vector3D &origin, const ConstArrayAccessor1< double > &values) const
Returns interpolated value at given origin point.
void Serialize(std::vector< uint8_t > *buffer) const override
Serializes this SPH system data to the buffer.
void SetTargetDensity(double targetDensity)
Sets the target density of this particle system.
double SumOfKernelNearby(const Vector3D &position) const
Returns sum of kernel function evaluation for each nearby particle.
ConstArrayAccessor1< double > GetPressures() const
Returns the pressure array accessor (immutable).
SPHSystemData3 & operator=(const SPHSystemData3 &other)
Copies from other SPH system data.
void BuildNeighborSearcher()
Builds neighbor searcher with kernel radius.
double GetKernelRadius() const
Returns the kernel radius in meters unit.
void SetRelativeKernelRadius(double relativeRadius)
Sets the relative kernel radius.
double GetTargetSpacing() const
Returns the target particle spacing in meters.
1-D read-only array accessor class.
Definition: ArrayAccessor1.h:185
Definition: pybind11Utils.h:24
double GetTargetDensity() const
Returns the target density of this particle system.
double LaplacianAt(size_t i, const ConstArrayAccessor1< double > &values) const
Returns the Laplacian of the given values at i-th particle.
void Deserialize(const std::vector< uint8_t > &buffer) override
Deserializes this SPH system data from the buffer.
ConstArrayAccessor1< double > GetDensities() const
Returns the density array accessor (immutable).
void UpdateDensities()
Updates the density array with the latest particle positions.
void SetTargetSpacing(double spacing)
Sets the target particle spacing in meters.
double GetRelativeKernelRadius() const
Returns the relative kernel radius.
Vector3D GradientAt(size_t i, const ConstArrayAccessor1< double > &values) const
Returns the gradient of the given values at i-th particle.
void Set(const SPHSystemData3 &other)
Copies from other SPH system data.
std::shared_ptr< SPHSystemData3 > SPHSystemData3Ptr
Shared pointer for the SPHSystemData3 type.
Definition: SPHSystemData3.h:191
void SetKernelRadius(double kernelRadius)
Sets the absolute kernel radius.