Counter for concentration exceedances

Comments

2 comments

  • Avatar
    Jason

    Jackson,

    One way to do this is with a vector constructor inside an Integrator. Below is a screen capture of a simple model that just does a comparison between the concentration and the compliance limit on an "item per item" basis with the vector constructor. The key is this equation:

    vector(if(Modelled_Concetration[row] > Compliance_Limit[row], 1, 0))

    This equation is like a FOR loop that walks over all the rows of your concentration vector. The integrator will count at a rate of once per day and this works for a 1-day time step. If you have a different time step, you might need to adjust this part.

    Go here for more about vector constructors: https://help.goldsim.com/#GS/definingarraysinaninputfieldusingarrayconstructorfunctions.htm

    Does it make sense?

    -Jason

    0
    Comment actions Permalink
  • Avatar
    Jackson White

    Thanks for your response Jason, that makes sense. I wasn't sure how to implement that workflow but that was the intention.

    0
    Comment actions Permalink

Please sign in to leave a comment.