Beforehands
Download
1 / 29

Beforehands - PowerPoint PPT Presentation


  • 129 Views
  • Uploaded on

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

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about ' Beforehands' - brede


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.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

Omoptim
OMOptim

  • C++ code

  • Stored on subversion solver

  • UsingQtlibraries (GUI, Model/View, Containers, Threads, XML…)


Subversion repository
Subversion repository

Plateforme CERES



Class project
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


Class project1
Class Project



Modelica models
ModelicA - Models


Modclass
ModClass

  • Basic class, corresponding to an item in modelica

    • Each instance stores name and children

Inheritancediagram


Modclasstree
ModClassTree

  • Containsmodelicamodels, packages, classes names


Modmodelplus
ModModelPlus

  • ModModelPlusallows to store information about a modelica model (ModModel*).

  • Especially :

  • Input variables

  • Connections between components

  • It alsoprovidescompiling and readingfunctions. Still, thosefunctionsrequireModPlusCtrl.


Modplusctrl
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


Modreader moomc
ModReader& MOOmc

  • Offeringmodelicareadingfunctions

  • MOOmc : linkbetweenOpenModelica & OMOptim (use Corbaprotocol)

    • QStringgetFlattenedModel (const QString &modelName)

    • booladdConnection (QString org, QStringdest)

    • voidgetInheritedComponents (QStringparentClass, QStringList &names, QStringList &classes)


Model management
Model management

MOOMC

Reading model

Corba communication withOpenModelica

MyFile.mo

ModClassTree

OMOptim

Model A

Model B

  • Compiling

  • Simulating

  • Reading/Writing variables



Launching a problem
Launching a problem

User

Separate

thread


Problem
Problem

An abstract class defining basic functions.

InheritsOMCasewhichcontains more basic virtualfunctions.


One simulation
One Simulation

Project

ModModelPlus

ModModelPlus


One simulation1
One Simulation

OneSimResult


Problems plugin
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


Energy integration
Energyintegration


Energy integration1
Energyintegration

  • EI is a plugin offering new problems

    • EIMER : Minimum energyrequirement

    • EITarget : Utilities targetting

    • EIHEN1 : HeatExchanger Network


Energy integration2
Energyintegration

ModPlusCtrl

Modelica model

MOOmc

EIProblem

-MER

-Target

-HEN

MILP optimizationproblem



Gui core links
GUI – Core links

  • Often use Qt model-viewprogramming

    • Data / GUI more independent


Conventions used in code
Conventions used in code

  • Class namealwaysstartwith an uppercase : MyClass

  • Membersalwaysstartwith _ + lowercase

    _myInstance

  • Local variables startwithlowercase

    myLocalVariable

  • Documentation generatedthroughDoxygen


PluginEI

OMOptim

PluginEI

OMOptim

Modelica

OMOptimBasis

Variables, Problems, Settings, GUI


Source code storage
Source code storage



ad