kaipartmann / Peridynamics.jl

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

Conditions that return a vector #123

Open kaipartmann opened 3 days ago

kaipartmann commented 3 days ago

Add the possibility for conditions to return a Vector, such as:

velocity_bc!(t -> SVector{3}(0.0, t, 0.0), body, :set_a)

This makes it possible to develop more complex boundary conditions with the direction dependent on t or p.

kaipartmann commented 3 days ago

This probably makes it necessary to reexport SVector.