kaipartmann / Peridynamics.jl

A Julia package for parallel peridynamics simulations
https://kaipartmann.github.io/Peridynamics.jl/
MIT License
29 stars 6 forks source link

Uniform point clouds #95

Open kaipartmann opened 3 weeks ago

kaipartmann commented 3 weeks ago

Currently, a point cloud is assumed to be arbitrary distributed in space. However, if it could be guaranteed that it is uniformly distributed with a known point spacing, this would allow for performance improvements and other things like volume correction, see https://github.com/kaipartmann/Peridynamics.jl/issues/32#issuecomment-2097641189.

kaipartmann commented 3 weeks ago

Draft:

abstract type AbstractDiscretization end

struct PointCloud <: AbstractDiscretization
    position::Matrix{Float64}
    volume::Vector{Float64}
end

struct UniformPointCloud <: AbstractDiscretization
    ΔX::Float64
    position::Matrix{Float64}
    volume::Vector{Float64}
end