Skip to content

Commit 9dc1260

Browse files
authored
Merge pull request #444 from NetLogo/fix-hyphens
Fix markdown lists in INFO tabs
2 parents fa936cb + 1bf3e1e commit 9dc1260

File tree

73 files changed

+351
-166
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+351
-166
lines changed

3D/Code Examples/Network Example 3D.nlogox3d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ Use the turtle variable `label` to label the nodes and/or edges with some inform
7373
Try calculating some statistics about the network that forms, for example the average degree.
7474
7575
Try other rules for connecting nodes besides totally randomly. For example, you could:
76+
7677
- Connect every node to every other node.
7778
- Make sure each node has at least one edge going in or out.
7879
- Only connect nodes that are spatially close to each other.

3D/Sample Models/GasLab/GasLab Free Gas 3D.nlogox3d

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,7 @@ The basic principle of all GasLab models is the following algorithm (for more de
602602
## HOW TO USE IT
603603
604604
Initial settings:
605+
605606
- NUMBER-OF-PARTICLES: the number of gas particles.
606607
- TRACE?: Draws the path of one individual particle.
607608
- COLLIDE?: Turns collisions between particles on and off.
@@ -613,11 +614,13 @@ As in most NetLogo models, the first step is to press SETUP. It puts in the init
613614
The GO button runs the models again and again. This is a "forever" button.
614615
615616
Monitors:
617+
616618
- PERCENT FAST, PERCENT MEDIUM, PERCENT SLOW monitors: percent of particles with different speeds: fast (red), medium (green), and slow (blue).
617619
- AVERAGE SPEED: average speed of the particles.
618620
- AVERAGE ENERGY: average kinetic energy of the particles.
619621
620622
Plots:
623+
621624
- SPEED COUNTS: plots the number of particles in each range of speed (fast, medium or slow).
622625
- SPEED HISTOGRAM: speed distribution of all the particles. The gray line is the average value, and the black line is the initial average. The displayed values for speed are ten times the actual values.
623626
- ENERGY HISTOGRAM: the distribution of energies of all the particles, calculated as (m*v^2)/2. The gray line is the average value, and the black line is the initial average.

3D/Sample Models/GasLab/GasLab Single Collision 3D.nlogox3d

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,7 @@ The particles are modeled as hard balls with no internal energy except that whic
555555
Coloring of the particles is with respect to one speed (10). Particles with a speed less than 5 are blue, those that are more than 15 are red, while all in those in-between are green.
556556
557557
Particles behave according to the following rules:
558+
558559
1. A particle moves in a straight line without changing its speed, unless it collides with another particle or bounces off the wall. The particles are aimed to hit each other at the origin.
559560
2. Two particles "collide" if they find themselves on the same patch (the world is composed of a grid of small squares called patches).
560561
3. A random axis is chosen, as if they are two balls that hit each other and this axis is the line connecting their centers.
@@ -565,27 +566,32 @@ Particles behave according to the following rules:
565566
## HOW TO USE IT
566567
567568
Initial settings:
569+
568570
- COLLISION-ANGLE: Sets the angle that separates the pink and blue particles before the collision.
569571
- REFLECTION-ANGLE: Sets the angle of the axis connecting the particles' centers when they collide with respect to the vertical axis. To calculate the outcome of the collision, the speeds of the two particles are projected onto this new axis and the new speeds and headings are computed. Other GasLab models use random values for "REFLECTION-ANGLE", but this model allows you to experiment with them one by one. This angle is called THETA in the code of the model.
570572
- INIT-PINK-SPEED (or BLUE): Sets the initial speed of the pink (or blue) particle.
571573
- PINK-MASS (or BLUE): Sets the mass of the pink (or blue) particle.
572574
573575
Other settings:
576+
574577
- SHOW-CENTER-OF-MASS?: If ON, the center of mass of the system will be shown in gray.
575578
- WIGGLE?: If ON, the initial particles will be placed in a random location to start.
576579
577580
Buttons for running the model:
581+
578582
- SETUP
579583
- RUN-MODE: Chooses between ONE COLLISION (just one run), ALL-COLLISION-ANGLES (loops through all the collision angles with 15-degrees steps) and ALL-REFLECTION-ANGLES (loops through all the reflection angles with 15-degrees steps).
580584
- GO
581585
582586
Monitors:
587+
583588
- ENERGY OF PINK (or -BLUE): Shows the current energy of the pink (or blue) particle.
584589
- SPEED OF PINK (or -BLUE): Shows the current speed of the pink (or blue) particle.
585590
- AVERAGE SPEED: Shows the average of the speeds of the two particles.
586591
- TOTAL ENERGY: Shows the sum of the energies of the two particles.
587592
588593
Plots:
594+
589595
- SPEEDS: speed of each of the particles over time.
590596
591597
## THINGS TO NOTICE

3D/Sample Models/GasLab/GasLab Two Gas 3D.nlogox3d

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -694,17 +694,21 @@ This model is the simplest gas model in the suite of GasLab models. The particl
694694
695695
The basic principle of all GasLab models is the following algorithm (for more details, see the model "GasLab Gas in a Box"):
696696
697-
1) A particle moves in a straight line without changing its speed, unless it collides with another particle or bounces off the wall.
698-
2) Two particles "collide" if their surfaces touch. In this model, the time at which any collision is about to occur is measured, and particles move forward until the first pair to collide touch one another. They are collided, and the cycle repeats.
699-
3) The vector of collision for the particles describes the direction of the line connecting their centers.
700-
4) The particles exchange momentum and energy only along this line, conforming to the conservation of momentum and energy for elastic collisions.
701-
5) Each particle is assigned its new speed, direction and energy.
697+
1. A particle moves in a straight line without changing its speed, unless it collides with another particle or bounces off the wall.
698+
2. Two particles "collide" if their surfaces touch. In this model, the time at which any collision is about to occur is measured, and particles move forward until the first pair to collide touch one another. They are collided, and the cycle repeats.
699+
3. The vector of collision for the particles describes the direction of the line connecting their centers.
700+
4. The particles exchange momentum and energy only along this line, conforming to the conservation of momentum and energy for elastic collisions.
701+
5. Each particle is assigned its new speed, direction and energy.
702702
703703
## HOW TO USE IT
704704
705+
Buttons:
706+
705707
- OPEN: opens the door between the two chambers and allows particles to pas through
706708
- CLOSE: closes the door separating the two chambers
707709
710+
Sliders / Switches:
711+
708712
- NUM-MAGENTAS and NUM-CYANS: the number of gas particles of each type.
709713
- COLLIDE?: Turns collisions between particles on and off.
710714
- MAGENTA-INIT-SPEED and CYAN-INIT-SPEED: the initial speed of each type of particle -- particles of the same type start with the same speed.
@@ -713,12 +717,15 @@ The basic principle of all GasLab models is the following algorithm (for more de
713717
- OPENING-SIZE: define the size of the "door" between the two chambers
714718
715719
As in most NetLogo models, the first step is to press SETUP. It puts in the initial conditions you have set with the sliders. Be sure to wait till the SETUP button stops before pushing GO.
720+
716721
The GO button runs the models again and again. This is a "forever" button.
717722
718723
Monitors:
724+
719725
MAGENTAS IN LEFT CHAMBER, CYANS IN RIGHT CHAMBER, AVERAGE SPEED MAGENTA and CYAN, and AVERAGE ENERGY MAGENTA and CYAN help you track the changes after the "door" has been opened.
720726
721727
Plots:
728+
722729
- Average Speeds: Shows the change in average speed for each type of particle.
723730
- Average Energy: Shows the change in average energy for each type of particle.
724731
@@ -747,9 +754,10 @@ Calculate how long the model takes to reach equilibrium with different particle
747754
Set the number of cyan particles to zero. This is a model of a gas expanding into a vacuum. This experiment was first done by Joule, using two insulated chambers separated by a valve. He found that the temperature of the gas remained the same when the valve was opened. Why would this be true? Is this model consistent with that observation?
748755
749756
Try some extreme situations, to test your intuitive understanding:
750-
-- masses the same, speeds of the two particles very different.
751-
-- speeds the same, masses very different.
752-
-- a very small number of one kind of particle -- almost, but not quite a vacuum. What happens to those few particles, and how do they affect the other kind?
757+
758+
- masses the same, speeds of the two particles very different.
759+
- speeds the same, masses very different.
760+
- a very small number of one kind of particle -- almost, but not quite a vacuum. What happens to those few particles, and how do they affect the other kind?
753761
754762
Try relating quantitatively the ratio of the equilibrium speeds of both gases after the wall is opened to the ratio of the masses of both gases. How are they related?
755763

Alternative Visualizations/Heat Diffusion - Alternative Visualization.nlogox

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -258,29 +258,34 @@ Initialize the plate and edges to have temperatures that equal their respective
258258
## HOW TO USE IT
259259
260260
There are five temperature sliders which enable users to set four fixed edge temperatures and one initial plate temperature:
261-
-- TOP-TEMP - Top edge temperature
262-
-- BOTTOM-TEMP - Bottom edge temperature
263-
-- INITIAL-PLATE-TEMP - Initial plate temperature
264-
-- LEFT-TEMP - Left edge temperature
265-
-- RIGHT-TEMP - Right edge temperature
261+
262+
- TOP-TEMP - Top edge temperature
263+
- BOTTOM-TEMP - Bottom edge temperature
264+
- INITIAL-PLATE-TEMP - Initial plate temperature
265+
- LEFT-TEMP - Left edge temperature
266+
- RIGHT-TEMP - Right edge temperature
266267
267268
There is a slider and a chooser that govern the thermal diffusivity of the plate. Selecting a material in the chooser, then pressing the UPDATE ALPHA button will set the value of ALPHA based on the material selected:
268-
-- ALPHA - The alpha constant of thermal diffusivity
269-
-- MATERIAL-TYPE - The value of the chooser is a material from the above chart. You must press UPDATE ALPHA for this to change the value of ALPHA.
269+
270+
- ALPHA - The alpha constant of thermal diffusivity
271+
- MATERIAL-TYPE - The value of the chooser is a material from the above chart. You must press UPDATE ALPHA for this to change the value of ALPHA.
270272
271273
272274
There are four buttons with the following functions:
273-
-- SETUP - Initializes the model
274-
-- GO - Runs the simulation indefinitely
275-
-- GO ONCE - Runs the simulation for 1 time step
276-
-- UPDATE ALPHA - press this if you want to set ALPHA to a preset value based on the material selected by the MATERIAL-TYPE chooser
275+
276+
- SETUP - Initializes the model
277+
- GO - Runs the simulation indefinitely
278+
- GO ONCE - Runs the simulation for 1 time step
279+
- UPDATE ALPHA - press this if you want to set ALPHA to a preset value based on the material selected by the MATERIAL-TYPE chooser
277280
278281
VISUALIZATION
282+
279283
There is also a chooser, COLOR-SCHEME, which determines what scheme is used for coloring the plate. It has 4 values:
280-
RED - colors the plate a shade of red based on its temperature, uses NetLogo's SCALE-COLOR primitive (white is coldest, black is hottest)
281-
RGB - colors the plate from a spectrum of RGB colors based on its temperature, uses the Palette extension
282-
HSB - colors the plate from a spectrum of HSB colors based on its temperature
283-
DIVERGENT - colors the plate from a spectrum of colors from a divergent palette based on its temperature, uses the Palette extension
284+
285+
* RED - colors the plate a shade of red based on its temperature, uses NetLogo's SCALE-COLOR primitive (white is coldest, black is hottest)
286+
* RGB - colors the plate from a spectrum of RGB colors based on its temperature, uses the Palette extension
287+
* HSB - colors the plate from a spectrum of HSB colors based on its temperature
288+
* DIVERGENT - colors the plate from a spectrum of colors from a divergent palette based on its temperature, uses the Palette extension
284289
285290
## THINGS TO NOTICE
286291
@@ -308,6 +313,7 @@ Set the parameters on the temperature sliders. Pick a value for ALPHA (or pick
308313
Try different materials to observe the heat transfer speed. How does this compare to physical experiments?
309314
310315
Try the following sample settings:
316+
311317
- Top:100, Bottom:0, Left:0, Right:0
312318
- Top:0, Bottom:100, Left:100, Right:100
313319
- Top:0, Bottom:66, Left:99, Right:33

Curricular Models/BEAGLE Evolution/Bird Breeder.nlogox

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -825,29 +825,31 @@ There are 4 players in this selective breeding scenario and you are one of them.
825825
You start with $500 and are trying to earn at least the target $ reward for success (set with the slider REWARD-FOR-SUCCESS. Each breeding event also has an assigned cost $ (COST-FOR-BREEDING). If you wish to breed your birds with another player's, you may press the REQUEST CONTRIBUTION BIRDS button. This will cost COST-CONTRIBUTION (set by this slider) for each bird contributed.
826826
827827
Initial settings (chooser):
828+
828829
- SCENARIO: chooser that determines whether you will be breeding "birds" or "dragons".
829830
830831
Buttons:
831-
- SETUP: Press this first to assign the SCENARIO you will be playing
832-
- GO:
833-
Press this second to start the breeding challenge
834832
833+
- SETUP: Press this first to assign the SCENARIO you will be playing
834+
- GO: Press this second to start the breeding challenge
835835
- NEXT INSTRUCTION: Use this to display a series of instructions about how to user the interface and mouse interactions with the birds.
836-
837836
- REQUEST CONTRIBUTION BIRDS FOR BREEDING: When pressed one bird from each computer player is loaned for breeding to one of the top three breeding sites.
838837
- BREED CURRENT BIRDS AT BREEDING SITE: When pressed, all breeding sites that have at least one male and one female in them will produce a set of eggs in the remaining available spaces (up to four at that breeding site). If more than one male or females are at that site, only one female and male will breed.
839838
- REMOVE ALL EGGS FROM BREEDING SITES: Removes all eggs currently in all breeding sites.
840839
- SELL GOAL BIRD: Attempts to sell the bird you have been trying to breed. This will generate either a warning (if you don't have the bird yet in your cages) or a reward message if you do have the bird. If you have the bird, the bird is removed from your cages and you will be given $, set by the REWARD-FOR-GOAL-BIRD slider.
841840
842841
Sliders:
842+
843843
- COST-BREEDING: cost in $ for every pair of birds that you breed.
844844
- COST-CONTRIBUTION: cost in $ of pressing the REQUEST CONTRIBUTION BIRDS.
845845
- REWARD-FOR-GOAL-BIRD: $ rewarded for selling one goal bird.
846846
847847
Switches:
848+
848849
- SHOW-GENETICS?: Show the Mendelian representation of the genes that each bird or egg has.
849850
850851
Monitors:
852+
851853
- Your funds $: Shows the money you currently have in your bank account.
852854
853855
## THINGS TO NOTICE

Curricular Models/BEAGLE Evolution/EACH/Divide The Cake.nlogox

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ Agents randomly wander the map.
143143
When there are only two agents on a patch of grass, each of the agents tries to eat a certain amount of the grass.
144144
145145
There are three types of agents:
146+
146147
- Modest agents (brown) who try to eat one-third of the grass on a patch
147148
- Fair agents (red) who try to eat one-half of the grass on a patch
148149
- Greed agents (blue) who try to eat two-thirds of the grass on a patch

Curricular Models/CT-STEM/Calorimetry.nlogox

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,6 +1171,7 @@ As the model runs:
11711171
If you would like to pick up where you left off, feel free to use the SAVE-EXPERIMENT feature. This will save the model as a .model file. You can later use the LOAD-EXPERIMENT button to upload that saved model.
11721172
11731173
Plots/Monitors:
1174+
11741175
- The graph on the right records all three sensor readings over time
11751176
- The observed temperatures for each sensor can also be seen in the monitors beneath the graph
11761177
@@ -1193,6 +1194,7 @@ To see what the approximate mass of each particle is, type this in the command c
11931194
This model is primarily designed for an "Energy in Chemical Reactions" unit hosted at ct-stem.northwestern.edu and authored by Carole Namowicz, but is also designed for other relevant units.
11941195
11951196
#### Goals
1197+
11961198
- Simulating realistic molecule representation (including ions), movement, and collision.
11971199
- Simulating realistic energy in chemical reactions.
11981200
- Simulating a calorimeter by placing sensors in the model and measuring the energy change in the closed system.

Curricular Models/CT-STEM/Free Fall.nlogox

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ As you press the PROCEED FOR ONE STEP button, change the mass of the ball and th
165165
166166
## CURRICULAR USES
167167
168-
Students can explore this computational model of a ball in free fall to
168+
Students can explore this computational model of a ball in free fall to:
169+
169170
- make observations regarding changes in its motion and energy to learn about conservation of mechanical energy.
170171
- relate position, velocity, and acceleration.
171172
- be introduced to some basics of computational thinking.

Curricular Models/CT-STEM/Hardy Weinberg Equilibrium.nlogox

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ Mice in this model can have two fur colors, dark and light. This fur color is de
244244
Each clock tick is a generation in this model.
245245
246246
At each generation, the following happens:
247+
247248
- a mouse moves in a random direction
248249
- if it finds a partner,
249250
- it produces 2 offspring with the partner
@@ -257,17 +258,21 @@ Each mating pair produces two children. Each child receives one of the alleles f
257258
258259
## HOW TO USE IT
259260
260-
1. First, set the initial population by adjusting the following sliders:
261-
- INITIAL-HOMOZYGOUS-DOMINANT-MALES (AA males)
262-
- INITIAL-HETEROZYGOUS-MALES (Aa/aA males)
263-
- INITIAL-HOMOZYGOUS-RECESSIVE-MALES (aa males)
264-
- INITIAL-HOMOZYGOUS-DOMINANT-FEMALES (AA females)
265-
- INITIAL-HETEROZYGOUS-FEMALES (Aa/aA females)
266-
- INITIAL-HOMOZYGOUS-RECESSIVE-FEMALES (aa females)
267-
2. Press the SETUP button
268-
3. Press the GO-ONCE button to advance one generation. Press the GO-FOREVER button to observe the passage of many generations.
269-
4. Watch the monitors and plots to see allele frequencies, phenotype frequencies, and population count
270-
5. Watch the monitors to the right of the VIEW to see Hardy-Weinberg values, genotype frequencies, and a counter for phenotypes
261+
Before running the model, first, set the initial population by adjusting the following sliders:
262+
263+
* INITIAL-HOMOZYGOUS-DOMINANT-MALES (AA males)
264+
* INITIAL-HETEROZYGOUS-MALES (Aa/aA males)
265+
* INITIAL-HOMOZYGOUS-RECESSIVE-MALES (aa males)
266+
* INITIAL-HOMOZYGOUS-DOMINANT-FEMALES (AA females)
267+
* INITIAL-HETEROZYGOUS-FEMALES (Aa/aA females)
268+
* INITIAL-HOMOZYGOUS-RECESSIVE-FEMALES (aa females)
269+
270+
Then...
271+
272+
1. Press the SETUP button
273+
2. Press the GO-ONCE button to advance one generation. Press the GO-FOREVER button to observe the passage of many generations.
274+
3. Watch the monitors and plots to see allele frequencies, phenotype frequencies, and population count
275+
4. Watch the monitors to the right of the VIEW to see Hardy-Weinberg values, genotype frequencies, and a counter for phenotypes
271276
272277
INITIAL-HOMOZYGOUS-DOMINANT-MALES, INITIAL-HETEROZYGOUS-MALES, INITIAL-HOMOZYGOUS-RECESSIVE-MALES, INITIAL-HOMOZYGOUS-DOMINANT-FEMALES, INITIAL-HETEROZYGOUS-FEMALES, and INITIAL-HOMOZYGOUS-RECESSIVE-FEMALES are all sliders that determine the initial population of the mice population, these sliders can range from 0 to 200.
273278

0 commit comments

Comments
 (0)