OpenModelica/C2/Developing-an-equation-based-model/Khasi

From Script | Spoken-Tutorial
Jump to: navigation, search
Time Narration
00:01 Ngi pdiang sngewbha sha ka spoken tutorial shaphang Developing an equation based model.
00:06 Ha kane ka jinghikai, ngin Ia pule shaphang: kumno ban shna ka textual model ha “OMEdit” bad simulate i aka.
00:14 Kumno ban declare variables bad equations.
00:17 Kumno ban pyndonkam “Simulation Setup” toolbox.
00:21 Ban record kane ka jinghikai, nga pyndonkam OpenModelica 1.9.2 bad Ubuntu Linux Operating System 14.04
00:32 Tangba, kane ka rukom ka iasyriem ha Windows, Mac OS X lane FOSSEE OS on ARM.
00:40 Ban sngewthuh ia kane ka jinghikai, phi donkam ban tip ka equation-based modelling jong ka physical system.
00:48 To ngin ia simulate ka jing long jong ka ball jong ka jingkhia “m”, kaba don hapoh “free fall deu to gravity”.
00:54 Ka jing jrong jong ka ball na ka sla jong ka pyrthei la pynbuh da u variable “h”.
00:59 Ka velocity jong ka ball la pynbuh da u variable “v”.
01:04 “Acceleration due to gravity” la pynbuh da u “g” bad la pynman ba un long constant.
01:10 Variables lah shah phai shabar jong ka sla jong ka pyrthei, lah khein kum positive.
01:16 Ka “Equations jong motion” na ka bynta kaba hap da kaba suk, ka dei kum kine harum. dh/dt = v , dv/dt = g
01:27 U value jong u “h” ha ka por “t=0” u dei “30” m bad u value jong “v” ha ka por “t=0” u dei “0”.
01:37 Mynta to ngan leit sha “OMEdit”. Nga lah dep launch lypa ha ka system jong nga.
01:43 Ban plié ka “OMEdit” ha Ubuntu Linux Operating System, klik ha Dash Home icon, uba paw hajong ka liang kadiang, ha launcher.
01:53 Type “OMEdit” ha ka “search bar”.
01:56 Klik ha ka “OMEdit” icon.
01:59 Ynda klik ha “OMEdit” icon, phin iohi ka window kum kane.
02:06 Kane ka window la tip kum “Welcome perspective”.
02:09 “OMEdit” kumba ka long, ka plié ha ka “Welcome prespective”
02:14 Ha trai ha kyndong jong ka liang kadiang, phi lah ban shem u button n aka bynta “’Welcome’, ‘Modeling’” bad “’Plotting’ prespectives”.
02:23 Klik ha “’Modeling prespective’”.
02:26 “’Modeling prespective’” ka lah plié mynta.
02:29 Ngan kham iahap bad ka jaka hapdeng “Libraries Browser” sha ka kadiang, “Messages Browser” ha trai bad “Toolbar” ha jrong, kum ka “modelling area”.
02:41 U “toolbar” u don u button uba ia syriem bad “file operations, graphical view” bad “simulation”.
02:51 Ngin ia pule khambun shaphang kine ki button, katba ngi dang ia iaid shakhmat.
02:55 Mynta, ngin ia pyndonkam “’freeFall’ class” file ba lah pynbiang ha ka “Code Files” link ha ka “Spoken Tutorial web[age” ka jong ngi.
03:02 Sngewbha downloag kane ka file bad save i aka ha ka system ka jong phi.
03:07 Ban plié kane ka “class”, leit sha ka “File” menu ha “Menu bar”.
03:13 Klik ha “Open Model/Library File”
03:17 Wad ia ka “freeFall” file kaba phi lah dep download bad save ha ka system ka jong phi bad plié ia ka.
03:24 Phi lah ruh ban pyndonkam ka tool ba kyrteng “Open Model/Library File”, kaba u cursor u jong nga u kdew, na ka bynta ban plié ka file.
03:34 Kynmaw ba ka “freeFall” icon ka paw ha ka “Libraries Browser”.
03:39 Libraries Browser ka pyni baroh ki classes ba lah dep load ha ka session jong ka OMEdit.
03:45 Right klik ha “freeFall” icon bad jied “View Class”.
03:52 Ka “class” ka lah plié mynta ha ka “Diagram” view.
03:56 Wat nym kuslai lada ka “class” kam plié ha ka “Diagram” view.
04:00 Ngan sa pyni ia phi kumno ban kylla hapdeng bunjait ki views.
04:04 Leit sha jrong jong ka “Modeling area”.
04:07 Kynmaw ba u button uba ar u shong n aka bynta ka “Diagram” view.
04:10 U button ba lai u dei “Text View”.
04:13 Klik ha u ban kylla sa “Text View”.
04:17 Ka “class” mynta lah plei ha ka “Text” view.
04:20 Kynmaw ba u button ba nyngkong u dei n aka bynta u “Icon View”.
04:24 Ngin ia pule kham bun shaphang “Icon view” bad “Diagram view” kham hadien.
04:29 Phi lah ruh ban shna ka “class” kaba thymmai “freeFall” bad type ka jingtip kaba donkam.
04:36 Ban shna ka “class” kaba thymmai, leit sha ka “File” menu.
04:40 Jied “New Modelica Class”.
04:43 U dialog box u mih shajrong, kumba pyni.
04:46 Ha ka “Name” field jong une u dialog box, type “freeFall”.
04:51 Nga pyndonkam ka kyrteng kaba pher “freeFall1” namar “freeFall class” ka lah dep plié lypa ha “OMEdit”.
04:58 Kynmaw ba artyli ki “classes” ym lah ban don kajuh ka kyrteng.
05:03 Klik ha “Specilization” drop-down menu. Jied “Class”. Klik ha “Ok”.
05:10 Ka “class” ba thymmai lah dep shna.
05:13 Phi lah ruh ban pyndonkam ka “tool” ba kyrteng “New Modelica class” ban plié ka “class” ba thymmai.
05:20 To ngan delete “annotation section”.
05:23 Mynta, phi lah ban type ka jingtip kaba doonkam hangne bad save kane ka “class”.
05:29 Ban save kane ka “class”, leit sha “File” menu ha “Menu bar” bad klik ha “Save”.
05:36 Jied ka jaka kaba kham biang na ka bynta kane ka file bad save ia ka.
05:41 Mynta, to ngni ia sngewthuh ka syntax jong “Modelica” da ba pyndonkam “freeFall class”.
05:47 Te phai biang sha ka “freeFall class”.
05:49 Leit sha jrong jong ka “Modelling area”. Klik ha “freeFall” tab.
05:54 Programs ha “Modelica” lah pynbeit ha ka rukom jong ki “classes”.
05:58 Ka lain kaba nyngkong jong ka “class” ka batai ia ka kyrteng.
06:02 Ka kyrteng jong kane ka “class” kadei “freeFall”.
06:05 Man la ka “class” dei ban don ka “end statement” ban kdew hangno ka “cass” ka kut.
06:11 Kane ka “class”ka don “variable declarations” bad “equations”.
06:15 To ngan pyni ia phi kumno ban declare “variables”.
06:18 “Real” ka dei “data-type”.
06:21 “h” ka dei ka jing jrong jong ka ball na ka sla pyrthei.
06:25 “start” ka dei ka attribute jong “Real variable”.
06:29 Man la ki “data-type” ki don bun ki attributes, kiba thew ia ki jingtip kiba donkam ha kaba iadei bad ki “variables”.
06:36 “start” attribute ka thew ia ka jingsdang jong u “varaible”.
06:41 Ka value kaba sdang jong u “h” u dei 30 units.
06:45 “unit attribute” u thew ia ka unit jong u “variable”.
06:49 Ka unit jong u “h” u dei “meter”.
06:52 Man la u “variable declaration” dei ban kut bad u “semi-colon.”
06:57 “v” u ieng na ka bynta “velocity” jong ka ball. U dei ha ka “Real data-type.”
07:02 Ka jing sdang jong u value “v” u dei zero. Ka unit jogn u u dei “meter per second.”
07:09 “g” u ieng na ka bynta “acceleration due to gravity”. U dei u “Real data-type.” Bad ka unit ka dei “meter per second square.”
07:18 “parameter” ka dei ka quality kaba long constant ha ka simulation run.
07:24 Ka value jong u “g” ka neh constant shyrta ka simulation run, bad ka value jong 9.81.
07:32 Ka negative sign ka dei n aka daw jong ka sign convention ba pyndonkam.
07:36 Ka text ha ki ar quotes ka dei ka “comment” ba thoh bad ka declaration jong u “g”.
07:42 “comments” ka pynbiang ki jingtip kiba donkam shaphang ka program. Ki long donkam ruh n aka bynta ka documentation.
07:49 Mynta, to ngin ia phai biang sha ka slides.
07:52 “parameter” ka dei ka quality kaba neh kumjuh ha ka simulation run.
07:57 Real, Integer, Boolean bad String data-types la kyrshan ha Modelica.
08:03 “start” bad “unit attributes” lah dep define lypa.
08:07 “min attribute” ka thew ia ka value ba duna jong u “variable”.
08:10 Kumjuh ruh, “max attribute” ka thew ia ka value ba duna jong u “variable”.
08:16 To ngin ia phai biang sha “OMEdit.”
08:19 “’equation’” ka thew ia kaba sdang jong ka “equation section” jong ka “class”.
08:25 Kane ka dei da kawei ka rukom ban thep ia ki “comments”.
08:30 Ki artylli ki “equations of motion” na ka bynta ki free falling body, kumba ngi lah ia dep iakren, lah dep kynthup hangne.
08:38 “der()” ka dei “Modelica function” na ka bynta “time derivative”.
08:43 Hangta, “der(h)” ka thew “dh/dt.”
08:48 Bad “der(v)” ka thew “dv/dt.”
08:52 Man la ki “equation” ki dei ban kut da u “semi-colon”.
08:57 To ngan pyni ia phi kumno ban simulate kane ka “class”.
09:00 Klik ha “simulate” button ha ka “toolbar”.
09:04 Khang ia ka pop-up window.
09:07 Kane ka window la tip kum ka “Plotting perspective”.
09:11 Ynda ka simulation ka long kaba job jong ka “class, Plotting perspective” ka plié hi.
09:17 “Variables browser” ka pyni ki jingtip kiba iadei bad u “variables” bad “parameters” jong ka “class”.
09:24 Kynmaw ba ki don ki columns ba kyrteng “Unit” bad “Description”.
09:29 “Unit” column ka thew “unit” jong “variables,” kumba lah define da kaba pyndonkam “unit” attribute.
09:37 “Description” column ka pyni “comments” ba thoh ha ki artylli ki quotes ryngkat bad “variable declarations”
09:45 To ngan pyni ia phi kumno ban pynmih ka “plot”. Jied “h”.
09:51 Kane ka pynmih ka plot jong “h with respect to time” –bad u “h” ha “y-axis” bad “time” ha ka “x-axis”
10:01 Kumba ka long, ka simulation ka iaid na 0 sha 1 unit jong ka time.
10:07 Ka unit jong ka “time” ka shong ha ka system jong “units” ba pyndonkam na ka bynta kiwei ki variables.
10:13 To ngan nym jied “h.”
10:17 Ka shait long kaba bha ban practice ban delete ka jingmih, shisien ba ka plot kaba donkam ka lah dep pynmih.
10:25 Ban delete kane ka jingmih, right-klik ha ka “freeFall” bad jied “Delete result”.
10:33 Ka jingmih mynta la dep ban delete.
10:36 To ngan leit phai biang sha “Modeling prespective”.
10:39 Klik ha “Modeling” button sha kamon ha trai.
10:43 “class” la pyndonkam synonymously bad ka “model” ha “Modelica”.
10:48 Wei lah ban pyndonkam “model” ha jaka jong ka “class” hangne, ban pynmih kajuh ka jing mih.
10:54 Mynta, to ngan pyni ia phi kumno ban pynkylla ka “time interval” na ka bynta ka simulation.
11:01 Klik ha “Simulation Setup” button ba don ha ka “toolbar”.
11:06 Hapoh “General” tab, wad “Stop time” field. Pynkylla ia ka sha 5 units.
11:14 Klik ha “Simulate”. Khang iaka pop-up window kaba paw.
11:21 To ngan jied “h” sa shisien, ha ka “Variables browser”.
11:26 Kane ka pynmih “h” v/s “time” plot.
11:29 Kynmaw ba ka time interval lah pynkiew da 5 units.
11:33 Tangba, ka value jong “h” ka lah leit shapoh u zero, ka bym lah ban pdiang.
11:40 Ngin ia pule kumno ban pynbeit kane ka issue ha ki jinghikai ba hadien.
11:45 To ngan delete kane ka result da kaba right-klik ha “freeFall” bad da kaba jied “Delete result”.
11:53 Leit phai biang sha “Modeling” prespective da kaba kliking ha “Modeling prespective” ha u button sha kamon.
11:59 Ka long kaba donkam ban pyntikna ba u number jong ka equations u equal ia ka number jong u variables.
12:07 Kane ka “class” ka don ar tylli ki variables bad artylli ki equations.
12:11 Mynta, to ngan delete kaba nyngkong ka “equation” bad simulate kane ka “class”, ban peit kaei kaba jia.
12:18 Nga lah dep delete ia ka “equation” kaba nyngkong.
12:21 Kynmaw ba u star u paw marsyndait bad ka kyrteng jong ka “class” ha “freeFall” tab.
12:28 Kane ka pyni ki jing kylla ba khlem save ha ka “class”.
12:31 Te ka dei ka jing practice kaba bha ban save ia ka “class” hadien ba ka jing kylla lah dep shna.
12:38 Ban save kane ka “class,” leit sha ka “File menu” bad klik ha “Save”.
12:44 Phi lah ruh ban pyndonkam u “Save” button ha ka “toolbar”, ha kaba u cursor jong nga u kdew, ban save ia ka file.
12:53 Mynta, to ngan simulate kane ka “class” da kaba kliking ha “Simulate” button.
12:59 Kynmaw ba ka message ba bakla ka mih shajrong ha ka “Message browser”.
13:04 Ka ong, ka don tang khyndiat ki equations bad ka model ka don 1 “equation” bad 2 “variables” te kane kam lah ban simulate.
13:14 To ngan thep biang ka “equation” sha ka jaka ba dei bad klik ha “Save” button ha ka “toolbar”.
13:24 Klik ha “Simulate” button sa shisien ban simulate kane ka “class”.
13:29 Kynmaw baka “class” ka simulate da kaba jop, namar ba u number jong ka “equations” u equal bad u number jong u “variables”.
13:37 Khang ia ka pop-up window.
13:40 To ngan leit phai biang sha ka slides.
13:43 “der()” kadei ka Modelica function na ka bynta ka time derivative.
13:48 Kam don kano kano ka lynti data flow na ka bynta ka “equations”.
13:52 Kum ka nuksa, “der(h) = v” lah ruh ban thoh kum “v = der(h)”.
14:00 Initial equations section la pyndonkam ban enter ka condition kaba sdang.
14:05 Ngin ia pule kham bun shaphang “Initial equation” kham hadien.
14:10 Kum ka assignment, thoh ka “model” ban simulate ka “differential equation” “dx/dt = -a into x”, ha kaba u “a=1”, “x” u dei jong u “R” bad ka value jong u x ha ka por “t=0” udei “5”
14:28 Kane ka wanrah ia ngi sha kaba kut jogn kane ka jinghikai.
14:31 Peit ia ka video ha ka link harum. Ka batai kyllum ia ka Spoken Tutorial project.
14:37 Ngi pynlong ki workshop da kaba pyndonkam ka spoken tutorials; ka ai certificates. Sngewbha contact sha ngi.
14:43 “Spoken Tutorial project” lah noh synniang da ka NMEICT, MHRD, Sorkar jong ka India.
14:49 Ngi ai khublei ia ka kynhun development jong ka “OpenModelica” na ka bynta ka jing kyrshan ka jong ki.
14:53 Ma nga I John Nongkynrih

Khublei shibun.

Contributors and Content Editors

John123