teaching modelica with electronic notebooks

Upload: yusufcati

Post on 02-Jun-2018

223 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/10/2019 Teaching Modelica With Electronic Notebooks

    1/27

    Presentation in BerlinPresentation in Berlin

    2009-04-022009-04-02

    Bernhard Bachmann, Peter Fritzson,Bernhard Bachmann, Peter Fritzson,

    Linkping Universit, !"edenLinkping Universit, !"eden

    """#openmodelica#org"""#openmodelica#org

    $athematical $odeling "ith $odelica$athematical $odeling "ith $odelica

    %eaching "ith &ctive 'lectronic (ote)ooks%eaching "ith &ctive 'lectronic (ote)ooks

  • 8/10/2019 Teaching Modelica With Electronic Notebooks

    2/27

    pelab2

    %eaching "ith &ctive 'lectronic (ote)ook%eaching "ith &ctive 'lectronic (ote)ook

    in *pen$odelicain *pen$odelica

    Primarily for

    teaching

    Interactive

    electronic book

    Platform

    independent

    (Windows, Linux,

    ac!

  • 8/10/2019 Teaching Modelica With Electronic Notebooks

    3/27

    pelab+

    ells "ith )othells "ith )oth

    %et and .raphics%et and .raphics

  • 8/10/2019 Teaching Modelica With Electronic Notebooks

    4/27

  • 8/10/2019 Teaching Modelica With Electronic Notebooks

    5/27

    pelab

    *$(ote)ook 1 3nteractive 5!35.*$(ote)ook 1 3nteractive 5!35.

    Book !o6t"are 6or %eachingBook !o6t"are 6or %eaching

    ProgrammingProgramming

    "nders #ernstr$m, Ingemar "xelsson, Peter #rit%son, "nders&andholm, "drian Pop

  • 8/10/2019 Teaching Modelica With Electronic Notebooks

    6/27

    pelab7

    ommon %eachingommon %eaching

    Lectures

    Programing exercises used to grasp the concept'

    raditional teaching methods too passive

  • 8/10/2019 Teaching Modelica With Electronic Notebooks

    7/27pelab8

    Literate Programing &ource code are integrated with documentation in the same document athematic notebooks

    &uitable for teaching

    experimentation

    simulation scripting

    model documentation

    storage

    3nteractive (ote)ooks /sing Literate Programming

  • 8/10/2019 Teaching Modelica With Electronic Notebooks

    8/27pelab

    %ree !tr/ct/red :ierarchical oc/ment%ree !tr/ct/red :ierarchical oc/ment

    ;epresentation;epresentation

  • 8/10/2019 Teaching Modelica With Electronic Notebooks

    9/27

    pelab9

    *$(ote)ook*$(ote)ook

    )ser can add, change and remove anything in a

    notebook'

    &ave and reopen documents'

    )ser can create an entirely new notebook with

    his*her own program

    &yntax highlighting

    +eyword

    yperlinks -ommand completion

  • 8/10/2019 Teaching Modelica With Electronic Notebooks

    10/27

    pelab

  • 8/10/2019 Teaching Modelica With Electronic Notebooks

    11/27

    pelab

  • 8/10/2019 Teaching Modelica With Electronic Notebooks

    12/27

    pelab

  • 8/10/2019 Teaching Modelica With Electronic Notebooks

    13/27

  • 8/10/2019 Teaching Modelica With Electronic Notebooks

    14/27

    pelab

  • 8/10/2019 Teaching Modelica With Electronic Notebooks

    15/27

    pelab

    )sers often choose systemfunctions by mistake and will need aclearly marked ;emergency exit; toleave the unwanted state withouthaving to go through an extendeddialogue' &upport undo and redo'

    4# onsistenc and standards8)sers should not have to wonderwhether different words, situations,or actions mean the same thing'#ollow platform conventions'

    # 'rror prevention83ven better than good errormessages is a careful design whichprevents a problem from occurringin the first place'

  • 8/10/2019 Teaching Modelica With Electronic Notebooks

    16/27

    pelabake ob

  • 8/10/2019 Teaching Modelica With Electronic Notebooks

    17/27

    pelab

  • 8/10/2019 Teaching Modelica With Electronic Notebooks

    18/27

    pelabback?:button, following real:world conventions (see heuristics 6 and =!'

    euristics number @, A and B concern dialogues and error messages, none ofwhich exist in neither 2rodelica nor /penodelica, but that is why the

    environment does not have a need for it' euristic number 45 concerns help anddocumentation' here is a help section on how to start using 2rodelica, whichwas appreciated by the users'

    he evaluators also found that 2rodelica was less intimidating than otherprogramming environments, since the user is presented with an environmentsimilar to a document showing only a small amount of functionality' his leads theuser to believe that 2rodelica is a reading material' owever, after using the

    material for a while the user discovers that 2rodelica could be used forprogramming as well'

    " common approach adopted by many programming environments is to lead theuser in the opposite direction, by presenting all functionality from the beginning'his approach can have a discouraging effect on the user

    '

  • 8/10/2019 Teaching Modelica With Electronic Notebooks

    19/27

    pelab

  • 8/10/2019 Teaching Modelica With Electronic Notebooks

    20/27

    pelab20

    !/mmar o6 r$odelica!/mmar o6 r$odelica

    2rodelica is a material intended to facilitate thelearning of odelica

    2rodelica is based on Literate programming

    he evaluation shows that Literate programming is a

    suitable methodology for teaching odelica opefully 2rodelica will increase the usage ofodelica, and facilitate learning modeling and simulation

  • 8/10/2019 Teaching Modelica With Electronic Notebooks

    21/27

    pelab2