@@ -238,17 +238,30 @@ end
238238; Copyright 2023 Uri Wilensky.
239239; See Info tab for full copyright and license.]]> </code >
240240 <widgets >
241- <view x =" 210" wrappingAllowedX =" true" y =" 10" frameRate =" 30.0" minPycor =" -45" height =" 550" showTickCounter =" true" patchSize =" 6.0" fontSize =" 5" wrappingAllowedY =" true" width =" 550" tickCounterLabel =" ticks" maxPycor =" 45" updateMode =" 1" maxPxcor =" 45" minPxcor =" -45" ></view >
242- <button x =" 5" y =" 107" height =" 33" disableUntilTicks =" false" forever =" false" kind =" Observer" width =" 63" sizeVersion =" 0" >setup</button >
243- <button x =" 75" y =" 107" height =" 33" disableUntilTicks =" true" forever =" false" kind =" Observer" display =" go once" width =" 63" sizeVersion =" 0" >go</button >
244- <button x =" 143" y =" 107" height =" 33" disableUntilTicks =" true" forever =" true" kind =" Observer" width =" 63" sizeVersion =" 0" >go</button >
245- <slider x =" 22" step =" 1" y =" 22" max =" 1000" display =" num-monomers" height =" 33" min =" 1" direction =" Horizontal" default =" 1000.0" variable =" num-monomers" width =" 172" sizeVersion =" 0" ></slider >
246- <slider x =" 21" step =" 1" y =" 64" max =" 100" display =" num-radical-initiators" height =" 33" min =" 1" direction =" Horizontal" default =" 30.0" variable =" num-radical-initiators" width =" 172" sizeVersion =" 0" ></slider >
247- <slider x =" 20" step =" 1" y =" 166" max =" 100" display =" num-add" height =" 33" min =" 1" direction =" Horizontal" default =" 100.0" variable =" num-add" width =" 172" sizeVersion =" 0" ></slider >
248- <button x =" 47" y =" 212" height =" 33" disableUntilTicks =" true" forever =" false" kind =" Observer" width =" 112" sizeVersion =" 0" >add-monomers</button >
249- <button x =" 32" y =" 253" height =" 33" disableUntilTicks =" true" forever =" false" kind =" Observer" width =" 140" sizeVersion =" 0" >add-radical-initiators</button >
250- <slider x =" 19" step =" 1" y =" 313" max =" 100" display =" disproportionation-prob" height =" 33" min =" 0" direction =" Horizontal" default =" 0.0" variable =" disproportionation-prob" width =" 174" sizeVersion =" 0" ></slider >
251- <plot x =" 784" autoPlotX =" false" yMax =" 0.0" autoPlotY =" false" yAxis =" Number of Molecules" y =" 24" xMin =" 0.0" height =" 239" legend =" true" xMax =" 0.0" yMin =" 0.0" xAxis =" Molecular Weight" display =" Molecular Weight Distribution" width =" 377" sizeVersion =" 0" >
241+ <view x =" 261" wrappingAllowedX =" true" y =" 10" frameRate =" 30.0" minPycor =" -45" height =" 554" showTickCounter =" true" patchSize =" 6.044" fontSize =" 5" wrappingAllowedY =" true" width =" 554" tickCounterLabel =" ticks" maxPycor =" 45" updateMode =" 1" maxPxcor =" 45" minPxcor =" -45" ></view >
242+ <slider x =" 6" step =" 1" y =" 11" max =" 1000" width =" 250" display =" num-monomers" height =" 50" min =" 1" direction =" Horizontal" default =" 1000.0" variable =" num-monomers" ></slider >
243+ <note x =" 14" y =" 364" backgroundDark =" 0" fontSize =" 12" width =" 150" markdown =" false" height =" 26" textColorDark =" -1" textColorLight =" -16777216" backgroundLight =" 0" ><![CDATA[ Shape & Color Key
244+
245+ ]]> </note >
246+ <note x =" 39" y =" 389" backgroundDark =" 0" fontSize =" 11" width =" 150" markdown =" false" height =" 18" textColorDark =" -1" textColorLight =" -8275240" backgroundLight =" 0" >monomers: sky blue</note >
247+ <note x =" 40" y =" 409" backgroundDark =" 0" fontSize =" 11" width =" 150" markdown =" false" height =" 18" textColorDark =" -1" textColorLight =" -5825686" backgroundLight =" 0" >radical mers: magenta</note >
248+ <note x =" 39" y =" 429" backgroundDark =" 0" fontSize =" 11" width =" 150" markdown =" false" height =" 18" textColorDark =" -1" textColorLight =" -14454117" backgroundLight =" 0" >saturated mers: teal</note >
249+ <note x =" 39" y =" 449" backgroundDark =" 0" fontSize =" 11" width =" 175" markdown =" false" height =" 26" textColorDark =" -1" textColorLight =" -612749" backgroundLight =" 0" >radical initiators: light orange</note >
250+ <note x =" 14" y =" 439" backgroundDark =" 0" fontSize =" 25" width =" 25" markdown =" false" height =" 23" textColorDark =" -1" textColorLight =" -612749" backgroundLight =" 0" >■</note >
251+ <note x =" 14" y =" 459" backgroundDark =" 0" fontSize =" 25" width =" 25" markdown =" false" height =" 31" textColorDark =" -1" textColorLight =" -6995700" backgroundLight =" 0" >■</note >
252+ <note x =" 14" y =" 419" backgroundDark =" 0" fontSize =" 25" width =" 25" markdown =" false" height =" 31" textColorDark =" -1" textColorLight =" -14454117" backgroundLight =" 0" >●</note >
253+ <note x =" 14" y =" 399" backgroundDark =" 0" fontSize =" 25" width =" 25" markdown =" false" height =" 31" textColorDark =" -1" textColorLight =" -5825686" backgroundLight =" 0" >●</note >
254+ <note x =" 14" y =" 379" backgroundDark =" 0" fontSize =" 25" width =" 25" markdown =" false" height =" 31" textColorDark =" -1" textColorLight =" -8275240" backgroundLight =" 0" >●</note >
255+ <note x =" 39" y =" 469" backgroundDark =" 0" fontSize =" 11" width =" 150" markdown =" false" height =" 18" textColorDark =" -1" textColorLight =" -6995700" backgroundLight =" 0" >initiators: dark orange</note >
256+ <slider x =" 4" step =" 1" y =" 294" max =" 100" width =" 250" display =" disproportionation-prob" height =" 50" min =" 0" direction =" Horizontal" default =" 0.0" variable =" disproportionation-prob" ></slider >
257+ <button x =" 119" y =" 249" height =" 35" disableUntilTicks =" true" forever =" false" kind =" Observer" width =" 135" >add-radical-initiators</button >
258+ <button x =" 4" y =" 249" height =" 35" disableUntilTicks =" true" forever =" false" kind =" Observer" width =" 105" >add-monomers</button >
259+ <button x =" 89" y =" 134" height =" 40" disableUntilTicks =" true" forever =" false" kind =" Observer" width =" 70" display =" go once" >go</button >
260+ <button x =" 4" y =" 134" height =" 40" disableUntilTicks =" false" forever =" false" kind =" Observer" width =" 70" >setup</button >
261+ <button x =" 172" y =" 134" height =" 40" disableUntilTicks =" true" forever =" true" kind =" Observer" width =" 80" >go</button >
262+ <slider x =" 4" step =" 1" y =" 191" max =" 100" width =" 250" display =" num-add" height =" 50" min =" 1" direction =" Horizontal" default =" 100.0" variable =" num-add" ></slider >
263+ <slider x =" 5" step =" 1" y =" 70" max =" 100" width =" 250" display =" num-radical-initiators" height =" 50" min =" 1" direction =" Horizontal" default =" 30.0" variable =" num-radical-initiators" ></slider >
264+ <plot x =" 820" autoPlotX =" false" yMax =" 0.0" autoPlotY =" false" yAxis =" Number of Molecules" y =" 10" xMin =" 0.0" height =" 290" legend =" true" xMax =" 0.0" yMin =" 0.0" width =" 377" xAxis =" Molecular Weight" display =" Molecular Weight Distribution" >
252265 <setup >set-plot-x-range 0 (round (num-monomers * 0.1))
253266set-plot-y-range 0 (round (num-radical-initiators * 0.7))</setup >
254267 <update >if (any? initiators) and (ticks mod 100) = 0 [
@@ -274,30 +287,17 @@ plotxy wgt-avg-molecular-weight plot-y-min
274287plotxy wgt-avg-molecular-weight plot-y-max</update >
275288 </pen >
276289 </plot >
277- <note x =" 20" y =" 390" height =" 26" backgroundDark =" 0" fontSize =" 12" width =" 150" markdown =" false" textColorLight =" -16777216" backgroundLight =" 0" ><![CDATA[ Shape & Color Key
278-
279- ]]> </note >
280- <note x =" 45" y =" 415" height =" 18" backgroundDark =" 0" fontSize =" 11" width =" 150" markdown =" false" textColorLight =" -8275240" backgroundLight =" 0" >monomers: sky blue</note >
281- <note x =" 46" y =" 435" height =" 18" backgroundDark =" 0" fontSize =" 11" width =" 150" markdown =" false" textColorLight =" -5825686" backgroundLight =" 0" >radical mers: magenta</note >
282- <note x =" 45" y =" 455" height =" 18" backgroundDark =" 0" fontSize =" 11" width =" 150" markdown =" false" textColorLight =" -14454117" backgroundLight =" 0" >saturated mers: teal</note >
283- <note x =" 45" y =" 475" height =" 26" backgroundDark =" 0" fontSize =" 11" width =" 175" markdown =" false" textColorLight =" -612749" backgroundLight =" 0" >radical initiators: light orange</note >
284- <note x =" 45" y =" 495" height =" 18" backgroundDark =" 0" fontSize =" 11" width =" 150" markdown =" false" textColorLight =" -6995700" backgroundLight =" 0" >initiators: dark orange</note >
285- <monitor x =" 785" precision =" 1" y =" 277" height =" 45" fontSize =" 11" display =" Number Avg MW" width =" 116" sizeVersion =" 0" >num-avg-molecular-weight</monitor >
286- <monitor x =" 911" precision =" 1" y =" 277" height =" 45" fontSize =" 11" display =" Weight Avg MW" width =" 114" sizeVersion =" 0" >wgt-avg-molecular-weight</monitor >
287- <monitor x =" 1035" precision =" 2" y =" 277" height =" 45" fontSize =" 11" display =" Polydispersity Index" width =" 126" sizeVersion =" 0" >wgt-avg-molecular-weight / num-avg-molecular-weight</monitor >
288- <plot x =" 786" autoPlotX =" true" yMax =" 0.1" autoPlotY =" true" yAxis =" # / volume" y =" 337" xMin =" 0.0" height =" 190" legend =" false" xMax =" 10.0" yMin =" 0.0" xAxis =" ticks" display =" Monomer Concentration" width =" 239" sizeVersion =" 0" >
290+ <monitor x =" 820" precision =" 1" y =" 305" height =" 60" fontSize =" 11" width =" 116" display =" Number Avg MW" >num-avg-molecular-weight</monitor >
291+ <monitor x =" 1070" precision =" 2" y =" 305" height =" 60" fontSize =" 11" width =" 126" display =" Polydispersity Index" >wgt-avg-molecular-weight / num-avg-molecular-weight</monitor >
292+ <monitor x =" 945" precision =" 1" y =" 305" height =" 60" fontSize =" 11" width =" 114" display =" Weight Avg MW" >wgt-avg-molecular-weight</monitor >
293+ <plot x =" 820" autoPlotX =" true" yMax =" 0.1" autoPlotY =" true" yAxis =" # / volume" y =" 370" xMin =" 0.0" height =" 195" legend =" false" xMax =" 10.0" yMin =" 0.0" width =" 380" xAxis =" ticks" display =" Monomer Concentration" >
289294 <setup ></setup >
290295 <update ></update >
291296 <pen interval =" 1.0" mode =" 0" display =" default" color =" -16777216" legend =" true" >
292297 <setup ></setup >
293298 <update >plot (count unsaturated-mers with [monomer?]) / (world-width * world-height)</update >
294299 </pen >
295300 </plot >
296- <note x =" 20" y =" 465" height =" 23" backgroundDark =" 0" fontSize =" 25" width =" 25" markdown =" false" textColorLight =" -612749" backgroundLight =" 0" >■</note >
297- <note x =" 20" y =" 485" height =" 31" backgroundDark =" 0" fontSize =" 25" width =" 25" markdown =" false" textColorLight =" -6995700" backgroundLight =" 0" >■</note >
298- <note x =" 20" y =" 445" height =" 31" backgroundDark =" 0" fontSize =" 25" width =" 25" markdown =" false" textColorLight =" -14454117" backgroundLight =" 0" >●</note >
299- <note x =" 20" y =" 425" height =" 31" backgroundDark =" 0" fontSize =" 25" width =" 25" markdown =" false" textColorLight =" -5825686" backgroundLight =" 0" >●</note >
300- <note x =" 20" y =" 405" height =" 31" backgroundDark =" 0" fontSize =" 25" width =" 25" markdown =" false" textColorLight =" -8275240" backgroundLight =" 0" >●</note >
301301 </widgets >
302302 <info ><![CDATA[ ## WHAT IS IT?
303303
0 commit comments