1.55700.0falsewidth1000height7001000.01.01100.051011.0E-4-4.0E-5255255255255128128128255103110440.1700.0false0.00442077029396797850.0496.08108390973683filenamegaslaws-gui$0.mmldate1377290027882urlC:\Users\qxie\AppData\Molecular Workbench\cache\gaslaws-gui\gaslaws-gui$0.mmlsize80547codebaseC:\home\mw\public\student\gaslawsdefine %running 0;
define %showtraj 0;
define %showvelo 0;
define %showenergy 0;
define %iatom 0;
define %dalton 0;
define %showatom 0;
define %reset_count 0;
define %run_count 0;
define %dalton_count 0;
beginmouse:pressed;
if(%mouse_x>%textbox[0].x*10 and %mouse_y>%textbox[0].y*10 and %mouse_x<%textbox[0].x*10+%textbox[0].width*10 and %mouse_y<%textbox[0].y*10+%textbox[0].height*10);
if(%running==0);
set %running 1;
set textbox[0].shadow 0;
run;
else;
set %running 0;
set textbox[0].shadow 1;
stop;
endif;
%run_count++;
endif;
if(%mouse_x>%textbox[1].x*10 and %mouse_y>%textbox[1].y*10 and %mouse_x<%textbox[1].x*10+%textbox[1].width*10 and %mouse_y<%textbox[1].y*10+%textbox[1].height*10);
show selectionhalo off;
if(%showtraj==0);
set %showtraj 1;
set %iatom int(rand()*(%number_of_atoms-1));
select atom %iatom;
traj on new;
select atom none;
attach ellipse 0 to atom %iatom;
set ellipse[0].visible on;
set textbox[2].shadow 0;
else;
set %showtraj 0;
select atom all;
traj off;
select atom none;
attach ellipse 0 to atom -1;
set ellipse[0].visible off;
set textbox[2].shadow 1;
endif;
show selectionhalo on;
endif;
if(%mouse_x>%textbox[2].x*10 and %mouse_y>%textbox[2].y*10 and %mouse_x<%textbox[2].x*10+%textbox[2].width*10 and %mouse_y<%textbox[2].y*10+%textbox[2].height*10);
if(%showvelo==0);
set %showvelo 1;
show velocity on;
set textbox[3].shadow 0;
else;
set %showvelo 0;
show velocity off;
set textbox[3].shadow 1;
endif;
endif;
if(%mouse_x>%textbox[4].x*10 and %mouse_y>%textbox[4].y*10 and %mouse_x<%textbox[4].x*10+%textbox[4].width*10 and %mouse_y<%textbox[4].y*10+%textbox[4].height*10);
select atom none;
mark;
if(%showenergy==0);
set %showenergy 1;
show keshading on;
set textbox[5].shadow 0;
else;
set %showenergy 0;
show keshading off;
set textbox[5].shadow 1;
endif;
endif;
if(%mouse_x>%textbox[9].x*10 and %mouse_y>%textbox[9].y*10 and %mouse_x<%textbox[9].x*10+%textbox[9].width*10 and %mouse_y<%textbox[9].y*10+%textbox[9].height*10);
reset;
set %running 0;
set %showtraj 0;
set %showvelo 0;
set %showenergy 0;
set %showatom 0;
set %iatom 0;
set %dalton 0;
%reset_count++;
endif;
if(%mouse_x>%textbox[10].x*10 and %mouse_y>%textbox[10].y*10 and %mouse_x<%textbox[10].x*10+%textbox[10].width*10 and %mouse_y<%textbox[10].y*10+%textbox[10].height*10);
if(%dalton==0);
set %dalton 1;
set textbox[10].text <t>B</t>;
else;
set %dalton 0;
set textbox[10].text <t>A</t>;
endif;
%dalton_count++;
endif;
if(%mouse_x>%textbox[11].x*10 and %mouse_y>%textbox[11].y*10 and %mouse_x<%textbox[11].x*10+%textbox[11].width*10 and %mouse_y<%textbox[11].y*10+%textbox[11].height*10);
if(%showatom==0);
set %showatom 1;
show selectionhalo off;
select element 2, 3;
set visible on;
select atom none;
show selectionhalo on;
set textbox[12].shadow 0;
else;
set %showatom 0;
show selectionhalo off;
select atom all;
set visible off;
select atom none;
show selectionhalo on;
set textbox[12].shadow 1;
endif;
endif;
endmouse:pressed;20somejobset rectangle[2].width %obstacle[0].x+%obstacle[0].width/2;5.020None-65281-6711040128255255025530.021112false30.056.0467.02550255255tickmark-gas.pngfalse1120.0668.0datapanel-gas.pngfalse113645.0418.012128128128255falseclass org.concord.mw2d.models.RectangularObstacle2722501520.8875732421875-1999.613350.0false182679.0-1383.25772.00.500255255200false255255255255700.0112.00.50.0150false012819225532.01112812812825521362.0-1.0667.0false000255700.029521.0-8.5-1.0false12812812825510321044700.0class org.concord.mw2d.models.RectangularObstacle21048.0497.08108520507810.0falsefalsefalse112false2551280255Arial Bold110121Run658.0638.0112false1281280255Arial Bold110131Trace763.0638.0112falseArial Bold110141Velocity816.0638.011falseArial32415Gas33.017.0112falseArial Bold110161Energy703.0638.011false114100836.0560.011false11520836.0454.011false1161836.0489.011false11714.72836.0524.0112false102102102255Arial Bold1101181Reset939.0638.0112false0128192255Arial014119A29.0372.0112Arial Bold110120Reveal880.0639.0128false4416121102102102255421.33337421.333374-54.666748334.0434.0384.01281281282551262.00010.01.00.0false10.010.0false3320.2207931976597667.31972017765570.10933517381616578-0.0278386297806754243330.80640832130166204.599735661749920.0994746992342796-0.035696453471700993298.97851368325314102.2844578767714-0.104342261598293210.058698580929638843491.61758537333134368.272035795727560.015610718447805053-0.057469256442588563122.72401872948427315.87022772839940.0330526181764513040.00232071229516062943146.96144796851294301.932332159860.038204505404916590.0205415767798626253270.34052635149834491.5277501048184-0.134984610954911070.119488603958596343268.8110772474045292.6050764776188-0.064530624491254170.04170227077557013389.24628400010748452.883637760202930.106663638278912450.149428502881463453422.6742113376276346.1036884434578-0.03718409932311692-0.0154210423950228783233.27979456453767370.20987892695690.004133205590447302-0.21999758576399434312.732345602775856479.75273773380230.0014829300860127502-0.0099422266269798483332.32685606551365599.93951817031610.01821971705147409-0.0177435332341018033230.43624202376967637.160823555264-0.073421378225524330.0489433563940768343404.0714588791717571.5525510146012-0.02294854432934299-0.068576591771029513279.044319664451236.8547449282901240.011971378960898633-0.0133207676619661653456.0575428305612581.99216756723490.01054226990827048-0.068436506958094643335.26157271913223350.95734196894840.06649296578148518-0.015677085084173913254.7148665525894662.1870637210453-0.041309281703773834-0.051337931125353313140.08454354350482398.881131601918240.1412518323550576-0.045808975631672553240.73640587148842559.64808318399650.016941525243528516-0.028972499076782013209.41169881529788632.9126437215536-0.092768610757556380.09998648562237693145.42282665923437683.04522036603980.073461241920566540.12641171490678643356.81919195558265143.801670960565020.08015551967326355-0.0770976175949707236.433582134085672510.83854752594743-0.023313058120748315-0.065605228476325913241.5220512961961629.92050013054720.115229745054225270.014447268927442573354.7267297675388418.69434901790840.134174092245036260.0101806318459179943144.46498003345917277.236645728789370.0023324157557538766-0.076889869525321543272.92564595464506251.59483147066302-0.08684838056489914-0.0165846599395157623124.56342479583067128.418902706506690.11297610514287482-0.068099648103914863398.5124393507438614.3359962467464-0.02063673290035587-0.0503316451807823534.099690310951063266.94436706950376-0.024714993565247905-0.091289193043676233156.23129213335665664.91921487413840.0555541743037029-0.061366102366630983273.74091258020627603.3715222856309-0.0172729764575601830.0161088421717029043194.97544598708689558.1832801501683-0.029281231699515880.0301549470310873883132.91003553756545426.713340805904860.0151519782524892-0.019592430444569223277.7072783922366407.09993443161650.012329863860616050.0689729434571283330.976058009910467642.0317943463231-0.061860969680946470.084832893964357213331.25848998775234588.1150495523398-0.021127044864706703-0.124883410515611013217.6878747179318412.74231260323010.014010072434280048-0.0481517297463999043144.89571095073757333.84275502803405-0.1280414476395894-0.078207857287449783260.2539890690554450.0368845246101-0.1172194296133909-0.13068241738412373218.71802285023736575.8298285813371-0.08240535033607668-0.082016327196585283491.93166248534254265.29043117041340.060134278801028736-0.072193017637344883352.9838772875149480.3813788770225-0.012991270393935222-0.0279659736613033023468.55989607997566206.680438443062490.050221425760256080.088891827057174843328.88324570493825103.06190948276330.015088942838142811-0.00126454954421675933273.84343452078303265.6790108943530.14666336515918635-0.049467638762514023215.31146859267548387.7677081420598-0.05401536130733514-0.063212188021155123320.94761168998167206.015249852794850.02367766050207432-0.0144322288512737773368.8415614636234452.54089137446124-0.00254694324402348230.0072768067599791313312.613897768345613.2312105804759760.0400215169065318360.050962953069180826399.18886852959827617.0058406832434-0.0493821499027753340.042063947779264663250.20639506301387185.48109558336910.011358706430361427-1.5034612637552621E-43269.5847231387946658.4390356505113-0.08838301045995572-0.028324384249931763140.2611140602473650.7198694204629-0.06479726012983662-0.0114501100947986963428.06110048263724535.05447343435740.07047691357575266-0.0283337659049500153245.64254504615022565.9062615724832-0.008945285556884312-0.012036892499438713395.96398305108784296.8877476142865-0.031825429759472244-0.026625910724963057394.72253309304159477.83367786515214-0.03428343594645056-0.056799930059670473448.72123157062146284.74533314707390.020192727922729845-0.0264781036902823653364.3689461709811434.28382817756307-0.030680539638916496-0.095968927239943033460.051353223933191.29885610659034-0.0270617540611097840.065983039735197373359.20377487948315614.80799544251390.00362927633635581150.0074038276440332453157.52894299840167182.602610389952530.015986694657958964-0.0029270847416911633394.8132117269136355.505315393511-0.023880251309355404-0.049544185567669753116.97313554699859249.86437972348855-0.039455919404732460.0133419926172105053182.60017541161773311.039228739325150.044119566182266110.0066332354833417693233.6794975824076286.93432225129146-0.06622523436363564-0.0073078703907323486386.37422333805088126.30394222426229-0.043923697554105390.149824731701004163316.2997682143225461.39162698827107-2.83109488759303E-40.0256728775338745423475.39698036103147591.2805625804822-0.028862591211689440.061318894806677483148.4954978276698450.25162524958137-0.105658967804090810.0399386420029880443320.0247761019793547.55347020448130.07869531051837480.071778763259861213227.8309550083522348.885029382324430.062499548568652696-0.0457280327094800463292.6574630871065384.4740791041014-0.057452854878671640.048597253528637413173.41303847836232589.01370266565-0.031027209007772266-0.059944778903339573454.01752133744446681.11095823333720.0285975116195584280.090579238954281723168.574379734970199.679311881876390.018719802585522718-0.06783444826531043258.1679502632202405.3721048907476-0.00517026213744822650.084203548863844933111.91376929670922535.5402878264357-0.006870044156435532-0.0046860916808322733326.1605106758976119.0893725767455-0.0236093490297833550.0173387640843609973381.9711640686779434.86951282000042552550255-0.02979607938043923-0.047616415398805233417.74668414638614673.7300757906369-0.08704732957222389-0.111807747739375953151.7449277961380686.33386404526799-0.058887892379459475-0.0304104125016627133397.3337865796136510.1811264231685-0.06406236238600115-0.078588305345363763268.96042942513174115.89863621836874-0.0440965425605159560.0288289371197678273360.9110168808302271.97120766469460.005194927552274991-0.118670358428446273250.7577038160182519.0202755083263-0.0098485901978780850.0298919529241269763288.7058377309478629.82625970532390.0557889101134784740.070507178098571323343.4381654411724545.31245735870430.098511275326309380.05901173046027722318.306971486506004573.4432065080066-0.037221350550965450.088263626265332953448.5081603403324108.43445129639514-0.037991334017049086-0.044597965172811734359.07462520022904571.09366920532230.00201394016044624840.05245032584398177324.28751568147641191.8339487990449-0.033905581834416390.045586977028571623467.69381476027064471.4787198092584-0.03778666030464684-0.117406339343069173271.42005395355596317.39378602888720.0142934769324349360.090167397132247513190.64074138362452269.09760957369383-0.167711566088967340.0359060386062708543160.35955603271077210.40760198739630.11852918480561359-0.065081990847164433193.45601308704997443.09665160325915-0.02590305386349052-0.04267780869557442