How to count number of storage cycle

Use this forum to post Vensim related questions.
Post Reply
RWTH_FCN
Senior Member
Posts: 148
Joined: Wed Feb 08, 2017 9:10 am
Vensim version: DSS

How to count number of storage cycle

Post by RWTH_FCN »

Hi,

I want to consider a maximum number of storage cycle for storage technology in my model. It means that a storage technology cannot exceed its maximum number of cycle. Do you have any suggestion how to model it in Venism.
*Whenever it is used it can be consider as a one cycle.
Best Regards
tomfid
Administrator
Posts: 3811
Joined: Wed May 24, 2006 4:54 am

Re: How to count number of storage cycle

Post by tomfid »

The word "count" implies "stock". You can do something like the following:

count = INTEG( counting, 0 )
counting = start of cycle/TIME STEP
start of cycle = {logical flag - a function of your process}

The trick is to avoid counting the same cycle in consecutive TIME STEPS, but it's hard to say more without knowing something about the process.

Another option might be to model the process physically:

device health = INTEG( - damage, 1 )
damage = (a*charge rate + b*discharge rate)*device health

In other words, the device starts with 100% capacity, and then loses a little big with each use, with parameters a & b governing the loss rate. Then you could replace the device at some health threshold.
RWTH_FCN
Senior Member
Posts: 148
Joined: Wed Feb 08, 2017 9:10 am
Vensim version: DSS

Re: How to count number of storage cycle

Post by RWTH_FCN »

tomfid wrote: Thu Apr 25, 2019 3:18 pm The word "count" implies "stock". You can do something like the following:

count = INTEG( counting, 0 )
counting = start of cycle/TIME STEP
start of cycle = {logical flag - a function of your process}

The trick is to avoid counting the same cycle in consecutive TIME STEPS, but it's hard to say more without knowing something about the process.

Another option might be to model the process physically:

device health = INTEG( - damage, 1 )
damage = (a*charge rate + b*discharge rate)*device health

In other words, the device starts with 100% capacity, and then loses a little big with each use, with parameters a & b governing the loss rate. Then you could replace the device at some health threshold.
Thanks a lot. It was useful.
Post Reply