Narayan Shrestha [OpenMI]


Published on

An introductory presentation on OpenMI in my department.

  • Be the first to comment

  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Narayan Shrestha [OpenMI]

  1. 1. Open Modelling Interface and Environment [OpenMI] Narayan Kumar Shrestha [] Vrije Universiteit Brussel Department of Hydrology and Hydraulic Engineering
  2. 2. Presentation Layout1. Introduction2. Model Linking Approaches3. OpenMI Data Exchange Mechanism4. Migrating an existing model to OpenMI5. Advantages and Drawbacks of OpenMI6. Conclusions
  3. 3. Introduction • Integrated interacting system Rainfall • A standard for linking models Module • A standard for data exchange • Enables Model Linking/Coupling PrecipitationRainfall- RiverRunoff Runoff ModelModel ex: SWMMex: SWAT
  4. 4. Introduction • Another standard USB • Provides freedom of choice to the users
  5. 5. Model Linking Approaches File Based Altogether OpenMI Way RR Model RR Model + Write RR Model River Model River Model Write Write Output File Write Output File Output File Read Output File River Model Write Output File
  6. 6. Data Exchange MechanismModel „A‟ requires data from Model „B‟ Model „A‟ Model „B‟ Model „A‟ Model „B‟ Model „A‟ runs Data from Model „A‟ is passed to Model B Model „B‟ runs
  7. 7. Data Exchange MechanismModel „A‟ runs on a 5 minute time stepModel „B‟ runs on a 15 minute time step Model „A‟ Model „B‟ • Data from Model „A‟ is passed to Model B √ when Model „B‟ requests. • Standardized data exchange [What, where and when?]. • Request-Reply mechanism. √ 5 minute 15 minute
  8. 8. Data Exchange Mechanism• Request Reply Mechanism• Pull-Driven System• „GetValues‟ function is the essence of the OpenMI data exchange mechanism. RR Model: inflow River Model: SWMM [NonNav] Run GetValues() Trigger Discrete Quality Model Reply with data
  9. 9. Migrating an existing Model to OpenMI• Existing Model: Migrating the model• New Model: Development of the complaint modelWhy migration?• Many hydrological models results of years of development• Significant amount of money has already been invested Typical Scenario OpenMI Framework (.NET) Model Wrapper (.NET) Model Core (FORTRAN)
  10. 10. Migrating an existing Model to OpenMIStep-1. Changes to the Engine Core: “.exe to .dll” so that it can be complied into a DLL
  11. 11. Migrating an existing Model to OpenMIStep- 2. Wrapping the Model Engine - OpenMI standard are develpoed in C# but most model engines are in FORTRAN, C, C++ etc. - To reduce the gap between two technologies and to minimize the changes to engine core, wrapper is needed. - to change calling convention, to communicate internally to Engine core. <<Linkable Engine>> Wrapper Engine Core
  12. 12. Advantages of OpenMI• Making integrated modelling feasible at operational level• Allows data exchange at run time.• Constructing a single model of all catchment processes is not a feasible option.• Makes use of existing model and provides the flexibility to try alternative model of individual process.• Not limited to models only.• Growing number of users and becoming a standard.• Not limited to models running on different dimension, different calculation time step, different scale, different platform, different projection, different spatial representation.
  13. 13. Drawbacks of OpenMI• The usefulness of the OpenMI standard relies on the availability of compliant models.• Existing models need to migrate to OpenMI compliant models, which requires some work. But OpenMI association provides “Software Development Kit”.• New model components can be coded in OpenMI way.• Calculation time overhead [Standalone vs Combined/Integrated].
  14. 14. Conclusions• Becoming more and more popular.• Many known models are made OpenMI complaint: SWAT, SWMM, MIKE11, InfoWorks, Sobek, Delft3D, ISIS etc.• Becoming a standard interface for integrated modelling.
  15. 15. ReferencesThis presentation is based on series of documents “The OpenMI Series– for the OpenMI version 1.4) released by OpenMI association.Documents can be downloaded from:
  16. 16. Thank You &Questions??