Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

A common practice for development of FEWS model adapters is to develop two separate adapters for pre- and post processing of model input and output. For Wanda this resulted in two adapters, the WandaPreadapter and WandaPostAdapter . However on which use the PI-XML format to exchange data with FEWS.

On request of the users an additional, combined adapter has been added, the WandaAdapter which performs both the pre-and post processing tasks as wel as exand also executes the Wanda Model. Using this combined adapter is more efficient because instead of 3 separate execute activities the General Adapter only needs to execute one and as a result the Wanda Java API used by the adapter only needs to load the Wanda Model schematization once, providing considerable performance improvement, especially for a large model. The configuration example given on this page therefore all assume that the combined WandaAdapter is used.

Wanda adapter binary folder

...

Important for Wanda here are the properties of the exportRunFileActivity. These properties are the actual provide specific Wanda model settings.

  • key - runSteadyForEveryTimeStepMODEL: this setting contains the path and file name of the Wanda Model input file to open (*.wdi) The model output file
    to be read by the adapter after completing the model run uses the same file name but the file extension *.wdo.
  • key - BIN can be true or false. If true, every timestep that is simulated is independent of every previous or following timestep. So every timestep is handled as a steady situation. If false, the model will run as a hydraulic model simulating a non-stationary situation.key - wdi: this setting contains the name and path of where the actual Wanda model binaries are stored.
  • key - loopChoiceName AMBIENTFILE (optional): required for pump loop settinga file name mask (can contain * wildcards) used to identify files listed under exportTimeSeriesActivity
    which contain ambient properties that are applied in a specific manner to all pipe objects in the Wanda model.
  • key - loopChoiceInputParameterId GRIDPOINTSFILE (optiona): a file name mask (can contain * wildcards) used to identify files listed under exportTimeSeriesActivity
    which contain gridpoint properties that are applied in a specific manner to grid points along a pipe object in the Wanda model.
  • key - PARAMETERFILE (optional): a file name mask (can contain * wildcards) used to identify files listed under exportLocationAttrubutesCsvActivity
    which contain time-independent location parameter that are applied to the WandaModel and are stored in CSV format instead of XMLoptional): required for pump loop settingkey - loopChoiceSelectionIndex (optional): required for pump loop setting

ExecuteActivities Section

...

Example configuration

Example general configuration files are attached, including IdMaps.file is attached (WarmingUP project)