tMerge branch 'main' of https://github.com/esbenpalmstrom/granular-basin into m… | |
git clone git://src.adamsgaard.dk/granular-basin | |
Log | |
Files | |
Refs | |
README | |
--- | |
commit dcec4954da477abbe21e251e1294523b68a6db85 | |
parent e7551ffbc0c55ae09a354a408e239246874e9b13 | |
Author: esbenpalmstrom <[email protected]> | |
Date: Thu, 25 Nov 2021 14:19:08 +0100 | |
Merge branch 'main' of https://github.com/esbenpalmstrom/granular-basin into ma… | |
Diffstat: | |
M deform_basin.jl | 15 +++++++++------ | |
1 file changed, 9 insertions(+), 6 deletions(-) | |
--- | |
diff --git a/deform_basin.jl b/deform_basin.jl | |
t@@ -7,7 +7,7 @@ t_start = Dates.now() | |
# User defined settings | |
-id = "simulation500" # folder name of simulation | |
+id = "simulation1000" # folder name of simulation | |
hw_ratio = 0.2 # height/width ratio of indenter | |
grain_radius = 0.05 # grain radius of grains in indenter | |
t@@ -72,14 +72,16 @@ Granular.resetTime!(sim) | |
cd("$id") | |
sim.id = "deformed" | |
+sim.walls = Granular.WallLinear[] # remove existing walls | |
-# Add side walls | |
-if deformation_Type == true | |
- #wall facing east | |
- Granular.addWallLinearFrictionless!(sim,[1.,0.],e_pos) | |
+#find the edge grains of the carpet | |
-end | |
+ | |
+#add walls | |
+#facing east | |
+Granular.addWallLinearFrictionless(sim, [-1.,0.] | |
+ ) | |
while sim.time < sim.time_total | |
for grain in sim.grains | |
t@@ -89,6 +91,7 @@ while sim.time < sim.time_total | |
end | |
end | |
Granular.run!(sim,single_step = true) | |
+ | |
end | |
# Granular.resetTime!(sim) |