How to set a dynamic starting condition for a reservoir object?

Comments

3 comments

  • Avatar
    Jason

    Page,

    Good question. This type of thing is done for carryover storage in Monte Carlo simulation models where we simulate a time period shorter than the reservoir's cycle time. Please have a look at this example that use Discrete Change elements to reset the value at time = 0 d. I think this is the approach that could work in your case. Let me know if that helps.

    Output Feedback to Input Between Realizations – GoldSim Help Center

    -Jason

    1
    Comment actions Permalink
  • Avatar
    Page Weil

    Okay, this looks like it is what I want. One issue though is that I want to define the discrete change as coming from a vector (I have about 20 different reservoir accounts I want to set all at once). When I try to set the Discrete Change element to a Vector and use it on the reservoir, I get this error:

    Is there a workaround to let me set all reservoir starting contents in some kind of vector format and then refer to them based on their index (rather than creating 20 elements to set the discrete change)?

    1
    Comment actions Permalink
  • Avatar
    Jason

    Page,

    If the storage element is a scalar, then the Discrete Change should also be a scalar (not vector). Your options appear to be that you create 1 Discrete Change element for each Pool element (my preference in this case). Or use a vector type Reservoir element for your 20 reservoir accounts and then the discrete change can be a vector of the same size. 

    Does that help?

    -Jason

    0
    Comment actions Permalink

Please sign in to leave a comment.