Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<model version="NetLogo 7.0.0-beta0" snapToGrid="false">
<model version="NetLogo 7.0.0-beta1" snapToGrid="true">
<code><![CDATA[turtles-own [
temp ;; this turtle's temperature
neighboring-turtles ;; agentset of surrounding turtles
Expand Down Expand Up @@ -110,31 +110,29 @@ end
; See Info tab for full copyright and license.]]></code>
<widgets>
<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>
<button x="263" y="72" height="36" disableUntilTicks="true" forever="true" kind="Observer" display="go" width="68" sizeVersion="0">go</button>
<button x="221" y="24" height="37" disableUntilTicks="false" forever="false" kind="Observer" width="66" sizeVersion="0">setup</button>
<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>
<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>
<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>
<monitor x="180" precision="3" y="401" height="45" fontSize="11" display="ave-metal-temp" width="102" sizeVersion="0">ave-metal-temp</monitor>
<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>
<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>
<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">
<switch x="330" y="120" height="37" on="false" variable="heat-top?" width="115" display="heat-top?"></switch>
<switch x="330" y="200" height="37" on="false" variable="heat-bottom?" width="115" display="heat-bottom?"></switch>
<switch x="390" y="160" height="37" on="false" variable="heat-right?" width="115" display="heat-right?"></switch>
<switch x="275" y="160" height="37" on="true" variable="heat-left?" width="114" display="heat-left?"></switch>
<switch x="330" y="255" height="37" on="true" variable="histogram?" width="115" display="histogram?"></switch>
<button x="355" y="25" height="37" disableUntilTicks="false" forever="false" kind="Observer" width="66">setup</button>
<button x="320" y="70" height="35" disableUntilTicks="true" forever="false" kind="Observer" width="65" display="go once">go</button>
<button x="390" y="70" height="36" disableUntilTicks="true" forever="true" kind="Observer" width="65" display="go">go</button>
<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>
<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>
<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>
<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>
<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>
<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">
<setup>set-plot-y-range room-temp init-metal-temp</setup>
<update></update>
<pen interval="1.0" mode="0" display="ave-metal-temp" color="-2674135" legend="false">
<setup></setup>
<update>plot ave-metal-temp</update>
</pen>
</plot>
<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">
<setup>set-plot-y-range 0 count turtles</setup>
<update></update>
<pen interval="1.0" mode="0" display="amount" color="-16777216" legend="false">
<setup></setup>
<update>plot num-frozen</update>
</pen>
</plot>
<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">
<monitor x="185" precision="3" y="380" height="60" fontSize="11" width="102" display="ave-metal-temp">ave-metal-temp</monitor>
<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">
<setup><![CDATA[set-plot-y-range 0 count turtles
set-histogram-num-bars 1 + (length colors)

Expand Down Expand Up @@ -167,12 +165,14 @@ foreach colors [ c ->
<update></update>
</pen>
</plot>
<switch x="208" y="248" height="33" on="true" variable="histogram?" display="histogram?" width="132" sizeVersion="0"></switch>
<button x="183" y="72" height="35" disableUntilTicks="true" forever="false" kind="Observer" display="go once" width="67" sizeVersion="0">go</button>
<switch x="183" y="123" height="33" on="false" variable="heat-top?" display="heat-top?" width="142" sizeVersion="0"></switch>
<switch x="180" y="191" height="33" on="false" variable="heat-bottom?" display="heat-bottom?" width="142" sizeVersion="0"></switch>
<switch x="248" y="157" height="33" on="false" variable="heat-right?" display="heat-right?" width="124" sizeVersion="0"></switch>
<switch x="133" y="157" height="33" on="false" variable="heat-left?" display="heat-left?" width="114" sizeVersion="0"></switch>
<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">
<setup>set-plot-y-range 0 count turtles</setup>
<update></update>
<pen interval="1.0" mode="0" display="amount" color="-16777216" legend="false">
<setup></setup>
<update>plot num-frozen</update>
</pen>
</plot>
</widgets>
<info><![CDATA[## WHAT IS IT?

Expand Down
Loading