beforehands
Download
Skip this Video
Download Presentation
Beforehands

Loading in 2 Seconds...

play fullscreen
1 / 29

Beforehands - PowerPoint PPT Presentation


  • 130 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
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 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
slide27

PluginEI

OMOptim

PluginEI

OMOptim

Modelica

OMOptimBasis

Variables, Problems, Settings, GUI

ad