Simple 2D locked fault model

Simple 2D locked fault model preview image

1 collaborator

Tags

(This model has yet to be categorized with any tags)
Visible to everyone | Changeable by the author
Model was written in NetLogo 6.0 • Viewed 203 times • Downloaded 12 times • Run 0 times
Download the 'Simple 2D locked fault model' modelDownload this modelEmbed this model

Do you have questions or comments about this model? Ask them here! (You'll first need to log in.)


Comments and Questions

Please start the discussion about this model! (You'll first need to log in.)

Click to Run Model

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.

Uploaded by When Description Download
john keith magali about 7 years ago Updated version. Creeping added Download this version
john keith magali about 7 years ago Initial upload Download this version

Attached files

File Type Description Last updated
Simple 2D locked fault model.png preview Preview for 'Simple 2D locked fault model' about 7 years ago, by john keith magali Download

This model does not have any ancestors.

This model does not have any descendants.