Skip to content

Commit 9787ac0

Browse files
committed
Refactor meshbuilder parameters and update particle return logic in dem.jl
1 parent 657dbef commit 9787ac0

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/dem.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ the grid size in the MPM simulation.
106106
dem_xmin, dem_xmax = minimum(dem[:, 1]), maximum(dem[:, 1])
107107
dem_ymin, dem_ymax = minimum(dem[:, 2]), maximum(dem[:, 2])
108108
end
109-
ξ0 = meshbuilder(dem_xmin : h : dem_xmax, dem_ymin : h : dem_ymax)
109+
ξ0 = meshbuilder([dem_xmin, dem_xmax], [dem_ymin, dem_ymax], h)
110110
if trimbounds.coord get_polygon([0 0; 1 0; 0 1]).coord
111111
@info "trimming particles outside the trimbounds"
112112
# py_polygon = Polygon(trimbounds)
@@ -354,8 +354,9 @@ than the dem. `h` is the space of grid size in `z` direction used in the MPM sim
354354
pts_cen[:, 3] .+= (h * 0.5) .+ z_oft
355355

356356
# populate the particles in each cell
357-
pts = filling_pts(pts_cen, h)
358-
return pts
357+
#pts = filling_pts(pts_cen, h)
358+
#return pts
359+
return pts_cen
359360
end
360361

361362
"""

0 commit comments

Comments
 (0)