Grids

SmoothedParticles.GridMethod
Grid(dr::Float64, symm::Symbol)::Grid

Define a grid with a given characterstic length $\text{d}r$ and symmetry type symm. Characterstic length means that one particle occupies a volume $\text{d}r^n$, where $n$ is the dimension. Supported symmetry types are

2D:

  1. :square (square grid)
  2. :hexagonal (hexagrid, dual of isometric grid)
  3. :vogel (grid based on Vogel's spiral, see: https://en.wikipedia.org/wiki/Fermat%27s_spiral)

3D:

  1. :cubic (cubic grid, see: https://en.wikipedia.org/wiki/Cubiccrystalsystem)
  2. :facecentered (cubic face-centered grid)
  3. :bodycentered (cubic body-centered grid)
  4. :diamond (diamond cubic grid, see: https://en.wikipedia.org/wiki/Diamond_cubic)
source
SmoothedParticles.generate_particles!Method
generate_particles!(sys::ParticleSystem,
                    grid::Grid,
                    geometry::Shape,
                    constructor::Function)

Create particles using constructor(x::RealVector)::AbstractParticle at every grid point inside a given shape.

source