Skip to content

Commit 21bacee

Browse files
committed
revising sizes on crystallization models
1 parent 28f39ad commit 21bacee

3 files changed

Lines changed: 83 additions & 83 deletions

File tree

Sample Models/Chemistry & Physics/Materials Science/Crystallization/Crystallization Basic.nlogox

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<model version="NetLogo 7.0.0-beta1" snapToGrid="true">
2+
<model version="NetLogo 7.0.0-beta0" snapToGrid="true">
33
<code><![CDATA[turtles-own [
44
temp ;; this turtle's temperature
55
neighboring-turtles ;; agentset of surrounding turtles
@@ -95,35 +95,16 @@ end
9595
; Copyright 2002 Uri Wilensky.
9696
; See Info tab for full copyright and license.]]></code>
9797
<widgets>
98-
<view x="445" wrappingAllowedX="false" y="10" frameRate="30.0" minPycor="-16" height="400" showTickCounter="true" patchSize="12.0" fontSize="10" wrappingAllowedY="false" width="400" tickCounterLabel="ticks" maxPycor="16" updateMode="1" maxPxcor="16" minPxcor="-16"></view>
99-
<slider x="10" step="10" y="95" max="2500" width="250" display="init-metal-temp" height="50" min="1550" direction="Horizontal" default="1550.0" variable="init-metal-temp"></slider>
100-
<slider x="10" step="1" y="40" max="100" width="250" display="room-temp" height="50" min="-20" direction="Horizontal" default="20.0" variable="room-temp"></slider>
101-
<slider x="10" step="1" y="150" max="1500" width="250" display="melting-temp" height="50" min="500" direction="Horizontal" default="550.0" variable="melting-temp"></slider>
102-
<switch x="80" y="222" height="37" on="true" variable="circle?" width="96" display="circle?"></switch>
103-
<monitor x="70" precision="3" y="270" height="60" fontSize="11" width="115" display="ave-metal-temp">ave-metal-temp</monitor>
104-
<slider x="280" step="2" y="185" max="31" width="150" display="height" height="50" min="1" direction="Horizontal" default="31.0" variable="height" units="atoms"></slider>
105-
<slider x="280" step="2" y="130" max="31" width="150" display="width" height="50" min="1" direction="Horizontal" default="31.0" variable="width" units="atoms"></slider>
106-
<switch x="295" y="250" height="37" on="true" variable="histogram?" width="123" display="histogram?"></switch>
107-
<button x="280" y="85" height="35" disableUntilTicks="true" forever="false" kind="Observer" width="67" display="go once">go</button>
108-
<button x="360" y="85" height="35" disableUntilTicks="true" forever="true" kind="Observer" width="68" display="go">go</button>
109-
<button x="320" y="40" height="37" disableUntilTicks="false" forever="false" kind="Observer" width="66">setup</button>
110-
<plot x="10" autoPlotX="true" yMax="1550.0" autoPlotY="true" yAxis="ave-metal-temp" y="440" xMin="0.0" height="201" legend="true" xMax="100.0" yMin="20.0" width="275" xAxis="time" display="Average Metal Temperature">
111-
<setup>set-plot-y-range room-temp init-metal-temp</setup>
112-
<update></update>
113-
<pen interval="1.0" mode="0" display="ave-metal-temp" color="-2674135" legend="false">
114-
<setup></setup>
115-
<update>plot ave-metal-temp</update>
116-
</pen>
117-
</plot>
118-
<plot x="290" autoPlotX="true" yMax="625.0" autoPlotY="true" yAxis="crystal quant." y="440" xMin="0.0" height="201" legend="false" xMax="100.0" yMin="0.0" width="275" xAxis="time" display="Number Solidified">
119-
<setup>set-plot-y-range 0 count turtles</setup>
120-
<update></update>
121-
<pen interval="1.0" mode="0" display="amount" color="-16777216" legend="false">
122-
<setup></setup>
123-
<update>plot num-frozen</update>
124-
</pen>
125-
</plot>
126-
<plot x="570" autoPlotX="false" yMax="625.0" autoPlotY="false" yAxis="quantity" y="440" xMin="0.0" height="201" legend="true" xMax="8.0" yMin="0.0" width="275" xAxis="colors" display="Temperatures">
98+
<view x="390" wrappingAllowedX="false" y="10" frameRate="30.0" minPycor="-16" height="400" showTickCounter="true" patchSize="12.0" fontSize="10" wrappingAllowedY="false" width="400" tickCounterLabel="ticks" maxPycor="16" updateMode="1" maxPxcor="16" minPxcor="-16"></view>
99+
<slider x="165" step="2" y="7" max="31" width="150" display="height" height="50" min="1" direction="Horizontal" default="31.0" variable="height" units="atoms"></slider>
100+
<slider x="10" step="2" y="7" max="31" width="150" display="width" height="50" min="1" direction="Horizontal" default="31.0" variable="width" units="atoms"></slider>
101+
<slider x="10" step="10" y="65" max="2500" width="225" display="init-metal-temp" height="50" min="1550" direction="Horizontal" default="1550.0" variable="init-metal-temp"></slider>
102+
<button x="35" y="120" height="45" disableUntilTicks="false" forever="false" kind="Observer" width="75">setup</button>
103+
<button x="115" y="120" height="45" disableUntilTicks="true" forever="false" kind="Observer" width="75" display="go once">go</button>
104+
<button x="195" y="120" height="45" disableUntilTicks="true" forever="true" kind="Observer" width="90" display="go">go</button>
105+
<slider x="35" step="1" y="175" max="1500" width="250" display="melting-temp" height="50" min="500" direction="Horizontal" default="550.0" variable="melting-temp"></slider>
106+
<slider x="35" step="1" y="230" max="100" width="250" display="room-temp" height="50" min="-20" direction="Horizontal" default="100.0" variable="room-temp"></slider>
107+
<plot x="15" autoPlotX="false" yMax="625.0" autoPlotY="false" yAxis="quantity" y="290" xMin="0.0" height="201" legend="true" xMax="8.0" yMin="0.0" width="300" xAxis="colors" display="Temperatures">
127108
<setup><![CDATA[set-plot-y-range 0 count turtles
128109
set-histogram-num-bars 1 + (length colors)
129110
@@ -156,6 +137,25 @@ foreach colors [ c ->
156137
<update></update>
157138
</pen>
158139
</plot>
140+
<switch x="245" y="70" height="40" on="false" variable="circle?" width="70" display="circle?"></switch>
141+
<switch x="40" y="505" height="40" on="true" variable="histogram?" width="123" display="histogram?"></switch>
142+
<monitor x="170" precision="3" y="495" height="60" fontSize="11" width="115" display="ave-metal-temp">ave-metal-temp</monitor>
143+
<plot x="600" autoPlotX="true" yMax="625.0" autoPlotY="true" yAxis="crystal quant." y="415" xMin="0.0" height="201" legend="false" xMax="100.0" yMin="0.0" width="275" xAxis="time" display="Number Solidified">
144+
<setup>set-plot-y-range 0 count turtles</setup>
145+
<update></update>
146+
<pen interval="1.0" mode="0" display="amount" color="-16777216" legend="false">
147+
<setup></setup>
148+
<update>plot num-frozen</update>
149+
</pen>
150+
</plot>
151+
<plot x="320" autoPlotX="true" yMax="1550.0" autoPlotY="true" yAxis="ave-metal-temp" y="415" xMin="0.0" height="201" legend="true" xMax="100.0" yMin="20.0" width="275" xAxis="time" display="Average Metal Temperature">
152+
<setup>set-plot-y-range room-temp init-metal-temp</setup>
153+
<update></update>
154+
<pen interval="1.0" mode="0" display="ave-metal-temp" color="-2674135" legend="false">
155+
<setup></setup>
156+
<update>plot ave-metal-temp</update>
157+
</pen>
158+
</plot>
159159
</widgets>
160160
<info><![CDATA[## WHAT IS IT?
161161

Sample Models/Chemistry & Physics/Materials Science/Crystallization/Crystallization Directed.nlogox

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<model version="NetLogo 7.0.0-beta1" snapToGrid="true">
2+
<model version="NetLogo 7.0.0-beta0" snapToGrid="true">
33
<code><![CDATA[turtles-own [
44
temp ;; this turtle's temperature
55
neighboring-turtles ;; agentset of surrounding turtles
@@ -109,29 +109,7 @@ end
109109
; Copyright 2002 Uri Wilensky.
110110
; See Info tab for full copyright and license.]]></code>
111111
<widgets>
112-
<view x="383" wrappingAllowedX="false" y="10" frameRate="30.0" minPycor="-16" height="400" showTickCounter="true" patchSize="12.0" fontSize="10" wrappingAllowedY="false" width="400" tickCounterLabel="ticks" maxPycor="16" updateMode="1" maxPxcor="16" minPxcor="-16"></view>
113-
<switch x="330" y="120" height="37" on="false" variable="heat-top?" width="115" display="heat-top?"></switch>
114-
<switch x="330" y="200" height="37" on="false" variable="heat-bottom?" width="115" display="heat-bottom?"></switch>
115-
<switch x="390" y="160" height="37" on="false" variable="heat-right?" width="115" display="heat-right?"></switch>
116-
<switch x="275" y="160" height="37" on="true" variable="heat-left?" width="114" display="heat-left?"></switch>
117-
<switch x="330" y="255" height="37" on="true" variable="histogram?" width="115" display="histogram?"></switch>
118-
<button x="355" y="25" height="37" disableUntilTicks="false" forever="false" kind="Observer" width="66">setup</button>
119-
<button x="320" y="70" height="35" disableUntilTicks="true" forever="false" kind="Observer" width="65" display="go once">go</button>
120-
<button x="390" y="70" height="36" disableUntilTicks="true" forever="true" kind="Observer" width="65" display="go">go</button>
121-
<slider x="10" step="2" y="255" max="31" width="250" display="height" height="50" min="1" direction="Horizontal" default="31.0" variable="height" units="atoms"></slider>
122-
<slider x="10" step="2" y="200" max="31" width="250" display="width" height="50" min="1" direction="Horizontal" default="31.0" variable="width" units="atoms"></slider>
123-
<slider x="10" step="1" y="25" max="100" width="250" display="room-temp" height="50" min="-20" direction="Horizontal" default="20.0" variable="room-temp"></slider>
124-
<slider x="10" step="1" y="135" max="1500" width="250" display="melting-temp" height="50" min="500" direction="Horizontal" default="500.0" variable="melting-temp"></slider>
125-
<slider x="10" step="10" y="80" max="2500" width="250" display="init-metal-temp" height="50" min="1550" direction="Horizontal" default="1550.0" variable="init-metal-temp"></slider>
126-
<plot x="12" autoPlotX="true" yMax="1550.0" autoPlotY="true" yAxis="ave-metal-temp" y="445" xMin="0.0" height="201" legend="true" xMax="100.0" yMin="20.0" width="275" xAxis="time" display="Average Metal Temperature">
127-
<setup>set-plot-y-range room-temp init-metal-temp</setup>
128-
<update></update>
129-
<pen interval="1.0" mode="0" display="ave-metal-temp" color="-2674135" legend="false">
130-
<setup></setup>
131-
<update>plot ave-metal-temp</update>
132-
</pen>
133-
</plot>
134-
<monitor x="185" precision="3" y="380" height="60" fontSize="11" width="102" display="ave-metal-temp">ave-metal-temp</monitor>
112+
<view x="385" wrappingAllowedX="false" y="7" frameRate="30.0" minPycor="-16" height="400" showTickCounter="true" patchSize="12.0" fontSize="10" wrappingAllowedY="false" width="400" tickCounterLabel="ticks" maxPycor="16" updateMode="1" maxPxcor="16" minPxcor="-16"></view>
135113
<plot x="570" autoPlotX="false" yMax="625.0" autoPlotY="false" yAxis="quantity" y="445" xMin="0.0" height="201" legend="true" xMax="8.0" yMin="0.0" width="275" xAxis="colors" display="Temperatures">
136114
<setup><![CDATA[set-plot-y-range 0 count turtles
137115
set-histogram-num-bars 1 + (length colors)
@@ -173,6 +151,28 @@ foreach colors [ c ->
173151
<update>plot num-frozen</update>
174152
</pen>
175153
</plot>
154+
<slider x="5" step="2" y="5" max="31" width="150" display="width" height="50" min="1" direction="Horizontal" default="31.0" variable="width" units="atoms"></slider>
155+
<slider x="160" step="2" y="7" max="31" width="150" display="height" height="50" min="1" direction="Horizontal" default="31.0" variable="height" units="atoms"></slider>
156+
<slider x="5" step="1" y="175" max="100" width="170" display="room-temp" height="50" min="-20" direction="Horizontal" default="20.0" variable="room-temp"></slider>
157+
<slider x="5" step="1" y="230" max="1500" width="170" display="melting-temp" height="50" min="500" direction="Horizontal" default="500.0" variable="melting-temp"></slider>
158+
<slider x="40" step="10" y="60" max="2500" width="250" display="init-metal-temp" height="50" min="1550" direction="Horizontal" default="1550.0" variable="init-metal-temp"></slider>
159+
<button x="45" y="115" height="45" disableUntilTicks="false" forever="false" kind="Observer" width="75">setup</button>
160+
<button x="205" y="115" height="45" disableUntilTicks="true" forever="true" kind="Observer" width="75" display="go">go</button>
161+
<button x="125" y="115" height="45" disableUntilTicks="true" forever="false" kind="Observer" width="75" display="go once">go</button>
162+
<switch x="231" y="175" height="40" on="false" variable="heat-top?" width="90" display="heat-top?"></switch>
163+
<switch x="221" y="265" height="40" on="false" variable="heat-bottom?" width="110" display="heat-bottom?"></switch>
164+
<switch x="281" y="220" height="40" on="false" variable="heat-right?" width="95" display="heat-right?"></switch>
165+
<switch x="185" y="220" height="40" on="true" variable="heat-left?" width="90" display="heat-left?"></switch>
166+
<plot x="5" autoPlotX="true" yMax="1550.0" autoPlotY="true" yAxis="ave-metal-temp" y="310" xMin="0.0" height="201" legend="true" xMax="100.0" yMin="20.0" width="275" xAxis="time" display="Average Metal Temperature">
167+
<setup>set-plot-y-range room-temp init-metal-temp</setup>
168+
<update></update>
169+
<pen interval="1.0" mode="0" display="ave-metal-temp" color="-2674135" legend="false">
170+
<setup></setup>
171+
<update>plot ave-metal-temp</update>
172+
</pen>
173+
</plot>
174+
<monitor x="155" precision="3" y="520" height="60" fontSize="11" width="125" display="ave-metal-temp">ave-metal-temp</monitor>
175+
<switch x="5" y="520" height="40" on="true" variable="histogram?" width="140" display="histogram?"></switch>
176176
</widgets>
177177
<info><![CDATA[## WHAT IS IT?
178178

Sample Models/Chemistry & Physics/Materials Science/Crystallization/Crystallization Moving.nlogox

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<model version="NetLogo 7.0.0-beta1" snapToGrid="true">
2+
<model version="NetLogo 7.0.0-beta0" snapToGrid="true">
33
<code><![CDATA[turtles-own
44
[
55
temp ;; specific turtle's temperature
@@ -119,34 +119,13 @@ end
119119
; Copyright 2002 Uri Wilensky.
120120
; See Info tab for full copyright and license.]]></code>
121121
<widgets>
122-
<view x="430" wrappingAllowedX="false" y="10" frameRate="30.0" minPycor="-17" height="424" showTickCounter="true" patchSize="12.0" fontSize="10" wrappingAllowedY="false" width="424" tickCounterLabel="ticks" maxPycor="17" updateMode="1" maxPxcor="17" minPxcor="-17"></view>
123-
<slider x="10" step="1" y="45" max="100" width="250" display="room-temp" height="50" min="-20" direction="Horizontal" default="20.0" variable="room-temp"></slider>
124-
<slider x="10" step="10" y="100" max="2500" width="250" display="init-metal-temp" height="50" min="1550" direction="Horizontal" default="1550.0" variable="init-metal-temp"></slider>
125-
<slider x="10" step="1" y="155" max="1500" width="250" display="melting-temp" height="50" min="500" direction="Horizontal" default="551.0" variable="melting-temp"></slider>
126-
<slider x="270" step="2" y="155" max="33" width="150" display="box-width" height="50" min="3" direction="Horizontal" default="33.0" variable="box-width" units="atoms"></slider>
127-
<slider x="270" step="1" y="210" max="100" width="150" display="fill-percentage" height="50" min="1" direction="Horizontal" default="85.0" variable="fill-percentage" units="%"></slider>
128-
<button x="270" y="110" height="35" disableUntilTicks="true" forever="false" kind="Observer" width="70" display="go once">go</button>
129-
<button x="350" y="110" height="35" disableUntilTicks="true" forever="true" kind="Observer" width="70" display="go">go</button>
130-
<switch x="65" y="225" height="37" on="true" variable="histogram?" width="124" display="histogram?"></switch>
131-
<monitor x="75" precision="3" y="270" height="60" fontSize="11" width="102" display="ave-metal-temp">ave-metal-temp</monitor>
132-
<button x="310" y="65" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="70">setup</button>
133-
<plot x="10" autoPlotX="true" yMax="1550.0" autoPlotY="true" yAxis="ave-metal-temp" y="480" xMin="0.0" height="201" legend="true" xMax="100.0" yMin="20.0" width="275" xAxis="time" display="Average Metal Temperature">
134-
<setup>set-plot-y-range room-temp init-metal-temp</setup>
135-
<update>if not histogram? [ stop ]</update>
136-
<pen interval="1.0" mode="0" display="ave-metal-temp" color="-2674135" legend="false">
137-
<setup></setup>
138-
<update>plot ave-metal-temp</update>
139-
</pen>
140-
</plot>
141-
<plot x="295" autoPlotX="true" yMax="625.0" autoPlotY="true" yAxis="crystal quant." y="480" xMin="0.0" height="201" legend="false" xMax="100.0" yMin="0.0" width="275" xAxis="time" display="Number Solidified">
142-
<setup>set-plot-y-range 0 count turtles</setup>
143-
<update></update>
144-
<pen interval="1.0" mode="0" display="amount" color="-16777216" legend="false">
145-
<setup></setup>
146-
<update>plot num-frozen</update>
147-
</pen>
148-
</plot>
149-
<plot x="580" autoPlotX="false" yMax="625.0" autoPlotY="false" yAxis="quantity" y="480" xMin="0.0" height="201" legend="true" xMax="8.0" yMin="0.0" width="275" xAxis="colors" display="Temperatures">
122+
<view x="320" wrappingAllowedX="false" y="7" frameRate="30.0" minPycor="-17" height="424" showTickCounter="true" patchSize="12.0" fontSize="10" wrappingAllowedY="false" width="424" tickCounterLabel="ticks" maxPycor="17" updateMode="1" maxPxcor="17" minPxcor="-17"></view>
123+
<slider x="10" step="2" y="7" max="33" width="250" display="box-width" height="50" min="3" direction="Horizontal" default="33.0" variable="box-width" units="atoms"></slider>
124+
<slider x="10" step="1" y="285" max="100" width="250" display="room-temp" height="50" min="-20" direction="Horizontal" default="20.0" variable="room-temp"></slider>
125+
<slider x="10" step="1" y="230" max="1500" width="250" display="melting-temp" height="50" min="500" direction="Horizontal" default="551.0" variable="melting-temp"></slider>
126+
<slider x="10" step="10" y="115" max="2500" width="250" display="init-metal-temp" height="50" min="1550" direction="Horizontal" default="1550.0" variable="init-metal-temp"></slider>
127+
<slider x="10" step="1" y="60" max="100" width="250" display="fill-percentage" height="50" min="1" direction="Horizontal" default="85.0" variable="fill-percentage" units="%"></slider>
128+
<plot x="10" autoPlotX="false" yMax="625.0" autoPlotY="false" yAxis="quantity" y="340" xMin="0.0" height="201" legend="true" xMax="8.0" yMin="0.0" width="250" xAxis="colors" display="Temperatures">
150129
<setup><![CDATA[set-plot-y-range 0 count turtles
151130
set-histogram-num-bars 1 + (length colors)
152131
@@ -178,6 +157,27 @@ foreach colors [ c ->
178157
]]]></update>
179158
</pen>
180159
</plot>
160+
<plot x="550" autoPlotX="true" yMax="625.0" autoPlotY="true" yAxis="crystal quant." y="440" xMin="0.0" height="201" legend="false" xMax="100.0" yMin="0.0" width="275" xAxis="time" display="Number Solidified">
161+
<setup>set-plot-y-range 0 count turtles</setup>
162+
<update></update>
163+
<pen interval="1.0" mode="0" display="amount" color="-16777216" legend="false">
164+
<setup></setup>
165+
<update>plot num-frozen</update>
166+
</pen>
167+
</plot>
168+
<plot x="265" autoPlotX="true" yMax="1550.0" autoPlotY="true" yAxis="ave-metal-temp" y="440" xMin="0.0" height="201" legend="true" xMax="100.0" yMin="20.0" width="275" xAxis="time" display="Average Metal Temperature">
169+
<setup>set-plot-y-range room-temp init-metal-temp</setup>
170+
<update>if not histogram? [ stop ]</update>
171+
<pen interval="1.0" mode="0" display="ave-metal-temp" color="-2674135" legend="false">
172+
<setup></setup>
173+
<update>plot ave-metal-temp</update>
174+
</pen>
175+
</plot>
176+
<button x="9" y="175" height="45" disableUntilTicks="false" forever="false" kind="Observer" width="75">setup</button>
177+
<button x="92" y="175" height="45" disableUntilTicks="true" forever="false" kind="Observer" width="80" display="go once">go</button>
178+
<button x="180" y="175" height="45" disableUntilTicks="true" forever="true" kind="Observer" width="80" display="go">go</button>
179+
<monitor x="141" precision="3" y="545" height="60" fontSize="11" width="115" display="ave-metal-temp">ave-metal-temp</monitor>
180+
<switch x="10" y="545" height="40" on="true" variable="histogram?" width="120" display="histogram?"></switch>
181181
</widgets>
182182
<info><![CDATA[## WHAT IS IT?
183183

0 commit comments

Comments
 (0)