Skip to content

Commit d5d5048

Browse files
committed
Resize Buffer
1 parent 48ee015 commit d5d5048

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

  • Sample Models/Chemistry & Physics/Chemical Reactions/Acids and Bases

Sample Models/Chemistry & Physics/Chemical Reactions/Acids and Bases/Buffer.nlogox

Lines changed: 16 additions & 16 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[breed [waters water] ;; water molecules
44
breed [hydroniums hydronium] ;; hydronium ions (green)
55
breed [hydroxides hydroxide] ;; base molecules (red)
@@ -137,23 +137,28 @@ end
137137
; Copyright 2001 Uri Wilensky.
138138
; See Info tab for full copyright and license.]]></code>
139139
<widgets>
140-
<view x="279" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-12" height="379" showTickCounter="true" patchSize="15.0" fontSize="10" wrappingAllowedY="true" width="379" tickCounterLabel="ticks" maxPycor="12" updateMode="1" maxPxcor="12" minPxcor="-12"></view>
141-
<slider x="17" step="1.0" y="116" max="200.0" display="starting-conj-base" height="33" min="1.0" direction="Horizontal" default="100.0" variable="starting-conj-base" units="molecules" width="243" sizeVersion="0"></slider>
142-
<slider x="84" step="1.0" y="158" max="100.0" display="added-acid" height="33" min="1.0" direction="Horizontal" default="15.0" variable="added-acid" units="molecules" width="193" sizeVersion="0"></slider>
143-
<button x="20" y="37" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="setup" width="101" sizeVersion="0">setup</button>
144-
<button x="132" y="37" height="33" disableUntilTicks="true" forever="true" kind="Observer" display="go" width="130" sizeVersion="0">go</button>
145-
<button x="7" y="158" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="add acid" width="72" sizeVersion="0">add-acid</button>
146-
<button x="7" y="201" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="add base" width="72" sizeVersion="0">add-base</button>
147-
<plot x="7" autoPlotX="true" yMax="14.0" autoPlotY="true" yAxis="pH" y="287" xMin="0.0" height="196" legend="false" xMax="100.0" yMin="0.0" xAxis="Time" display="pH Curve" width="257" sizeVersion="0">
140+
<view x="345" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-12" height="379" showTickCounter="true" patchSize="15.0" fontSize="10" wrappingAllowedY="true" width="379" tickCounterLabel="ticks" maxPycor="12" updateMode="1" maxPxcor="12" minPxcor="-12"></view>
141+
<button x="10" y="195" height="50" disableUntilTicks="false" forever="false" kind="Observer" width="72" display="add acid">add-acid</button>
142+
<slider x="45" step="1.0" y="138" max="200.0" width="250" display="starting-conj-base" height="50" min="1.0" direction="Horizontal" default="100.0" variable="starting-conj-base" units="molecules"></slider>
143+
<button x="10" y="250" height="49" disableUntilTicks="false" forever="false" kind="Observer" width="72" display="add base">add-base</button>
144+
<slider x="85" step="1.0" y="195" max="100.0" width="250" display="added-acid" height="50" min="1.0" direction="Horizontal" default="15.0" variable="added-acid" units="molecules"></slider>
145+
<slider x="85" step="1.0" y="250" max="100.0" width="250" display="added-base" height="50" min="1.0" direction="Horizontal" default="15.0" variable="added-base" units="molecules"></slider>
146+
<slider x="45" step="1.0" y="85" max="200.0" width="250" display="starting-acid" height="50" min="1.0" direction="Horizontal" default="100.0" variable="starting-acid" units="molecules"></slider>
147+
<button x="175" y="40" height="35" disableUntilTicks="true" forever="true" kind="Observer" width="120" display="go">go</button>
148+
<button x="45" y="40" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="120" display="setup">setup</button>
149+
<plot x="45" autoPlotX="true" yMax="14.0" autoPlotY="true" yAxis="pH" y="360" xMin="0.0" height="196" legend="false" xMax="100.0" yMin="0.0" width="257" xAxis="Time" display="pH Curve">
148150
<setup></setup>
149151
<update></update>
150152
<pen interval="1.0" mode="0" display="default" color="-2674135" legend="true">
151153
<setup></setup>
152154
<update>plot pH</update>
153155
</pen>
154156
</plot>
155-
<slider x="84" step="1.0" y="201" max="100.0" display="added-base" height="33" min="1.0" direction="Horizontal" default="15.0" variable="added-base" units="molecules" width="193" sizeVersion="0"></slider>
156-
<plot x="279" autoPlotX="true" yMax="10.0" autoPlotY="true" yAxis="#" y="427" xMin="0.0" height="219" legend="true" xMax="100.0" yMin="0.0" xAxis="time" display="Molecule Counts" width="386" sizeVersion="0">
157+
<switch x="80" y="315" height="37" on="false" variable="see-starting-water?" width="174" display="see-starting-water?"></switch>
158+
<monitor x="175" precision="0" y="565" height="60" fontSize="11" width="100" display="# hydroxide">count hydroxides</monitor>
159+
<monitor x="70" precision="0" y="565" height="60" fontSize="11" width="100" display="# hydronium">count hydroniums</monitor>
160+
<monitor x="70" precision="2" y="630" height="60" fontSize="11" width="100" display="pH">pH</monitor>
161+
<plot x="345" autoPlotX="true" yMax="10.0" autoPlotY="true" yAxis="#" y="405" xMin="0.0" height="219" legend="true" xMax="100.0" yMin="0.0" width="380" xAxis="time" display="Molecule Counts">
157162
<setup></setup>
158163
<update></update>
159164
<pen interval="1.0" mode="0" display="hydronium" color="-10899396" legend="true">
@@ -177,11 +182,6 @@ end
177182
<update>plot count waters</update>
178183
</pen>
179184
</plot>
180-
<slider x="17" step="1.0" y="80" max="200.0" display="starting-acid" height="33" min="1.0" direction="Horizontal" default="100.0" variable="starting-acid" units="molecules" width="244" sizeVersion="0"></slider>
181-
<switch x="42" y="246" height="33" on="false" variable="see-starting-water?" display="see-starting-water?" width="174" sizeVersion="0"></switch>
182-
<monitor x="37" precision="2" y="556" height="45" fontSize="11" display="pH" width="82" sizeVersion="0">pH</monitor>
183-
<monitor x="37" precision="0" y="503" height="45" fontSize="11" display="# hydronium" width="82" sizeVersion="0">count hydroniums</monitor>
184-
<monitor x="133" precision="0" y="502" height="45" fontSize="11" display="# hydroxide" width="79" sizeVersion="0">count hydroxides</monitor>
185185
</widgets>
186186
<info><![CDATA[## WHAT IS IT?
187187

0 commit comments

Comments
 (0)