granular-basin

tectonic deformation experiments with Granular.jl
git clone git://src.adamsgaard.dk/granular-basin # fast
git clone https://src.adamsgaard.dk/granular-basin.git # slow
Log | Files | Refs | README Back to index

commit e7551ffbc0c55ae09a354a408e239246874e9b13
parent b25b069b8e26363f4cb22bdd8e44e2970cb53bdb
Author: esbenpalmstrom <esbenpalmstroem@gmail.com>
Date:   Thu, 25 Nov 2021 14:18:23 +0100

minor changes

Diffstat:
Minit_basin.jl | 16+++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/init_basin.jl b/init_basin.jl @@ -204,19 +204,21 @@ for i = left_edge+(bot_r/2):bot_r*1.99:left_edge+length color = 1) end -for grain in sim.grains - for ic=1:length(grain.contact_age) - grain.contact_age[ic] = 1e16 - end -end - append!(sim.grains,carpet.grains) # add the carpet grains to the main simulation object # since the assignment will point to the carpet object, changes made to the carpet # object will appear in the main simulation object for grain in sim.grains - grain.strength_heal_rate = 1 # new bond stengthening + grain.contacts[:] .= 0 + grain.n_contacts = 0 +end + +for grain in sim.grains + for ic=1:size(grain.contact_age,1) + grain.contact_age[ic] = 1e16 + end + grain.strength_heal_rate = 1 # new bond stengthening end Granular.findContactsAllToAll!(carpet) # find the grain contacts