Skip to content

Commit 9ad081f

Browse files
committed
Convert Lattice Land, MaterialSim and MTG to new sizes
1 parent c7e7a0d commit 9ad081f

7 files changed

Lines changed: 84 additions & 84 deletions

Curricular Models/Lattice Land/Lattice Land - Explore.nlogox

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -384,24 +384,24 @@ end
384384
; See Info tab for full copyright and license.]]></code>
385385
<widgets>
386386
<view x="245" wrappingAllowedX="false" y="15" frameRate="30.0" minPycor="0" height="459" showTickCounter="false" patchSize="35.0" fontSize="10" wrappingAllowedY="false" width="914" tickCounterLabel="ticks" maxPycor="12" updateMode="0" maxPxcor="25" minPxcor="0"></view>
387-
<button x="25" y="195" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="75" sizeVersion="0">setup</button>
388-
<monitor x="25" precision="3" y="365" height="45" fontSize="11" width="175" sizeVersion="0">perimeter</monitor>
389-
<chooser x="25" y="240" height="45" variable="action" current="1" display="action" width="175" sizeVersion="0">
387+
<button x="25" y="246" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="75">setup</button>
388+
<monitor x="25" precision="3" y="438" height="60" fontSize="11" width="175">perimeter</monitor>
389+
<chooser x="25" y="298" height="60" variable="action" current="1" width="175" display="action">
390390
<choice type="string" value="Draw Polygon"></choice>
391391
<choice type="string" value="Draw Segment"></choice>
392392
<choice type="string" value="Delete Segment"></choice>
393393
</chooser>
394-
<button x="120" y="195" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="80" sizeVersion="0">go</button>
395-
<slider x="25" step="1" y="70" max="35" display="width" height="33" min="4" direction="Horizontal" default="25.0" variable="width" width="175" sizeVersion="0"></slider>
396-
<slider x="25" step="1" y="110" max="25" display="height" height="33" min="4" direction="Horizontal" default="12.0" variable="height" width="175" sizeVersion="0"></slider>
397-
<slider x="25" step="5" y="150" max="100" display="unit-size" height="33" min="10" direction="Horizontal" default="35.0" variable="unit-size" width="175" sizeVersion="0"></slider>
398-
<note x="25" y="10" height="66" backgroundDark="0" fontSize="14" width="240" markdown="false" textColorLight="-16777216" backgroundLight="0">To resize your world, adjust
394+
<button x="120" y="246" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="80">go</button>
395+
<slider x="25" step="1" y="70" max="35" width="175" display="width" height="50" min="4" direction="Horizontal" default="25.0" variable="width"></slider>
396+
<slider x="25" step="1" y="127" max="25" width="175" display="height" height="50" min="4" direction="Horizontal" default="12.0" variable="height"></slider>
397+
<slider x="25" step="5" y="184" max="100" width="175" display="unit-size" height="50" min="10" direction="Horizontal" default="35.0" variable="unit-size"></slider>
398+
<note x="25" y="10" backgroundDark="0" fontSize="14" width="240" markdown="false" height="66" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">To resize your world, adjust
399399
these sliders. Hit "setup" to
400400
apply your changes.</note>
401-
<input x="25" multiline="false" y="295" height="60" variable="segment-color" type="color" width="175" sizeVersion="0">85.0</input>
402-
<button x="25" y="460" height="33" disableUntilTicks="true" forever="false" kind="Observer" display="clear-segments" width="175" sizeVersion="0">ask segments [ die ]</button>
403-
<button x="25" y="500" height="33" disableUntilTicks="true" forever="false" kind="Observer" display="clear-polygons" width="175" sizeVersion="0">ask edges [ die ]</button>
404-
<button x="25" y="420" height="33" disableUntilTicks="true" forever="false" kind="Observer" width="175" sizeVersion="0">check-area</button>
401+
<input x="25" multiline="false" y="368" height="60" variable="segment-color" type="color" width="175">85.0</input>
402+
<button x="25" y="555" height="40" disableUntilTicks="true" forever="false" kind="Observer" width="175" display="clear-segments">ask segments [ die ]</button>
403+
<button x="25" y="602" height="40" disableUntilTicks="true" forever="false" kind="Observer" width="175" display="clear-polygons">ask edges [ die ]</button>
404+
<button x="25" y="508" height="40" disableUntilTicks="true" forever="false" kind="Observer" width="175">check-area</button>
405405
</widgets>
406406
<info><![CDATA[## WHAT IS IT?
407407

Curricular Models/Lattice Land/Lattice Land - Triangles Dissection.nlogox

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -270,16 +270,16 @@ end
270270
; See Info tab for full copyright and license.]]></code>
271271
<widgets>
272272
<view x="185" wrappingAllowedX="false" y="15" frameRate="30.0" minPycor="0" height="369" showTickCounter="false" patchSize="73.0" fontSize="14" wrappingAllowedY="false" width="369" tickCounterLabel="ticks" maxPycor="4" updateMode="0" maxPxcor="4" minPxcor="0"></view>
273-
<button x="15" y="15" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="63" sizeVersion="0">setup</button>
274-
<button x="90" y="15" height="33" disableUntilTicks="false" forever="true" kind="Observer" width="63" sizeVersion="0">go</button>
275-
<button x="15" y="355" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="140" sizeVersion="0">check-area
273+
<button x="15" y="15" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="63">setup</button>
274+
<button x="90" y="15" height="40" disableUntilTicks="false" forever="true" kind="Observer" width="63">go</button>
275+
<button x="15" y="439" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="140">check-area
276276
</button>
277-
<monitor x="15" precision="2" y="215" height="45" fontSize="11" display="length of side S3" width="140" sizeVersion="0">d1</monitor>
278-
<monitor x="15" precision="2" y="260" height="45" fontSize="11" display="length of side S2" width="140" sizeVersion="0">d2</monitor>
279-
<monitor x="15" precision="2" y="305" height="45" fontSize="11" display="length of side S1" width="140" sizeVersion="0">d3</monitor>
280-
<button x="15" y="175" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="140" sizeVersion="0">clear-segments</button>
281-
<input x="15" multiline="false" y="110" height="60" variable="segment-color" type="color" width="140" sizeVersion="0">65.0</input>
282-
<chooser x="15" y="60" height="45" variable="action" current="0" display="action" width="140" sizeVersion="0">
277+
<monitor x="15" precision="2" y="244" height="60" fontSize="11" width="140" display="length of side S3">d1</monitor>
278+
<monitor x="15" precision="2" y="309" height="60" fontSize="11" width="140" display="length of side S2">d2</monitor>
279+
<monitor x="15" precision="2" y="374" height="60" fontSize="11" width="140" display="length of side S1">d3</monitor>
280+
<button x="15" y="197" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="140">clear-segments</button>
281+
<input x="15" multiline="false" y="132" height="60" variable="segment-color" type="color" width="140">65.0</input>
282+
<chooser x="15" y="67" height="60" variable="action" current="0" width="140" display="action">
283283
<choice type="string" value="Modify Triangle"></choice>
284284
<choice type="string" value="Draw Segment"></choice>
285285
<choice type="string" value="Delete Segment"></choice>

Curricular Models/Lattice Land/Lattice Land - Triangles Explore.nlogox

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,12 @@ end
143143
; See Info tab for full copyright and license.]]></code>
144144
<widgets>
145145
<view x="185" wrappingAllowedX="false" y="10" frameRate="30.0" minPycor="0" height="354" showTickCounter="true" patchSize="70.0" fontSize="14" wrappingAllowedY="false" width="354" tickCounterLabel="ticks" maxPycor="4" updateMode="0" maxPxcor="4" minPxcor="0"></view>
146-
<button x="20" y="10" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="63" sizeVersion="0">setup</button>
147-
<button x="96" y="10" height="33" disableUntilTicks="false" forever="true" kind="Observer" width="63" sizeVersion="0">go</button>
148-
<button x="20" y="210" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="140" sizeVersion="0">check-area</button>
149-
<monitor x="20" precision="2" y="60" height="45" fontSize="11" display="length of side S3" width="140" sizeVersion="0">d1</monitor>
150-
<monitor x="20" precision="2" y="105" height="45" fontSize="11" display="length of side S2" width="140" sizeVersion="0">d2</monitor>
151-
<monitor x="20" precision="2" y="150" height="45" fontSize="11" display="length of side S1" width="140" sizeVersion="0">d3</monitor>
146+
<button x="20" y="10" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="63">setup</button>
147+
<button x="96" y="10" height="40" disableUntilTicks="false" forever="true" kind="Observer" width="63">go</button>
148+
<button x="20" y="272" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="140">check-area</button>
149+
<monitor x="20" precision="2" y="67" height="60" fontSize="11" width="140" display="length of side S3">d1</monitor>
150+
<monitor x="20" precision="2" y="132" height="60" fontSize="11" width="140" display="length of side S2">d2</monitor>
151+
<monitor x="20" precision="2" y="197" height="60" fontSize="11" width="140" display="length of side S1">d3</monitor>
152152
</widgets>
153153
<info><![CDATA[## WHAT IS IT?
154154

Curricular Models/MaterialSim/MaterialSim Grain Growth.nlogox

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -256,25 +256,24 @@ end
256256
; Copyright 2005 Uri Wilensky.
257257
; See Info tab for full copyright and license.]]></code>
258258
<widgets>
259-
<view x="345" wrappingAllowedX="false" y="5" frameRate="60.0" minPycor="-24" height="445" showTickCounter="true" patchSize="9.0" fontSize="9" wrappingAllowedY="false" width="445" tickCounterLabel="ticks" maxPycor="24" updateMode="1" maxPxcor="24" minPxcor="-24"></view>
260-
<note x="30" y="570" backgroundDark="0" fontSize="11" width="139" markdown="false" height="18" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Run model</note>
261-
<note x="30" y="544" backgroundDark="0" fontSize="11" width="295" markdown="false" height="18" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">_____________________________________________</note>
259+
<view x="350" wrappingAllowedX="false" y="5" frameRate="60.0" minPycor="-24" height="445" showTickCounter="true" patchSize="9.0" fontSize="9" wrappingAllowedY="false" width="445" tickCounterLabel="ticks" maxPycor="24" updateMode="1" maxPxcor="24" minPxcor="-24"></view>
260+
<note x="30" y="576" backgroundDark="0" fontSize="11" width="139" markdown="false" height="18" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Run model</note>
261+
<note x="30" y="550" backgroundDark="0" fontSize="11" width="295" markdown="false" height="18" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">_____________________________________________</note>
262262
<note x="5" y="75" backgroundDark="0" fontSize="30" width="25" markdown="false" height="36" textColorDark="-1" textColorLight="-5298144" backgroundLight="0">1</note>
263-
<note x="30" y="10" backgroundDark="0" fontSize="11" width="285" markdown="false" height="71" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Model starting point (you can start from a random arrangement or a picture from a microscope. You can also determine if you want a certain percentage of a second element, sometimes called grain refiner)</note>
263+
<note x="35" y="10" backgroundDark="0" fontSize="11" width="285" markdown="false" height="71" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Model starting point (you can start from a random arrangement or a picture from a microscope. You can also determine if you want a certain percentage of a second element, sometimes called grain refiner)</note>
264264
<note x="3" y="225" backgroundDark="0" fontSize="30" width="25" markdown="false" height="36" textColorDark="-1" textColorLight="-5298144" backgroundLight="0">2</note>
265265
<note x="3" y="375" backgroundDark="0" fontSize="30" width="35" markdown="false" height="36" textColorDark="-1" textColorLight="-5298144" backgroundLight="0">3</note>
266266
<note x="30" y="370" backgroundDark="0" fontSize="11" width="260" markdown="false" height="56" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Draw/edit grains (this is optional, you can use this to "draw" new grain structures, or edit the grains at any point during the simulation)</note>
267267
<note x="0" y="560" backgroundDark="0" fontSize="30" width="25" markdown="false" height="36" textColorDark="-1" textColorLight="-5298144" backgroundLight="0">4</note>
268-
<chooser x="30" y="85" height="60" variable="starting-point" current="0" width="200" display="starting-point">
268+
<chooser x="35" y="85" height="60" variable="starting-point" current="0" width="200" display="starting-point">
269269
<choice type="string" value="Random Arrangement"></choice>
270270
<choice type="string" value="Import Image"></choice>
271271
</chooser>
272-
<slider x="30" step="1" y="150" max="99" width="200" display="percent-element2" height="50" min="0" direction="Horizontal" default="0.0" variable="percent-element2" units="%"></slider>
273272
<note x="30" y="205" backgroundDark="0" fontSize="11" width="290" markdown="false" height="18" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">__________________________________________________________</note>
274273
<note x="30" y="340" backgroundDark="0" fontSize="11" width="295" markdown="false" height="26" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">__________________________________________________________</note>
275-
<button x="235" y="115" height="55" disableUntilTicks="false" forever="false" kind="Observer" width="85">setup</button>
276-
<slider x="30" step="1.0" y="425" max="6.0" width="200" display="brush-size" height="50" min="1.0" direction="Horizontal" default="3.0" variable="brush-size"></slider>
277-
<chooser x="30" y="481" height="60" variable="draw-color" current="0" width="200" display="draw-color">
274+
<button x="240" y="115" height="55" disableUntilTicks="false" forever="false" kind="Observer" width="85">setup</button>
275+
<slider x="30" step="1.0" y="431" max="6.0" width="200" display="brush-size" height="50" min="1.0" direction="Horizontal" default="3.0" variable="brush-size"></slider>
276+
<chooser x="30" y="487" height="60" variable="draw-color" current="0" width="200" display="draw-color">
278277
<choice type="string" value="yellow"></choice>
279278
<choice type="string" value="green"></choice>
280279
<choice type="string" value="cyan"></choice>
@@ -293,16 +292,16 @@ end
293292
<button x="235" y="285" height="45" disableUntilTicks="false" forever="false" kind="Observer" width="85" display="apply shape">ask element1s [set shape atom-shape]</button>
294293
<button x="235" y="435" height="45" disableUntilTicks="false" forever="true" kind="Observer" width="85" display="draw">turtle-draw</button>
295294
<button x="235" y="485" height="45" disableUntilTicks="false" forever="false" kind="Observer" width="85" display="erase all">erase-all</button>
296-
<button x="30" y="589" height="50" disableUntilTicks="true" forever="true" kind="Observer" width="122" display="go">go</button>
297-
<button x="157" y="589" height="50" disableUntilTicks="true" forever="false" kind="Observer" width="135" display="go once">go</button>
295+
<button x="30" y="595" height="50" disableUntilTicks="true" forever="true" kind="Observer" width="122" display="go">go</button>
296+
<button x="157" y="595" height="50" disableUntilTicks="true" forever="false" kind="Observer" width="135" display="go once">go</button>
298297
<note x="395" y="490" backgroundDark="0" fontSize="18" width="300" markdown="false" height="25" textColorDark="-1" textColorLight="-5298144" backgroundLight="0">Annealing Temperature</note>
299298
<note x="395" y="575" backgroundDark="0" fontSize="11" width="430" markdown="false" height="86" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">A high annealing temperature makes some atoms randomly jump to the next grain. When it is zero, only the energetically favorable jumps will happen. Temperature here is represented as a relative value -- a percentage of random jumps out of the possible jumps. 100% means that all the jumps are random.</note>
300299
<slider x="395" step="1.0" y="520" max="100.0" width="262" display="annealing-temperature" height="50" min="0.0" direction="Horizontal" default="0.0" variable="annealing-temperature" units="%"></slider>
301-
<note x="820" y="5" backgroundDark="0" fontSize="18" width="355" markdown="false" height="25" textColorDark="-1" textColorLight="-5298144" backgroundLight="0">Grain size plot and calculations</note>
302-
<monitor x="1110" precision="2" y="170" height="60" fontSize="11" width="118" display="Log Grain Size">logaverage-grain-size</monitor>
303-
<monitor x="1110" precision="2" y="105" height="60" fontSize="11" width="118" display="Log time">logtime</monitor>
304-
<monitor x="1110" precision="3" y="40" height="60" fontSize="11" width="118" display="Grain Size">average-grain-size</monitor>
305-
<plot x="825" autoPlotX="true" yMax="1.0" autoPlotY="true" yAxis="Log grain size" y="40" xMin="0.0" height="270" legend="false" xMax="1.0" yMin="0.0" width="275" xAxis="Log time" display="Grain Size (log-log)">
300+
<note x="825" y="5" backgroundDark="0" fontSize="18" width="355" markdown="false" height="25" textColorDark="-1" textColorLight="-5298144" backgroundLight="0">Grain size plot and calculations</note>
301+
<monitor x="1115" precision="2" y="170" height="60" fontSize="11" width="118" display="Log Grain Size">logaverage-grain-size</monitor>
302+
<monitor x="1115" precision="2" y="105" height="60" fontSize="11" width="118" display="Log time">logtime</monitor>
303+
<monitor x="1115" precision="3" y="40" height="60" fontSize="11" width="118" display="Grain Size">average-grain-size</monitor>
304+
<plot x="830" autoPlotX="true" yMax="1.0" autoPlotY="true" yAxis="Log grain size" y="40" xMin="0.0" height="270" legend="false" xMax="1.0" yMin="0.0" width="275" xAxis="Log time" display="Grain Size (log-log)">
306305
<setup></setup>
307306
<update>;; only update this as often as we have specified below
308307
;; we have to subtract one because the tick command is always
@@ -315,12 +314,13 @@ set update-plots? false</update>
315314
<update>plotxy logtime logaverage-grain-size</update>
316315
</pen>
317316
</plot>
318-
<note x="825" y="325" backgroundDark="0" fontSize="11" width="132" markdown="false" height="18" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Grain measurement</note>
319-
<button x="1080" y="355" height="35" disableUntilTicks="true" forever="false" kind="Observer" width="145" display="measure grains now">count-grains-and-measure-grain-size
317+
<note x="830" y="325" backgroundDark="0" fontSize="11" width="132" markdown="false" height="18" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Grain measurement</note>
318+
<button x="1085" y="355" height="35" disableUntilTicks="true" forever="false" kind="Observer" width="145" display="measure grains now">count-grains-and-measure-grain-size
320319
set update-plots? true</button>
321-
<note x="825" y="410" backgroundDark="0" fontSize="11" width="315" markdown="false" height="41" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">This slider determines how often the grain size is measured</note>
322-
<slider x="825" step="1" y="350" max="200" width="250" display="ticks-per-measurement" height="50" min="1" direction="Horizontal" default="50.0" variable="ticks-per-measurement"></slider>
323-
<monitor x="1110" precision="2" y="250" height="60" fontSize="11" width="118" display="Growth exponent">grain-growth-exponent</monitor>
320+
<note x="830" y="410" backgroundDark="0" fontSize="11" width="315" markdown="false" height="41" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">This slider determines how often the grain size is measured</note>
321+
<slider x="830" step="1" y="350" max="200" width="250" display="ticks-per-measurement" height="50" min="1" direction="Horizontal" default="50.0" variable="ticks-per-measurement"></slider>
322+
<monitor x="1115" precision="2" y="250" height="60" fontSize="11" width="118" display="Growth exponent">grain-growth-exponent</monitor>
323+
<slider x="35" step="1" y="150" max="99" width="200" display="percent-element2" height="50" min="0" direction="Horizontal" default="0.0" variable="percent-element2" units="%"></slider>
324324
</widgets>
325325
<info><![CDATA[## WHAT IS IT?
326326

0 commit comments

Comments
 (0)