Skip to content

Commit 0ceedfd

Browse files
committed
Convert Connected Chemistry to new sizes
1 parent 4e15478 commit 0ceedfd

13 files changed

Lines changed: 254 additions & 254 deletions

Curricular Models/Connected Chemistry/Connected Chemistry 1 Bike Tire.nlogox

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -255,14 +255,14 @@ end
255255
; See Info tab for full copyright and license.]]></code>
256256
<widgets>
257257
<view x="236" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-26" height="269" showTickCounter="true" patchSize="5.0" fontSize="10" wrappingAllowedY="true" width="269" tickCounterLabel="ticks" maxPycor="26" updateMode="1" maxPxcor="26" minPxcor="-26"></view>
258-
<slider x="14" step="1" y="47" max="50" display="number-of-particles-to-add" height="33" min="1" direction="Horizontal" default="50.0" variable="number-of-particles-to-add" width="213" sizeVersion="0"></slider>
259-
<button x="14" y="124" height="33" disableUntilTicks="true" forever="true" kind="Observer" display="go/stop" width="75" sizeVersion="0">go</button>
260-
<button x="14" y="10" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="75" sizeVersion="0">setup</button>
261-
<switch x="14" y="163" height="33" on="true" variable="collide?" display="collide?" width="110" sizeVersion="0"></switch>
262-
<switch x="127" y="163" height="33" on="true" variable="bounce?" display="bounce?" width="104" sizeVersion="0"></switch>
263-
<monitor x="101" precision="0" y="206" height="45" fontSize="11" display="Number" width="129" sizeVersion="0">count particles</monitor>
264-
<button x="14" y="84" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="132" sizeVersion="0">place-particles</button>
265-
<button x="106" y="10" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="101" sizeVersion="0">place-box</button>
258+
<slider x="14" step="1" y="55" max="50" width="213" display="number-of-particles-to-add" height="50" min="1" direction="Horizontal" default="50.0" variable="number-of-particles-to-add"></slider>
259+
<button x="14" y="157" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="75" display="go/stop">go</button>
260+
<button x="14" y="10" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="75">setup</button>
261+
<switch x="14" y="203" height="40" on="true" variable="collide?" width="110" display="collide?"></switch>
262+
<monitor x="101" precision="0" y="253" height="60" fontSize="11" width="129" display="Number">count particles</monitor>
263+
<button x="14" y="110" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="132">place-particles</button>
264+
<button x="106" y="10" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="101">place-box</button>
265+
<switch x="127" y="203" height="40" on="true" variable="bounce?" width="104" display="bounce?"></switch>
266266
</widgets>
267267
<info><![CDATA[## WHAT IS IT?
268268

Curricular Models/Connected Chemistry/Connected Chemistry 2 Changing Pressure.nlogox

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -465,34 +465,34 @@ end
465465
; Copyright 2004 Uri Wilensky.
466466
; See Info tab for full copyright and license.]]></code>
467467
<widgets>
468-
<view x="212" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-26" height="269" showTickCounter="true" patchSize="5.0" fontSize="10" wrappingAllowedY="true" width="269" tickCounterLabel="ticks" maxPycor="26" updateMode="1" maxPxcor="26" minPxcor="-26"></view>
469-
<button x="140" y="42" height="33" disableUntilTicks="true" forever="true" kind="Observer" display="go/stop" width="72" sizeVersion="0">go</button>
470-
<button x="140" y="10" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="72" sizeVersion="0">setup</button>
471-
<plot x="491" autoPlotX="true" yMax="200.0" autoPlotY="true" yAxis="number" y="155" xMin="0.0" height="154" legend="false" xMax="20.0" yMin="0.0" xAxis="time" display="Number vs. Time" width="203" sizeVersion="0">
472-
<setup>set-plot-y-range 0 initial-number + 1</setup>
468+
<view x="259" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-26" height="269" showTickCounter="true" patchSize="5.0" fontSize="10" wrappingAllowedY="true" width="269" tickCounterLabel="ticks" maxPycor="26" updateMode="1" maxPxcor="26" minPxcor="-26"></view>
469+
<note x="169" y="154" backgroundDark="0" fontSize="11" width="60" markdown="false" height="18" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Pressure</note>
470+
<plot x="535" autoPlotX="true" yMax="100.0" autoPlotY="true" yAxis="pressure" y="10" xMin="0.0" height="175" legend="false" xMax="20.0" yMin="0.0" width="230" xAxis="time" display="Pressure vs. Time">
471+
<setup></setup>
473472
<update></update>
474473
<pen interval="1.0" mode="0" display="default" color="-16777216" legend="true">
475474
<setup></setup>
476-
<update>plotxy ticks (total-particle-number)</update>
475+
<update>if is-list? pressure-history [
476+
plotxy ticks (mean pressure-history)
477+
]</update>
477478
</pen>
478479
</plot>
479-
<slider x="2" step="1" y="78" max="100" display="number-to-add" height="33" min="0" direction="Horizontal" default="50.0" variable="number-to-add" width="123" sizeVersion="0"></slider>
480-
<button x="126" y="78" height="33" disableUntilTicks="true" forever="false" kind="Observer" display="add particles" width="86" sizeVersion="0">add-particles-side</button>
481-
<slider x="2" step="1" y="10" max="100" display="initial-number" height="33" min="0" direction="Horizontal" default="50.0" variable="initial-number" width="137" sizeVersion="0"></slider>
482-
<monitor x="60" precision="0" y="124" height="45" fontSize="11" display="Number" width="66" sizeVersion="0">count particles</monitor>
483-
<plot x="492" autoPlotX="true" yMax="100.0" autoPlotY="true" yAxis="pressure" y="10" xMin="0.0" height="145" legend="false" xMax="20.0" yMin="0.0" xAxis="time" display="Pressure vs. Time" width="203" sizeVersion="0">
484-
<setup></setup>
480+
<plot x="534" autoPlotX="true" yMax="200.0" autoPlotY="true" yAxis="number" y="190" xMin="0.0" height="175" legend="false" xMax="20.0" yMin="0.0" width="230" xAxis="time" display="Number vs. Time">
481+
<setup>set-plot-y-range 0 initial-number + 1</setup>
485482
<update></update>
486483
<pen interval="1.0" mode="0" display="default" color="-16777216" legend="true">
487484
<setup></setup>
488-
<update>if is-list? pressure-history [
489-
plotxy ticks (mean pressure-history)
490-
]</update>
485+
<update>plotxy ticks (total-particle-number)</update>
491486
</pen>
492487
</plot>
493-
<output x="130" y="143" height="30" fontSize="12" width="71"></output>
494-
<note x="135" y="125" height="18" textColorLight="-16777216" fontSize="11" width="60" markdown="false">Pressure</note>
495-
<switch x="2" y="44" height="33" on="false" variable="show-wall-hits?" display="show-wall-hits?" width="137" sizeVersion="0"></switch>
488+
<slider x="2" step="1" y="10" max="100" width="150" display="initial-number" height="50" min="0" direction="Horizontal" default="50.0" variable="initial-number"></slider>
489+
<switch x="2" y="65" height="40" on="false" variable="show-wall-hits?" width="150" display="show-wall-hits?"></switch>
490+
<button x="157" y="55" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="86" display="go/stop">go</button>
491+
<button x="157" y="10" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="86">setup</button>
492+
<button x="157" y="100" height="40" disableUntilTicks="true" forever="false" kind="Observer" width="86" display="add particles">add-particles-side</button>
493+
<slider x="2" step="1" y="110" max="100" width="150" display="number-to-add" height="50" min="0" direction="Horizontal" default="50.0" variable="number-to-add"></slider>
494+
<output x="158" y="177" height="51" fontSize="12" width="87"></output>
495+
<monitor x="52" precision="0" y="168" height="60" fontSize="11" width="100" display="Number">count particles</monitor>
496496
</widgets>
497497
<info><![CDATA[## WHAT IS IT?
498498

Curricular Models/Connected Chemistry/Connected Chemistry 3 Circular Particles.nlogox

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -572,20 +572,8 @@ end
572572
; Copyright 2005 Uri Wilensky.
573573
; See Info tab for full copyright and license.]]></code>
574574
<widgets>
575-
<view x="228" wrappingAllowedX="false" y="10" frameRate="30.0" minPycor="-16" height="268" showTickCounter="true" patchSize="8.0" fontSize="20" wrappingAllowedY="false" width="268" tickCounterLabel="ticks" maxPycor="16" updateMode="1" maxPxcor="16" minPxcor="-16"></view>
576-
<button x="140" y="10" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="88" sizeVersion="0">setup</button>
577-
<slider x="19" step="1" y="10" max="10" display="initial-number" height="33" min="2" direction="Horizontal" default="10.0" variable="initial-number" width="120" sizeVersion="0"></slider>
578-
<button x="140" y="43" height="33" disableUntilTicks="true" forever="true" kind="Observer" display="go/stop" width="88" sizeVersion="0">go</button>
579-
<chooser x="3" y="44" height="45" variable="show-speed-as-color?" current="1" display="show-speed-as-color?" width="136" sizeVersion="0">
580-
<choice type="string" value="red-green-blue"></choice>
581-
<choice type="string" value="violet shades"></choice>
582-
<choice type="string" value="one color"></choice>
583-
<choice type="string" value="custom color"></choice>
584-
</chooser>
585-
<monitor x="21" precision="1" y="128" height="45" fontSize="11" display="particle 0 speed" width="101" sizeVersion="0">[speed] of particle 0</monitor>
586-
<switch x="36" y="89" height="33" on="false" variable="labels?" display="labels?" width="103" sizeVersion="0"></switch>
587-
<monitor x="123" precision="1" y="127" height="45" fontSize="11" display="particle 0 heading" width="105" sizeVersion="0">[heading] of particle 0</monitor>
588-
<plot x="507" autoPlotX="true" yMax="0.5" autoPlotY="true" yAxis="energy" y="10" xMin="0.0" height="124" legend="false" xMax="20.0" yMin="0.0" xAxis="time" display="Kinetic Energy vs. Time" width="218" sizeVersion="0">
575+
<view x="267" wrappingAllowedX="false" y="10" frameRate="30.0" minPycor="-16" height="268" showTickCounter="true" patchSize="8.0" fontSize="20" wrappingAllowedY="false" width="268" tickCounterLabel="ticks" maxPycor="16" updateMode="1" maxPxcor="16" minPxcor="-16"></view>
576+
<plot x="546" autoPlotX="true" yMax="0.5" autoPlotY="true" yAxis="energy" y="10" xMin="0.0" height="175" legend="false" xMax="20.0" yMin="0.0" width="230" xAxis="time" display="Kinetic Energy vs. Time">
589577
<setup></setup>
590578
<update></update>
591579
<pen interval="1.0" mode="0" display="particle 0" color="-16777216" legend="true">
@@ -597,22 +585,34 @@ end
597585
<update></update>
598586
</pen>
599587
</plot>
600-
<plot x="507" autoPlotX="true" yMax="2.0" autoPlotY="true" yAxis="speed" y="134" xMin="0.0" height="124" legend="false" xMax="20.0" yMin="0.0" xAxis="time" display="Particle 0 Speed vs. Time" width="217" sizeVersion="0">
588+
<plot x="546" autoPlotX="true" yMax="2.0" autoPlotY="true" yAxis="speed" y="190" xMin="0.0" height="175" legend="false" xMax="20.0" yMin="0.0" width="230" xAxis="time" display="Particle 0 Speed vs. Time">
601589
<setup></setup>
602590
<update></update>
603591
<pen interval="1.0" mode="0" display="default" color="-16777216" legend="true">
604592
<setup></setup>
605593
<update></update>
606594
</pen>
607595
</plot>
608-
<plot x="506" autoPlotX="true" yMax="360.0" autoPlotY="true" yAxis="heading" y="258" xMin="0.0" height="120" legend="false" xMax="20.0" yMin="0.0" xAxis="time" display="Particle 0 Heading vs. Time" width="219" sizeVersion="0">
596+
<plot x="545" autoPlotX="true" yMax="360.0" autoPlotY="true" yAxis="heading" y="370" xMin="0.0" height="175" legend="false" xMax="20.0" yMin="0.0" width="230" xAxis="time" display="Particle 0 Heading vs. Time">
609597
<setup></setup>
610598
<update></update>
611599
<pen interval="1.0" mode="0" display="default" color="-16777216" legend="true">
612600
<setup></setup>
613601
<update></update>
614602
</pen>
615603
</plot>
604+
<slider x="7" step="1" y="10" max="10" width="150" display="initial-number" height="50" min="2" direction="Horizontal" default="10.0" variable="initial-number"></slider>
605+
<button x="167" y="11" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="88">setup</button>
606+
<button x="167" y="56" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="88" display="go/stop">go</button>
607+
<monitor x="7" precision="1" y="176" height="60" fontSize="11" width="101" display="particle 0 speed">[speed] of particle 0</monitor>
608+
<monitor x="114" precision="1" y="176" height="60" fontSize="11" width="105" display="particle 0 heading">[heading] of particle 0</monitor>
609+
<switch x="7" y="130" height="40" on="false" variable="labels?" width="150" display="labels?"></switch>
610+
<chooser x="7" y="65" height="60" variable="show-speed-as-color?" current="1" width="150" display="show-speed-as-color?">
611+
<choice type="string" value="red-green-blue"></choice>
612+
<choice type="string" value="violet shades"></choice>
613+
<choice type="string" value="one color"></choice>
614+
<choice type="string" value="custom color"></choice>
615+
</chooser>
616616
</widgets>
617617
<info><![CDATA[## WHAT IS IT?
618618

Curricular Models/Connected Chemistry/Connected Chemistry 4 Number and Pressure.nlogox

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -493,49 +493,49 @@ end
493493
; Copyright 2004 Uri Wilensky.
494494
; See Info tab for full copyright and license.]]></code>
495495
<widgets>
496-
<view x="212" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-26" height="269" showTickCounter="true" patchSize="5.0" fontSize="10" wrappingAllowedY="true" width="269" tickCounterLabel="ticks" maxPycor="26" updateMode="1" maxPxcor="26" minPxcor="-26"></view>
497-
<button x="140" y="42" height="33" disableUntilTicks="true" forever="true" kind="Observer" display="go/stop" width="72" sizeVersion="0">go</button>
498-
<button x="140" y="10" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="72" sizeVersion="0">setup</button>
499-
<plot x="491" autoPlotX="true" yMax="200.0" autoPlotY="true" yAxis="number" y="155" xMin="0.0" height="154" legend="false" xMax="20.0" yMin="0.0" xAxis="time" display="Number vs. Time" width="203" sizeVersion="0">
496+
<view x="255" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-26" height="269" showTickCounter="true" patchSize="5.0" fontSize="10" wrappingAllowedY="true" width="269" tickCounterLabel="ticks" maxPycor="26" updateMode="1" maxPxcor="26" minPxcor="-26"></view>
497+
<note x="169" y="154" backgroundDark="0" fontSize="11" width="60" markdown="false" height="18" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Pressure</note>
498+
<slider x="5" step="1" y="10" max="100" width="150" display="initial-number" height="50" min="0" direction="Horizontal" default="50.0" variable="initial-number"></slider>
499+
<switch x="5" y="65" height="40" on="true" variable="show-wall-hits?" width="150" display="show-wall-hits?"></switch>
500+
<slider x="5" step="1" y="110" max="100" width="150" display="number-to-add" height="50" min="0" direction="Horizontal" default="50.0" variable="number-to-add"></slider>
501+
<button x="160" y="55" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="86" display="go/stop">go</button>
502+
<button x="160" y="100" height="40" disableUntilTicks="true" forever="false" kind="Observer" width="86" display="add particles">add-particles-side</button>
503+
<button x="160" y="10" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="86">setup</button>
504+
<plot x="530" autoPlotX="true" yMax="100.0" autoPlotY="true" yAxis="pressure" y="10" xMin="0.0" height="175" legend="false" xMax="20.0" yMin="0.0" width="230" xAxis="time" display="Pressure vs. Time">
505+
<setup></setup>
506+
<update></update>
507+
<pen interval="1.0" mode="0" display="default" color="-16777216" legend="true">
508+
<setup></setup>
509+
<update>if is-list? pressure-history [
510+
plotxy ticks (mean pressure-history)
511+
]</update>
512+
</pen>
513+
</plot>
514+
<plot x="530" autoPlotX="true" yMax="200.0" autoPlotY="true" yAxis="number" y="190" xMin="0.0" height="175" legend="false" xMax="20.0" yMin="0.0" width="230" xAxis="time" display="Number vs. Time">
500515
<setup>set-plot-y-range 0 initial-number + 1</setup>
501516
<update></update>
502517
<pen interval="1.0" mode="0" display="default" color="-16777216" legend="true">
503518
<setup></setup>
504519
<update>plotxy ticks (total-particle-number)</update>
505520
</pen>
506521
</plot>
507-
<slider x="2" step="1" y="78" max="100" display="number-to-add" height="33" min="0" direction="Horizontal" default="50.0" variable="number-to-add" width="123" sizeVersion="0"></slider>
508-
<button x="126" y="78" height="33" disableUntilTicks="true" forever="false" kind="Observer" display="add particles" width="86" sizeVersion="0">add-particles-side</button>
509-
<slider x="2" step="1" y="10" max="100" display="initial-number" height="33" min="0" direction="Horizontal" default="50.0" variable="initial-number" width="137" sizeVersion="0"></slider>
510-
<monitor x="60" precision="0" y="124" height="45" fontSize="11" display="Number" width="66" sizeVersion="0">count particles</monitor>
511-
<plot x="492" autoPlotX="true" yMax="100.0" autoPlotY="true" yAxis="pressure" y="10" xMin="0.0" height="145" legend="false" xMax="20.0" yMin="0.0" xAxis="time" display="Pressure vs. Time" width="203" sizeVersion="0">
522+
<plot x="530" autoPlotX="true" yMax="1.0" autoPlotY="true" yAxis="avg. wall hits" y="370" xMin="0.0" height="175" legend="false" xMax="20.0" yMin="0.0" width="230" xAxis="time" display="Avg. Wall Hits per particle">
512523
<setup></setup>
513524
<update></update>
514525
<pen interval="1.0" mode="0" display="default" color="-16777216" legend="true">
515526
<setup></setup>
516-
<update>if is-list? pressure-history [
517-
plotxy ticks (mean pressure-history)
518-
]</update>
527+
<update><![CDATA[if ticks > 1 [ plotxy ticks wall-hits-per-particle ]]]></update>
519528
</pen>
520529
</plot>
521-
<chooser x="3" y="177" height="45" variable="speed-as-color?" current="2" display="speed-as-color?" width="205" sizeVersion="0">
530+
<output x="160" y="180" height="50" fontSize="12" width="90"></output>
531+
<monitor x="55" precision="0" y="170" height="60" fontSize="11" width="100" display="Number">count particles</monitor>
532+
<chooser x="5" y="240" height="60" variable="speed-as-color?" current="2" width="205" display="speed-as-color?">
522533
<choice type="string" value="red-green-blue"></choice>
523534
<choice type="string" value="purple shades"></choice>
524535
<choice type="string" value="one color"></choice>
525536
<choice type="string" value="custom color"></choice>
526537
</chooser>
527-
<output x="130" y="143" height="30" fontSize="12" width="71"></output>
528-
<note x="135" y="125" height="18" textColorLight="-16777216" fontSize="11" width="60" markdown="false">Pressure</note>
529-
<switch x="2" y="44" height="33" on="true" variable="show-wall-hits?" display="show-wall-hits?" width="137" sizeVersion="0"></switch>
530-
<monitor x="4" precision="2" y="226" height="45" fontSize="11" display="average wall hits per particle" width="205" sizeVersion="0">wall-hits-per-particle</monitor>
531-
<plot x="490" autoPlotX="true" yMax="1.0" autoPlotY="true" yAxis="avg. wall hits" y="311" xMin="0.0" height="150" legend="false" xMax="20.0" yMin="0.0" xAxis="time" display="Avg. Wall Hits per particle" width="204" sizeVersion="0">
532-
<setup></setup>
533-
<update></update>
534-
<pen interval="1.0" mode="0" display="default" color="-16777216" legend="true">
535-
<setup></setup>
536-
<update><![CDATA[if ticks > 1 [ plotxy ticks wall-hits-per-particle ]]]></update>
537-
</pen>
538-
</plot>
538+
<monitor x="5" precision="2" y="305" height="60" fontSize="11" width="205" display="average wall hits per particle">wall-hits-per-particle</monitor>
539539
</widgets>
540540
<info><![CDATA[## WHAT IS IT?
541541

0 commit comments

Comments
 (0)