Skip to content

Commit 4486da2

Browse files
committed
Resize Crystallization Directed
1 parent 48ee015 commit 4486da2

1 file changed

Lines changed: 25 additions & 25 deletions

File tree

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

Lines changed: 25 additions & 25 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-beta0" snapToGrid="false">
2+
<model version="NetLogo 7.0.0-beta1" snapToGrid="true">
33
<code><![CDATA[turtles-own [
44
temp ;; this turtle's temperature
55
neighboring-turtles ;; agentset of surrounding turtles
@@ -110,31 +110,29 @@ end
110110
; See Info tab for full copyright and license.]]></code>
111111
<widgets>
112112
<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-
<button x="263" y="72" height="36" disableUntilTicks="true" forever="true" kind="Observer" display="go" width="68" sizeVersion="0">go</button>
114-
<button x="221" y="24" height="37" disableUntilTicks="false" forever="false" kind="Observer" width="66" sizeVersion="0">setup</button>
115-
<slider x="9" step="1" y="27" max="100" display="room-temp" height="33" min="-20" direction="Horizontal" default="20.0" variable="room-temp" width="163" sizeVersion="0"></slider>
116-
<slider x="9" step="10" y="66" max="2500" display="init-metal-temp" height="33" min="1550" direction="Horizontal" default="1550.0" variable="init-metal-temp" width="163" sizeVersion="0"></slider>
117-
<slider x="9" step="1" y="104" max="1500" display="melting-temp" height="33" min="500" direction="Horizontal" default="500.0" variable="melting-temp" width="163" sizeVersion="0"></slider>
118-
<monitor x="180" precision="3" y="401" height="45" fontSize="11" display="ave-metal-temp" width="102" sizeVersion="0">ave-metal-temp</monitor>
119-
<slider x="13" step="2" y="152" max="31" display="width" height="33" min="1" direction="Horizontal" default="31.0" variable="width" units="atoms" width="113" sizeVersion="0"></slider>
120-
<slider x="13" step="2" y="189" max="31" display="height" height="33" min="1" direction="Horizontal" default="31.0" variable="height" units="atoms" width="113" sizeVersion="0"></slider>
121-
<plot x="4" autoPlotX="true" yMax="1550.0" autoPlotY="true" yAxis="ave-metal-temp" y="443" xMin="0.0" height="201" legend="true" xMax="100.0" yMin="20.0" xAxis="time" display="Average Metal Temperature" width="275" sizeVersion="0">
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">
122127
<setup>set-plot-y-range room-temp init-metal-temp</setup>
123128
<update></update>
124129
<pen interval="1.0" mode="0" display="ave-metal-temp" color="-2674135" legend="false">
125130
<setup></setup>
126131
<update>plot ave-metal-temp</update>
127132
</pen>
128133
</plot>
129-
<plot x="282" autoPlotX="true" yMax="625.0" autoPlotY="true" yAxis="crystal quant." y="443" xMin="0.0" height="201" legend="false" xMax="100.0" yMin="0.0" xAxis="time" display="Number Solidified" width="213" sizeVersion="0">
130-
<setup>set-plot-y-range 0 count turtles</setup>
131-
<update></update>
132-
<pen interval="1.0" mode="0" display="amount" color="-16777216" legend="false">
133-
<setup></setup>
134-
<update>plot num-frozen</update>
135-
</pen>
136-
</plot>
137-
<plot x="501" autoPlotX="false" yMax="625.0" autoPlotY="false" yAxis="quantity" y="441" xMin="0.0" height="201" legend="true" xMax="8.0" yMin="0.0" xAxis="colors" display="Temperatures" width="248" sizeVersion="0">
134+
<monitor x="185" precision="3" y="380" height="60" fontSize="11" width="102" display="ave-metal-temp">ave-metal-temp</monitor>
135+
<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">
138136
<setup><![CDATA[set-plot-y-range 0 count turtles
139137
set-histogram-num-bars 1 + (length colors)
140138
@@ -167,12 +165,14 @@ foreach colors [ c ->
167165
<update></update>
168166
</pen>
169167
</plot>
170-
<switch x="208" y="248" height="33" on="true" variable="histogram?" display="histogram?" width="132" sizeVersion="0"></switch>
171-
<button x="183" y="72" height="35" disableUntilTicks="true" forever="false" kind="Observer" display="go once" width="67" sizeVersion="0">go</button>
172-
<switch x="183" y="123" height="33" on="false" variable="heat-top?" display="heat-top?" width="142" sizeVersion="0"></switch>
173-
<switch x="180" y="191" height="33" on="false" variable="heat-bottom?" display="heat-bottom?" width="142" sizeVersion="0"></switch>
174-
<switch x="248" y="157" height="33" on="false" variable="heat-right?" display="heat-right?" width="124" sizeVersion="0"></switch>
175-
<switch x="133" y="157" height="33" on="false" variable="heat-left?" display="heat-left?" width="114" sizeVersion="0"></switch>
168+
<plot x="290" autoPlotX="true" yMax="625.0" autoPlotY="true" yAxis="crystal quant." y="445" xMin="0.0" height="201" legend="false" xMax="100.0" yMin="0.0" width="275" xAxis="time" display="Number Solidified">
169+
<setup>set-plot-y-range 0 count turtles</setup>
170+
<update></update>
171+
<pen interval="1.0" mode="0" display="amount" color="-16777216" legend="false">
172+
<setup></setup>
173+
<update>plot num-frozen</update>
174+
</pen>
175+
</plot>
176176
</widgets>
177177
<info><![CDATA[## WHAT IS IT?
178178

0 commit comments

Comments
 (0)