• 357 views | 3 messages Discussion: LEAP
    Topic: LEAP energy generation in WEAP Subscribe | Previous | Next
  • Adil Mounir 8/6/2018

    Hello,

    I am trying to link a LEAP model to a WEAP model. I was able to make LEAP read water volumes from WEAP to calculate the energy needed for treatment and distribution.

    However, I couldn't make WEAP read energy generated in power plants from LEAP. I want WEAP to estimate water needs of these power plants based on the generated energy.

    The issue that I have is that WEAPValue(path\to\WEAP\variable) gives an error message in WEAP "Error reported by LEAP: Cannot filter variable on dimension "Time Slices"

    The variables I tried are "Outputs by Output Fuel", "Outputs by Feedstock Fuel", and "Actual Availability".

    My temporal resolution is annual. Time Slices in LEAP: Whole Year (365), which is matching to time slices in WEAP: (365).

    Any possible solutions to this issue?

    Thank you!

  • Taylor Binnington 9/7/2018
      Best Response

    Hi Adil -

    Sorry for the very late reply.

    But I'm a bit confused. I thought you had trouble with WEAP reading values from LEAP, but you then included the sample expression "WEAPValue(path\to\WEAP\variable)", which you would enter into LEAP. Can you provide a very specific example of what you're doing, with step-by-step instructions, so that we can try to reproduce it?

    Note that it's important to be sure that you know whether you are referencing a time-sliced variable or an annual variable in LEAP, from within WEAP. For example, if you refer to LEAP's variables Outputs by Output Fuel, or Outputs by Feedstock Fuel, from a time-sliced variable in WEAP, WEAP will incorrectly read the annual data in separately for each time slice.

    With a specific example, I can be of more help,
    Taylor

  • Adil Mounir 9/7/2018
      Best Response

    Thank you Taylor for your reply. I updated version of LEAP and WEAP and now it is working. Currently I am using WEAP 2018.1, and LEAP 2018.0.1.17.