1 / 29

Beforehands

Beforehands. OMOptim. C++ code Stored on subversion solver Using Qt libraries (GUI, Model/ View , Containers, Threads, XML…). Subversion repository. Main classes. Class Project. The Core of the program One project at a time Contains main items

brede
Download Presentation

Beforehands

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Beforehands

  2. OMOptim • C++ code • Stored on subversion solver • UsingQtlibraries (GUI, Model/View, Containers, Threads, XML…)

  3. Subversion repository Plateforme CERES

  4. Main classes

  5. Class Project • The Core of the program • One projectat a time • Contains main items • Modelicatree of models, package… (ModClassTree) • List of problems and results • List of ModModelPlus • Misc. Informations : save files, files loaded • Main functions • Problemsshouldbelaunchedfrom Project • Threads management

  6. Class Project

  7. OMOptim

  8. ModelicA - Models

  9. ModClass • Basic class, corresponding to an item in modelica • Each instance stores name and children Inheritancediagram

  10. ModClassTree • Containsmodelicamodels, packages, classes names

  11. ModModelPlus • ModModelPlusallows to store information about a modelica model (ModModel*). • Especially : • Input variables • Connections between components • It alsoprovidescompiling and readingfunctions. Still, thosefunctionsrequireModPlusCtrl.

  12. ModPlusCtrl • Simulation software controler : • Specific for each simulation software • Provide interface functions : • Set simulation parameters • Writing / Reading variables • Compiling model • Simulating model • Set Parameters : • Simulation time • Solver • Tolerances • …

  13. ModReader& MOOmc • Offeringmodelicareadingfunctions • MOOmc : linkbetweenOpenModelica & OMOptim (use Corbaprotocol) • QStringgetFlattenedModel (const QString &modelName) • booladdConnection (QString org, QStringdest) • voidgetInheritedComponents (QStringparentClass, QStringList &names, QStringList &classes) • …

  14. Model management MOOMC Reading model Corba communication withOpenModelica MyFile.mo ModClassTree OMOptim Model A Model B • Compiling • Simulating • Reading/Writing variables

  15. Problems

  16. Launching a problem User Separate thread

  17. Problem An abstract class defining basic functions. InheritsOMCasewhichcontains more basic virtualfunctions.

  18. One Simulation Project ModModelPlus ModModelPlus

  19. One Simulation OneSimResult

  20. Problems’ plugin Plugin loading : dynamic or static • SharedOMOptim : • OneSimulation • Optimization • EnergyIntegration • PluginEI.dll MySensitivityanalysis Method: implement new inheritances of following abstract classes - ProblemInterface - Problem - Result

  21. Energyintegration

  22. Energyintegration • EI is a plugin offering new problems • EIMER : Minimum energyrequirement • EITarget : Utilities targetting • EIHEN1 : HeatExchanger Network

  23. Energyintegration ModPlusCtrl Modelica model MOOmc EIProblem -MER -Target -HEN MILP optimizationproblem

  24. GUI

  25. GUI – Core links • Often use Qt model-viewprogramming • Data / GUI more independent

  26. Conventions used in code • Class namealwaysstartwith an uppercase : MyClass • Membersalwaysstartwith _ + lowercase _myInstance • Local variables startwithlowercase myLocalVariable • Documentation generatedthroughDoxygen

  27. PluginEI OMOptim PluginEI OMOptim Modelica OMOptimBasis Variables, Problems, Settings, GUI

  28. Source code storage

  29. Documentation

More Related