The OMI file

The OMI file is an essential part of the overall component package.  It is an xml file with a file extension of ".omi" and must comply with the LinkableComponent.xsd schema. It is used to define the name, location, arguments and target platforms of a component so that Pipistrelle can find everything it needs.  For our purposes the following Pond.omi file will suffice for the time being. 

If you develop components outside of the .NET framework in native languages such as Fortran or C++, you will need to add another argument to the list of Arguments identifying the NativeDll so that the Pipistrelle GUI can find and validate it.  We will cover this in due course.

Hover your cursor over the links to discover what each item is for.

<?xml version="1.0" encoding="utf-8"?>
<LinkableComponent 
    xmlns="http://www.openmi.org/v2_0"
    Type="FluidEarthTutorial.Pond" 
    Assembly="FluidEarthTutorial.dll">
    <Arguments>
      <Argument id="FluidEarth2.Sdk.BaseComponentWithEngine.Caption" Value="FluidEarth Tutorial Pond" />
      <Argument id="FluidEarthTutorial.Pond.TimeStep" Value="0^0^5^0.0" />
      <Argument id="FluidEarthTutorial.Pond.Capacity" Value="0" />
      <Argument id="FluidEarthTutorial.Pond.CurrentLevel" Value="0" />
      <Argument id="FluidEarthTutorial.Pond.Flow" Value="0" />
    </Arguments>
  <Platforms>
    <Platform>Win</Platform>
  </Platforms>
</LinkableComponent>

The next step is to decide on which development language your model will be written in and follow the appropriate tutorial .