Skip to content

Commit 13154bf

Browse files
committed
Convert NIELS to new sizes
1 parent 1844f37 commit 13154bf

6 files changed

Lines changed: 97 additions & 97 deletions

File tree

Curricular Models/NIELS/Current in a Wire HubNet.nlogox

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -498,51 +498,51 @@ end
498498
; See Info tab for full copyright and license.]]></code>
499499
<widgets>
500500
<view x="233" wrappingAllowedX="false" y="12" frameRate="30.0" minPycor="-25" height="259" showTickCounter="true" patchSize="5.0" fontSize="14" wrappingAllowedY="true" width="859" tickCounterLabel="ticks" maxPycor="25" updateMode="1" maxPxcor="85" minPxcor="-85"></view>
501-
<button x="5" y="130" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="200" sizeVersion="0">setup</button>
502-
<button x="100" y="175" height="35" disableUntilTicks="true" forever="true" kind="Observer" width="105" sizeVersion="0">go</button>
503-
<slider x="5" step="0.01" y="220" max="0.2" display="voltage" height="33" min="0.01" direction="Horizontal" default="0.1" variable="voltage" width="200" sizeVersion="0"></slider>
504-
<button x="6" y="382" height="33" disableUntilTicks="true" forever="false" kind="Observer" display="Watch An Electron" width="200" sizeVersion="0"><![CDATA[ask one-of electrons with [ xcor > max-pxcor - 5 ] [
501+
<button x="5" y="171" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="200">setup</button>
502+
<button x="100" y="216" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="105">go</button>
503+
<slider x="5" step="0.01" y="266" max="0.2" width="200" display="voltage" height="50" min="0.01" direction="Horizontal" default="0.1" variable="voltage"></slider>
504+
<button x="6" y="480" height="40" disableUntilTicks="true" forever="false" kind="Observer" width="200" display="Watch An Electron"><![CDATA[ask one-of electrons with [ xcor > max-pxcor - 5 ] [
505505
set color yellow
506506
pen-down
507507
watch-me
508508
]]]></button>
509-
<button x="6" y="416" height="33" disableUntilTicks="true" forever="false" kind="Observer" display="Stop Watching and Erase" width="200" sizeVersion="0">ask electrons [ pen-up set color orange - 2]
509+
<button x="6" y="525" height="40" disableUntilTicks="true" forever="false" kind="Observer" width="200" display="Stop Watching and Erase">ask electrons [ pen-up set color orange - 2]
510510
reset-perspective
511511
clear-drawing</button>
512-
<monitor x="760" precision="17" y="460" height="57" fontSize="14" display="Electrons Arrived at Cathode" width="221" sizeVersion="0">charge-flow</monitor>
513-
<monitor x="1105" precision="2" y="55" height="53" fontSize="13" display="Timer" width="110" sizeVersion="0">ticks / 50</monitor>
514-
<plot x="480" autoPlotX="true" yMax="100.0" autoPlotY="true" yAxis="Current" y="460" xMin="0.0" height="171" legend="false" xMax="10.0" yMin="0.0" xAxis="Time (Seconds)" display="Current vs Time" width="278" sizeVersion="0">
512+
<monitor x="760" precision="17" y="464" height="60" fontSize="14" width="221" display="Electrons Arrived at Cathode">charge-flow</monitor>
513+
<monitor x="1105" precision="2" y="55" height="60" fontSize="13" width="110" display="Timer">ticks / 50</monitor>
514+
<plot x="480" autoPlotX="true" yMax="100.0" autoPlotY="true" yAxis="Current" y="464" xMin="0.0" height="175" legend="false" xMax="10.0" yMin="0.0" width="278" xAxis="Time (Seconds)" display="Current vs Time">
515515
<setup></setup>
516516
<update></update>
517517
<pen interval="1.0" mode="0" display="default" color="-16777216" legend="true">
518518
<setup></setup>
519519
<update><![CDATA[if ticks > 5 [ plotxy (ticks / 50) (50 * charge-flow) / ticks ]]]></update>
520520
</pen>
521521
</plot>
522-
<slider x="5" step="0.01" y="254" max="0.1" display="diffusion-factor" height="33" min="0" direction="Horizontal" default="0.05" variable="diffusion-factor" width="200" sizeVersion="0"></slider>
523-
<plot x="215" autoPlotX="true" yMax="100.0" autoPlotY="true" yAxis="Temp (0-100)" y="460" xMin="0.0" height="170" legend="false" xMax="10.0" yMin="0.0" xAxis="Time (Seconds)" display="Average Temperature Plot" width="250" sizeVersion="0">
522+
<slider x="5" step="0.01" y="321" max="0.1" width="200" display="diffusion-factor" height="50" min="0" direction="Horizontal" default="0.05" variable="diffusion-factor"></slider>
523+
<plot x="215" autoPlotX="true" yMax="100.0" autoPlotY="true" yAxis="Temp (0-100)" y="464" xMin="0.0" height="175" legend="false" xMax="10.0" yMin="0.0" width="250" xAxis="Time (Seconds)" display="Average Temperature Plot">
524524
<setup></setup>
525525
<update></update>
526526
<pen interval="1.0" mode="0" display="default" color="-16777216" legend="true">
527527
<setup></setup>
528528
<update>plotxy (ticks / 50) mean [temp] of wire-patches</update>
529529
</pen>
530530
</plot>
531-
<monitor x="1105" precision="2" y="330" height="57" fontSize="14" display="Avg. Temp" width="110" sizeVersion="0">mean [my-average-temp] of students</monitor>
532-
<slider x="5" step="1" y="50" max="25" display="nuclei-per-slice" height="33" min="1" direction="Horizontal" default="15.0" variable="nuclei-per-slice" units="nuclei" width="200" sizeVersion="0"></slider>
533-
<monitor x="1105" precision="17" y="175" height="53" fontSize="13" display="with a temp of" width="110" sizeVersion="0">get-leading-temp</monitor>
534-
<monitor x="1105" precision="1" y="115" height="53" fontSize="13" display="Leader is" width="110" sizeVersion="0">get-leader</monitor>
535-
<switch x="5" y="495" height="33" on="true" variable="show-temps?" display="show-temps?" width="200" sizeVersion="0"></switch>
536-
<button x="5" y="175" height="35" disableUntilTicks="true" forever="false" kind="Observer" display="go once" width="90" sizeVersion="0">go</button>
537-
<switch x="5" y="295" height="33" on="false" variable="share-heat-across-slices?" display="share-heat-across-slices?" width="200" sizeVersion="0"></switch>
538-
<button x="6" y="336" height="33" disableUntilTicks="true" forever="false" kind="Observer" display="Reset All Temperatures" width="200" sizeVersion="0"> if user-yes-or-no? "Are you sure you want to reset all\ntemperatures back to 20 Temp Units?" [
531+
<monitor x="1105" precision="2" y="351" height="60" fontSize="14" width="110" display="Avg. Temp">mean [my-average-temp] of students</monitor>
532+
<slider x="5" step="1" y="57" max="25" width="200" display="nuclei-per-slice" height="50" min="1" direction="Horizontal" default="15.0" variable="nuclei-per-slice" units="nuclei"></slider>
533+
<monitor x="1105" precision="17" y="189" height="60" fontSize="13" width="110" display="with a temp of">get-leading-temp</monitor>
534+
<monitor x="1105" precision="1" y="122" height="60" fontSize="13" width="110" display="Leader is">get-leader</monitor>
535+
<switch x="5" y="611" height="40" on="true" variable="show-temps?" width="200" display="show-temps?"></switch>
536+
<button x="5" y="216" height="40" disableUntilTicks="true" forever="false" kind="Observer" width="90" display="go once">go</button>
537+
<switch x="5" y="379" height="40" on="false" variable="share-heat-across-slices?" width="200" display="share-heat-across-slices?"></switch>
538+
<button x="6" y="427" height="40" disableUntilTicks="true" forever="false" kind="Observer" width="200" display="Reset All Temperatures"> if user-yes-or-no? "Are you sure you want to reset all\ntemperatures back to 20 Temp Units?" [
539539
ask wire-patches [
540540
set temp 20
541541
recolor
542542
]
543543
]</button>
544-
<slider x="5" step="1" y="90" max="10" display="num-students" height="33" min="3" direction="Horizontal" default="3.0" variable="num-students" units="students" width="200" sizeVersion="0"></slider>
545-
<plot x="216" autoPlotX="true" yMax="30.0" autoPlotY="true" yAxis="Temperature" y="282" xMin="1.0" height="171" legend="false" xMax="1.0" yMin="0.0" xAxis="Slice #" display="Temperature in each Slice" width="885" sizeVersion="0">
544+
<slider x="5" step="1" y="114" max="10" width="200" display="num-students" height="50" min="3" direction="Horizontal" default="3.0" variable="num-students" units="students"></slider>
545+
<plot x="216" autoPlotX="true" yMax="30.0" autoPlotY="true" yAxis="Temperature" y="282" xMin="1.0" height="175" legend="false" xMax="1.0" yMin="0.0" width="885" xAxis="Slice #" display="Temperature in each Slice">
546546
<setup></setup>
547547
<update>clear-plot
548548
if not show-temps? [ stop ]
@@ -588,8 +588,8 @@ if any? students [ set-plot-x-range 1 (count students + 1) set-plot-y-range 0 ([
588588
<update><![CDATA[if count students > 9 [ plotxy 10 get-student-temp 10 ]]]></update>
589589
</pen>
590590
</plot>
591-
<switch x="5" y="535" height="33" on="false" variable="identify-students?" display="identify-students?" width="200" sizeVersion="0"></switch>
592-
<button x="5" y="10" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="Complete Reset" width="200" sizeVersion="0">startup</button>
591+
<switch x="5" y="658" height="40" on="false" variable="identify-students?" width="200" display="identify-students?"></switch>
592+
<button x="5" y="10" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="200" display="Complete Reset">startup</button>
593593
</widgets>
594594
<info><![CDATA[## WHAT IS IT?
595595
@@ -1502,7 +1502,7 @@ To use this model for academic or commercial research, please contact Pratim Sen
15021502
</shape>
15031503
</linkShapes>
15041504
<hubNetClient>
1505-
<view x="9" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-25" height="513" showTickCounter="true" patchSize="12.0" fontSize="13" wrappingAllowedY="true" width="513" tickCounterLabel="ticks" maxPycor="25" updateMode="1" maxPxcor="85" minPxcor="-85"></view>
1505+
<view x="9" wrappingAllowedX="false" y="10" frameRate="30.0" minPycor="-25" height="513" showTickCounter="true" patchSize="5.0" fontSize="13" wrappingAllowedY="true" width="513" tickCounterLabel="ticks" maxPycor="25" updateMode="1" maxPxcor="85" minPxcor="-85"></view>
15061506
<monitor x="430" precision="3" y="530" height="49" fontSize="11" display="avg temp" width="90" sizeVersion="0"></monitor>
15071507
<monitor x="105" precision="3" y="530" height="49" fontSize="11" display="slice" width="92" sizeVersion="0"></monitor>
15081508
<monitor x="10" precision="3" y="530" height="49" fontSize="11" display="timer" width="90" sizeVersion="0"></monitor>

Curricular Models/NIELS/Current in a Wire.nlogox

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -148,34 +148,34 @@ end
148148
; See Info tab for full copyright and license.]]></code>
149149
<widgets>
150150
<view x="185" wrappingAllowedX="false" y="14" frameRate="30.0" minPycor="-16" height="136" showTickCounter="true" patchSize="4.0" fontSize="30" wrappingAllowedY="true" width="688" tickCounterLabel="ticks" maxPycor="16" updateMode="1" maxPxcor="85" minPxcor="-85"></view>
151-
<button x="7" y="14" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="84" sizeVersion="0">setup</button>
152-
<button x="92" y="14" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="85" sizeVersion="0">go</button>
153-
<note x="186" y="186" height="20" textColorLight="-16777216" fontSize="11" width="125" markdown="false">Battery-positive (B+)</note>
154-
<note x="767" y="184" height="28" textColorLight="-16777216" fontSize="11" width="123" markdown="false">Battery-negative (B-)
151+
<button x="7" y="14" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="84">setup</button>
152+
<button x="92" y="14" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="85">go</button>
153+
<note x="186" y="186" backgroundDark="0" fontSize="11" width="125" markdown="false" height="20" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Battery-positive (B+)</note>
154+
<note x="767" y="184" backgroundDark="0" fontSize="11" width="123" markdown="false" height="28" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Battery-negative (B-)
155155
</note>
156-
<button x="22" y="206" height="33" disableUntilTicks="true" forever="false" kind="Observer" display="Watch An Electron" width="134" sizeVersion="0"><![CDATA[ask electrons [ set color orange - 2 pen-up ]
156+
<button x="22" y="258" height="40" disableUntilTicks="true" forever="false" kind="Observer" width="134" display="Watch An Electron"><![CDATA[ask electrons [ set color orange - 2 pen-up ]
157157
clear-drawing
158158
ask one-of electrons with [xcor > max-pxcor - 6]
159159
[if pcolor != black [ set color yellow pen-down
160160
watch-me
161161
]]]]></button>
162-
<button x="27" y="239" height="33" disableUntilTicks="true" forever="false" kind="Observer" display="Stop Watching" width="125" sizeVersion="0">ask electrons [ pen-up set color orange - 2]
162+
<button x="27" y="303" height="40" disableUntilTicks="true" forever="false" kind="Observer" width="125" display="Stop Watching">ask electrons [ pen-up set color orange - 2]
163163
reset-perspective
164164
</button>
165-
<monitor x="313" precision="17" y="186" height="45" fontSize="11" display="Electrons Arrived At B+" width="149" sizeVersion="0">charge-flow</monitor>
166-
<plot x="466" autoPlotX="true" yMax="1.0" autoPlotY="true" yAxis="Current" y="186" xMin="0.0" height="168" legend="false" xMax="10.0" yMin="0.0" xAxis="Time (Seconds)" display="Current vs Time" width="292" sizeVersion="0">
165+
<monitor x="313" precision="17" y="186" height="60" fontSize="11" width="149" display="Electrons Arrived At B+">charge-flow</monitor>
166+
<plot x="466" autoPlotX="true" yMax="1.0" autoPlotY="true" yAxis="Current" y="186" xMin="0.0" height="175" legend="false" xMax="10.0" yMin="0.0" width="292" xAxis="Time (Seconds)" display="Current vs Time">
167167
<setup></setup>
168168
<update></update>
169169
<pen interval="1.0" mode="0" display="default" color="-16777216" legend="true">
170170
<setup></setup>
171171
<update><![CDATA[if ticks > 0 [ plotxy ticks (charge-flow) / ticks ]]]></update>
172172
</pen>
173173
</plot>
174-
<monitor x="313" precision="2" y="280" height="45" fontSize="11" display="Current" width="101" sizeVersion="0">charge-flow / ticks</monitor>
175-
<slider x="6" step="2.5" y="138" max="20" display="resistance" height="33" min="10" direction="Horizontal" default="10.0" variable="resistance" width="172" sizeVersion="0"></slider>
176-
<slider x="7" step="200" y="63" max="800" display="number-of-electrons" height="33" min="400" direction="Horizontal" default="800.0" variable="number-of-electrons" width="171" sizeVersion="0"></slider>
177-
<slider x="7" step="1" y="101" max="6" display="voltage" height="33" min="2" direction="Horizontal" default="6.0" variable="voltage" width="171" sizeVersion="0"></slider>
178-
<monitor x="313" precision="17" y="233" height="45" fontSize="11" display="Timer" width="101" sizeVersion="0">ticks</monitor>
174+
<monitor x="313" precision="2" y="316" height="60" fontSize="11" width="149" display="Current">charge-flow / ticks</monitor>
175+
<slider x="6" step="2.5" y="173" max="20" width="172" display="resistance" height="50" min="10" direction="Horizontal" default="10.0" variable="resistance"></slider>
176+
<slider x="7" step="200" y="63" max="800" width="171" display="number-of-electrons" height="50" min="400" direction="Horizontal" default="800.0" variable="number-of-electrons"></slider>
177+
<slider x="7" step="1" y="118" max="6" width="171" display="voltage" height="50" min="2" direction="Horizontal" default="6.0" variable="voltage"></slider>
178+
<monitor x="313" precision="17" y="251" height="60" fontSize="11" width="149" display="Timer">ticks</monitor>
179179
</widgets>
180180
<info><![CDATA[## WHAT IS IT?
181181

Curricular Models/NIELS/Electron Sink.nlogox

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -78,23 +78,23 @@ end
7878
; See Info tab for full copyright and license.]]></code>
7979
<widgets>
8080
<view x="209" wrappingAllowedX="false" y="10" frameRate="30.0" minPycor="-35" height="146" showTickCounter="true" patchSize="2.0" fontSize="10" wrappingAllowedY="true" width="486" tickCounterLabel="ticks" maxPycor="35" updateMode="1" maxPxcor="120" minPxcor="-120"></view>
81-
<slider x="20" step="10" y="45" max="1000" display="number-of-electrons" height="33" min="150" direction="Horizontal" default="400.0" variable="number-of-electrons" width="175" sizeVersion="0"></slider>
82-
<button x="20" y="10" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="Setup" width="85" sizeVersion="0">setup</button>
83-
<slider x="20" step="0.1" y="80" max="5" display="speed-of-electrons" height="33" min="1" direction="Horizontal" default="2.0" variable="speed-of-electrons" width="175" sizeVersion="0"></slider>
84-
<button x="110" y="10" height="33" disableUntilTicks="true" forever="true" kind="Observer" display="Go" width="85" sizeVersion="0">go</button>
85-
<note x="20" y="120" height="86" backgroundDark="0" fontSize="12" width="180" markdown="false" textColorLight="-16777216" backgroundLight="0">Filling capacity of the
81+
<slider x="20" step="10" y="55" max="1000" width="175" display="number-of-electrons" height="50" min="150" direction="Horizontal" default="400.0" variable="number-of-electrons"></slider>
82+
<button x="20" y="10" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="85" display="Setup">setup</button>
83+
<slider x="20" step="0.1" y="110" max="5" width="175" display="speed-of-electrons" height="50" min="1" direction="Horizontal" default="2.0" variable="speed-of-electrons"></slider>
84+
<button x="110" y="10" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="85" display="Go">go</button>
85+
<note x="20" y="167" backgroundDark="0" fontSize="12" width="180" markdown="false" height="86" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Filling capacity of the
8686
electron sink is the
8787
maximum number of
8888
electrons that the
8989
sink can hold.
9090

9191
</note>
92-
<monitor x="470" precision="17" y="207" height="45" fontSize="11" display="Time Taken To Fill Electron-sink" width="184" sizeVersion="0">ticks</monitor>
93-
<monitor x="250" precision="17" y="207" height="45" fontSize="11" display="No. of Electrons Arrived At The Sink" width="211" sizeVersion="0">current</monitor>
94-
<note x="476" y="255" height="28" backgroundDark="0" fontSize="11" width="175" markdown="false" textColorLight="-11783835" backgroundLight="0">Unit Of Time: "isecs" =
92+
<monitor x="470" precision="17" y="207" height="60" fontSize="11" width="184" display="Time Taken To Fill Electron-sink">ticks</monitor>
93+
<monitor x="250" precision="17" y="207" height="60" fontSize="11" width="211" display="No. of Electrons Arrived At The Sink">current</monitor>
94+
<note x="476" y="272" backgroundDark="0" fontSize="11" width="175" markdown="false" height="28" textColorDark="-1" textColorLight="-11783835" backgroundLight="0">Unit Of Time: "isecs" =
9595
imaginary seconds</note>
96-
<note x="210" y="185" height="18" backgroundDark="0" fontSize="11" width="150" markdown="false" textColorLight="-16777216" backgroundLight="0">Electron-Sink</note>
97-
<chooser x="20" y="200" height="45" variable="filling-capacity" current="3" display="filling-capacity" width="175" sizeVersion="0">
96+
<note x="210" y="185" backgroundDark="0" fontSize="11" width="150" markdown="false" height="18" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Electron-Sink</note>
97+
<chooser x="20" y="247" height="60" variable="filling-capacity" current="3" width="175" display="filling-capacity">
9898
<choice type="double" value="300.0"></choice>
9999
<choice type="double" value="500.0"></choice>
100100
<choice type="double" value="1000.0"></choice>

0 commit comments

Comments
 (0)