Simple 2D locked fault model
Do you have questions or comments about this model? Ask them here! (You'll first need to log in.)
WHAT IS IT?
(a general understanding of what the model is trying to show or explain)
HOW IT WORKS
(what rules the agents use to create the overall behavior of the model)
HOW TO USE IT
(how to use the model, including a description of each of the items in the Interface tab)
THINGS TO NOTICE
(suggested things for the user to notice while running the model)
THINGS TO TRY
(suggested things for the user to try to do (move sliders, switches, etc.) with the model)
EXTENDING THE MODEL
(suggested things to add or change in the Code tab to make the model more complicated, detailed, accurate, etc.)
NETLOGO FEATURES
(interesting or unusual features of NetLogo that the model uses, particularly in the Code tab; or where workarounds were needed for missing features)
RELATED MODELS
(models in the NetLogo Models Library and elsewhere which are of related interest)
CREDITS AND REFERENCES
(a reference to the model's URL on the web if it has one, as well as any other necessary credits, citations, and links)
Comments and Questions
globals[pos pos2 slp v r c] turtles-own [x] to setup ca ;; clear the world create-turtles 10;; make 10 new turtles [ask turtle 0 [set xcor 15 set ycor 0.5] ask turtle 2 [set xcor -15 set ycor 0.5] ask turtle 3 [set xcor 8 set ycor 0.5] ask turtle 4 [set xcor -8 set ycor 0.5] ask turtle 5 [set xcor 1.3 set ycor 0.5] ask turtle 1 [set xcor -1.3 set ycor 0.5] ask turtle 6 [set xcor 23 set ycor 0.5] ask turtle 7 [set xcor -23 set ycor 0.5] ask turtle 8 [set xcor 30 set ycor 0.5] ask turtle 9 [set xcor -30 set ycor 0.5] ] ask patches [set pcolor white ] ask patches with [pxcor = 0 and pycor > 1] [set pcolor brown] ask patches with [pxcor = 0 and pycor < 2] [set pcolor brown] reset-ticks end to go move-turtles plot-v tick end to move-turtles ask turtles [set x xcor] ask turtles with [xcor > 1] [ set heading 0 set pos atan ((abs(xcor) ) / D) 1 set pos2 atan ((abs(xcor) ) / D2) 1 set slp pos - pos2 forward slp * -0.00001 * S / pi ] ask turtles with [xcor < 1] [ set heading 180 set pos atan ((abs(xcor) ) / D) 1 set pos2 atan ((abs(xcor) ) / D2) 1 set slp pos - pos2 forward slp * -0.00001 * S / pi ] end to plot-v set r r + 0.01 set c 0.0185 set v (- S * c / 3.14) * (atan ( r / D) 1 - atan ( r / D2) 1) plotxy r v end
There are 2 versions of this model.
Attached files
File | Type | Description | Last updated | |
---|---|---|---|---|
Simple 2D locked fault model.png | preview | Preview for 'Simple 2D locked fault model' | over 8 years ago, by john keith magali | Download |
This model does not have any ancestors.
This model does not have any descendants.