Difference between revisions of "SimplePop"

From Numerus
Jump to navigation Jump to search
Line 1: Line 1:
[[File:simplepop.png|thumb|Simple Population Model: Design Frame]]
[[File:simplepop.png|thumb|Simple Population Model: Design Frame]]
[[File:simplepoprun.png|thumb|Simple Population Model: Runtime Frame]]
[[File:simplepoprun.png|thumb|Simple Population Model: Runtime Frame]]
This very simple model demonstrate the basic features of stocks and flows. The equation in the flow is evaluated at each time step and adds its value to the value of the stock, which keeps a running tally of total population. There are both growth and loss dynamics, which rely on the values respectively defined by the sliders ''birth_rate'' and ''death_rate''. times the total population at a given time step.
This very simple model demonstrate the basic features of stocks and flows.  
 
The Design Frame shows a Stock with incoming and outgoing Flows. The equations in the Flows ''births'' and ''deaths'' are evaluated at each time step and add (respectively subtracts) their value to the value of the Stock ''pop'', which keeps a running tally of total population. These Flows use value provided by the sliders ''birth_rate'' and ''death_rate'', respectively, multiplying them by the current value of ''pop''.

Revision as of 21:17, 29 January 2018

Simple Population Model: Design Frame
Simple Population Model: Runtime Frame

This very simple model demonstrate the basic features of stocks and flows.

The Design Frame shows a Stock with incoming and outgoing Flows. The equations in the Flows births and deaths are evaluated at each time step and add (respectively subtracts) their value to the value of the Stock pop, which keeps a running tally of total population. These Flows use value provided by the sliders birth_rate and death_rate, respectively, multiplying them by the current value of pop.