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