Solar System Model

Solar System Model preview image

1 collaborator

Default-person Aidan Savona (Author)

Tags

(This model has yet to be categorized with any tags)
Visible to everyone | Changeable by everyone
Model was written in NetLogo 6.1.0 • Viewed 182 times • Downloaded 46 times • Run 0 times
Download the 'Solar System 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.)


WHAT IS IT?

(it is a solor system model modelling the sun with the 8 planets orbiting it. end-of-universe makes all the planets move towards the sun. Stars lets you make stars, which you can clear with kill stars. )

HOW IT WORKS

(the planets face the sun,turn 90 degrees, and go foward 0.1, then repeat that at each tick.)

HOW TO USE IT

(press the different buttons to change things about the model, setup will set up the sun and the planets, and go will start the planets orbits)

THINGS TO TRY

(press all the buttons, you can bring in stars, or kill planets and control your solor system)

EXTENDING THE MODEL

(you could add color to the orbit and make a spiral, or make a rocket ship flying through the sky )

NETLOGO FEATURES

( ask turtles with [who > 0 ] is asking the turtles to apply something to the turtles while excluding other turtles. for example, if you wanted to have one turtle have one color, and have the other turtles with another color, you could use ask turtles with [who > 0 ][ set color 0] which makes all the turtles that are not turtle 0 black)

RELATED MODELS

(gravtitation in the models library)

CREDITS AND REFERENCES

(Mr. Hubbel, Sage, Jack, Models library, netlogo dictionary, youtube)

Comments and Questions

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

Click to Run Model

to setup

  ca
  set-default-shape turtles "circle"
  create-turtles 1
  ask turtles
  [setxy 0 0
  set size 10
  set color 45]

  create-turtles 8

  [setxy random-xcor random-ycor]
  ask turtles  with [who > 0 ] [
    set color 96
    face  turtle 0
    ]
  ask patches[ set pcolor 10 ]
  reset-ticks
end 

to go


  ask turtles  with [who > 0 ] [
    face turtle 0
    rt 90
    fd .1  ]

tick
end 

to kill-planets

  ask turtles  with [who > 0 ][
    die]

  tick
end 

to endofuniverse

  ask turtles with [who > 0 ] [face turtle 0
    fd .1
  ]

tick
end 

to clear
  ca
  reset-ticks
end 

to stars
  ask patches[ set pcolor black]
  ask n-of  15  patches  [ set pcolor white]

  tick
end 

to kill-stars

  ask patches [ set pcolor black ]

  tick
end 
























There is only one version of this model, created over 5 years ago by Aidan Savona.

Attached files

File Type Description Last updated
Solar System Model.png preview Preview for 'Solar System Model' over 5 years ago, by Aidan Savona Download

This model does not have any ancestors.

This model does not have any descendants.