Static Cartesian Mesh


julia> # generate data pos = [ PVector(-1.0, -1.0, -1.0), PVector(-1.0, +1.0, -1.0), PVector(+1.0, -1.0, -1.0), PVector(+1.0, +1.0, -1.0), PVector(-1.0, -1.0, +1.0), PVector(-1.0, +1.0, +1.0), PVector(+1.0, -1.0, +1.0), PVector(+1.0, +1.0, +1.0), ];ERROR: UndefVarError: `PVector` not defined in `Main` Suggestion: check for spelling errors or missing imports. Hint: a global variable of this name also exists in PhysicalParticles.
julia> dataArray = [Ball() for i in 1:8];ERROR: UndefVarError: `Ball` not defined in `Main` Suggestion: check for spelling errors or missing imports. Hint: a global variable of this name also exists in PhysicalParticles.
julia> assign_particles(dataArray, :Pos, pos)ERROR: UndefVarError: `assign_particles` not defined in `Main` Suggestion: check for spelling errors or missing imports. Hint: a global variable of this name also exists in PhysicalParticles.
julia> assign_particles(dataArray, :Mass, 1.0)ERROR: UndefVarError: `assign_particles` not defined in `Main` Suggestion: check for spelling errors or missing imports. Hint: a global variable of this name also exists in PhysicalParticles.
julia> # construct mesh m = MeshCartesianStatic(dataArray)ERROR: UndefVarError: `dataArray` not defined in `Main` Suggestion: add an appropriate import or assignment. This global was declared but not assigned.
julia> m.rhoERROR: UndefVarError: `m` not defined in `Main` Suggestion: add an appropriate import or assignment. This global was declared but not assigned.
julia> # Check mass assignment sum(m.rho) * m.config.Δ[1]^3 ≈ 8.0ERROR: UndefVarError: `m` not defined in `Main` Suggestion: add an appropriate import or assignment. This global was declared but not assigned.