question

erik.g avatar image
1 Like"
erik.g asked Brandon Peterson commented

Rain season

hi all,

I am trying to simulate a rainy season in flexsim, where during some period of the year operations are stopped for a random period of time each day because of rain. Start time of the rain could be fixed at, say, 16:00 hours. Does anyone have any idea how to do this?

FlexSim 16.1.0
planningseasonal
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Sam Stubbs avatar image
6 Likes"
Sam Stubbs answered Brandon Peterson commented

You could either use a Time Table to determine specific down times or you could add an MTBF/MTTR which simulates break downs. IN the properties window of the MTBF under the Breakdowns tab, there's a checkbox called "Break Down Members Individually." If you uncheck that box, then all objects added to that MTBF table should break down simultaneously.

You will need to add every object that is affected by the break to the table. Both Time Tables and MTBF/MTTR objects can be added to a model via the Tools tab


mtbfproperties.png (22.4 KiB)
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Brandon Peterson avatar image Brandon Peterson ♦ commented ·

If you are simulating a larger period of time than a single rainy season then you will need to make an adjustment to Sam's solution. The adjustment will need to either reduce the downtime to zero during non-rainy seasons or adjust the next down time so that it skips the non-rainy seasons.

To accomplish the first method you simply need an if statement in the Down Time function that checks to see if the current season == rainy. If yes, then calculate a downtime. If no, then return 0.

To accomplish the second method you will need to set the first failure time to occur at the correct time on the first day of the rainy season. You will also need to add a check to the Up Time function that checks to see if the next calculated down time will occur during the rainy season. If yes, then return the down time. If no, then return the down time with the time period between rainy seasons added on to it.

Good Luck,

Brandon

5 Likes 5 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.