250.0
false
500
250
500.0
4000.0
false
true
0.5
247.0
true
false
true
56.0
221.0
0.5
filename
page8$0.mml
date
1224688046000
url
C:\Documents and Settings\tfleetwood\Desktop\molo\diffusion_osmosis\page8$0.mml
size
19987
codebase
C:\Documents and Settings\tfleetwood\Desktop\molo\diffusion_osmosis
define %saltLeft 0;
define %saltRight 0;
define %currentNum 0;
define %maxDiff 0.007;
define %cellMsgOn 0;
define %memMoving 0;
define %totalAtoms 100;
define %low 0.15*%totalAtoms/2;
define %high 0.50*%totalAtoms/2;
define %water 0;
define %startTemp 1000;
define %lx 0;
define %ly 0;
define %lwidth 22.0;
define %lheight 25.0;
define %rx 28.0;
define %ry 0;
define %rwidth 22.0;
define %rheight 25.0;
beginexternal;
@colorbar:10:enablecomponent 2 false;enablecomponent 3 false;enablecomponent 4 false;
endexternal;
send data to graphs
50
update graphs
set %leftWidth %obstacle[0].x;
set %rightWidth %width-%leftWidth-%obstacle[0].width;
//set %countNaL count(0,0,0,%leftWidth,%height);
//set %countClL count(1,0,0,%leftWidth,%height);
set %countWaterL count(2,0,0,%leftWidth,%height);
set %presLeft (%saltLeft*2+%countWaterL/5)/(%leftWidth*%height);
set %concLeft (%saltLeft*2)/(%leftWidth*%height);
//set %countNaR count(0,%leftWidth,0,%rightWidth,%height);
//set %countClR count(1,%leftWidth,0,%rightWidth,%height);
set %countWaterR count(2,%leftWidth,0,%rightWidth,%height);
set %presRight (%saltRight*2+%countWaterR/5)/(%rightWidth*%height);
set %concRight (%saltRight*2)/(%rightWidth*%height);
store 0 %presLeft;
store 1 %presRight;
store 2 %concLeft;
store 3 %concRight;
if (%memMoving);
if (abs(%concLeft-%concRight) > %maxDiff);
if (%cellMsgOn == 0);
if (%concLeft > %concRight);
add image cellShrinking.png (0.5,0.5);
else;
add image cellGrowing.png (0.5,0.5);
endif;
set %cellMsgOn 1;
endif;
else;
if (%cellMsgOn);
select image 3;
remove;
set %cellMsgOn 0;
endif;
endif;
endif;
1.0
226
245
255
255
None
-65536
-4849920
255
0
255
255
insideOutsideBkgLarge.png
false
class org.concord.mw2d.models.RectangularObstacle
2
-351.0
-1.0
membraneManyPores.png
false
class org.concord.mw2d.models.RectangularObstacle
1
1
213.0
-17.0
waterSodiumChlorideKey.png
false
1
5
295.0
6.0
-65485
0
0
255
255
false
2
true
238
89
false
233
232
232
255
1
2
1
membrane with many
aquapores, allowing
water through easily
32.0
14.0
2
true
104
248
false
220
236
218
255
1
3
set the OUTSIDE
salt concentration
46.0
180.0
2
true
394
247
false
220
236
218
255
1
4
set the INSIDE
salt concentration
335.0
180.0