Skip to content

Commit f8a940a

Browse files
committed
fixing Monte Carlo Lennard-Jones interface. Note widgets had gotten messed up.
1 parent 7fd6b29 commit f8a940a

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

Sample Models/Chemistry & Physics/Materials Science/Monte Carlo Lennard-Jones.nlogox

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -152,22 +152,19 @@ end
152152
; See Info tab for full copyright and license.]]></code>
153153
<widgets>
154154
<view x="305" wrappingAllowedX="true" y="7" frameRate="30.0" minPycor="-16" height="532" showTickCounter="true" patchSize="16.0" fontSize="10" wrappingAllowedY="true" width="532" tickCounterLabel="ticks" maxPycor="16" updateMode="1" maxPxcor="16" minPxcor="-16"></view>
155-
<note x="5" y="7" backgroundDark="0" fontSize="30" width="20" markdown="false" height="36" textColorDark="-1" textColorLight="-2674135" backgroundLight="0">1</note>
156-
<note x="30" y="7" backgroundDark="0" fontSize="11" width="270" markdown="false" height="55" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Model starting point. You can choose the number of atoms, the density and the initial configuration (random or hexagonally-close-packed)</note>
157-
<slider x="30" step="1" y="70" max="1000" width="250" display="num-atoms" height="50" min="1" direction="Horizontal" default="250.0" variable="num-atoms"></slider>
158-
<slider x="30" step=".01" y="125" max=".6" width="250" display="density" height="50" min="0.01" direction="Horizontal" default="0.25" variable="density"></slider>
159-
<chooser x="30" y="180" height="60" variable="initial-config" current="0" width="250" display="initial-config">
155+
<slider x="40" step="1" y="70" max="1000" width="250" display="num-atoms" height="50" min="1" direction="Horizontal" default="250.0" variable="num-atoms"></slider>
156+
<slider x="40" step=".01" y="125" max=".6" width="250" display="density" height="50" min="0.01" direction="Horizontal" default="0.25" variable="density"></slider>
157+
<chooser x="40" y="180" height="60" variable="initial-config" current="0" width="250" display="initial-config">
160158
<choice type="string" value="HCP"></choice>
161159
<choice type="string" value="random"></choice>
162160
</chooser>
163-
<note x="5" y="242" backgroundDark="0" fontSize="30" width="24" markdown="false" height="36" textColorDark="-1" textColorLight="-2674135" backgroundLight="0">2</note>
164-
<button x="32" y="245" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="75">setup</button>
165-
<note x="30" y="290" backgroundDark="0" fontSize="11" width="260" markdown="false" height="20" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Temperature can be adjusted during model run
161+
<button x="42" y="245" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="75">setup</button>
162+
<note x="40" y="290" backgroundDark="0" fontSize="11" width="260" markdown="false" height="20" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Temperature can be adjusted during model run
166163
</note>
167-
<slider x="30" step=".01" y="315" max="2" width="250" display="temperature" height="50" min=".01" direction="Horizontal" default="1.1" variable="temperature"></slider>
168-
<button x="200" y="245" height="35" disableUntilTicks="true" forever="true" kind="Observer" width="80">go</button>
169-
<button x="110" y="245" height="35" disableUntilTicks="true" forever="false" kind="Observer" width="85" display="go-once">go</button>
170-
<plot x="30" autoPlotX="true" yMax="2.0" autoPlotY="true" y="370" xMin="0.0" height="160" legend="false" xMax="10.0" yMin="-2.0" width="255" display="energy per particle">
164+
<slider x="40" step=".01" y="315" max="2" width="250" display="temperature" height="50" min=".01" direction="Horizontal" default="1.1" variable="temperature"></slider>
165+
<button x="210" y="245" height="35" disableUntilTicks="true" forever="true" kind="Observer" width="80">go</button>
166+
<button x="120" y="245" height="35" disableUntilTicks="true" forever="false" kind="Observer" width="85" display="go-once">go</button>
167+
<plot x="40" autoPlotX="true" yMax="2.0" autoPlotY="true" y="370" xMin="0.0" height="160" legend="false" xMax="10.0" yMin="-2.0" width="255" display="energy per particle">
171168
<setup></setup>
172169
<update></update>
173170
<pen interval="1.0" mode="0" display="default" color="-16777216" legend="true">
@@ -177,6 +174,9 @@ end
177174
]]]></update>
178175
</pen>
179176
</plot>
177+
<note x="5" y="7" backgroundDark="0" fontSize="30" width="30" markdown="false" height="45" textColorDark="-1" textColorLight="-2674135" backgroundLight="0">1</note>
178+
<note x="40" y="7" backgroundDark="0" fontSize="11" width="285" markdown="false" height="60" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Model starting point. You can choose the number of atoms, the density and the initial configuration (random or hexagonally-close-packed)</note>
179+
<note x="5" y="240" backgroundDark="0" fontSize="30" width="35" markdown="false" height="45" textColorDark="-1" textColorLight="-2674135" backgroundLight="0">2</note>
180180
</widgets>
181181
<info><![CDATA[## WHAT IS IT?
182182

0 commit comments

Comments
 (0)