BlockSim Example: Phase with Phase Subdiagram Block

Phase with subdiagram phase block
Consider to model a server has two shifts each day, the day shift lasts 8 hours and the night shift lasts 16 hours. In each shift it has peak period and off-peak period with different duration.

Purposes
The purposes of this example is to illustrate how to use subdiagram phase block in phase simulation. The subdiagram phase block can help to reduce the repetition and complexity in modeling.

RBDs for Phase and settings
The RBDs for Peak phase and Off-Peak phase are as followings:

The phase diagram for Night Shift and Day Shift are as followings:

The main phase diagram with subdiagram phase blocks is as followings:

In Peak period, reliability of Block A follows W(1.5,30) and reliability of Block B follows W(1.5,40).

In Off-Peak period, reliability of Block A follows W(1.5,15) and reliability of Block B follows W(1.5,20).

In Day Shift, both blocks have CM and PM with duration = 1 hours and in Night Shift, both blocks have CM and PM with duration = 2 hours.

In Day Shift, the duration of Off-Peak phase is 4 hours and the duration for Peak phase is 3 hours.

In Night Shift, the duration of Off-Peak phase is 8 hours and the duration for Peak phase is 6 hours.

Block Up/Down plot
The Block Up/Down plot for 2 days (48 hours) is as followings:


 * 1) At time 5.4, in Peak phase of Day Shift, Block A fails. After this Peak phase, Block A get CM and Block B get PM in maintennace phase.
 * 2) At time 19.9, in Peak phase of Night Shift, Block A fails again. After this Peak phase, Block A get CM and Block B get PM in maintennace phase.
 * 3) At time 40.6, in Peak phase of Night Shift, Block A fails again. After this Peak phase, Block A get CM and Block B get PM in maintennace phase.