modelController
Define current operation mode
Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).
Information
The CHP plant switches between six possible operating modes depending on the current mode, control signals and plant boundary conditions. The regular transition between them is as follows:
- off
- stand-by mode
- pump-on mode
- warm-up mode
- normal operation
- cool-down mode
- off or stand-by mode
Switching between operating modes
From the off mode:
-
The transition from the off to the stand-by mode will occur when the plant availability
signal
avaSigbecomes true.
From the stand-by mode:
-
The transition from the stand-by to the pump-on mode will occur when the plant
running signal
runSigbecomes true. -
If
avaSigbecomes false, the CHP will automatically change to the off mode.
From the pump-on mode:
-
The transition from the pump-on to stand-by mode will occur after the specified
time delay and if the water flow rate
mWat_flowis greater than the minimummWatMin_flow. -
If
runSigbecomes false, the CHP will automatically change to the off mode.
From the warm-up mode:
-
The transition from the warm-up mode to the normal operation will occur after the
specified time delay (if
warmUpByTimeDelayis true) or when the engine temperatureTEngbecomes higher than the nominal temperatureTEngNom(ifwarmUpByTimeDelayis false). -
If
runSigbecomes false or if the water flow ratemWat_flowbecomes less than the minimummWatMin_flow, the CHP will automatically change to the cool-down mode.
From the normal mode:
-
The transition from the normal operation to the cool-down mode will occur when
runSigbecomes false or if the water flow ratemWat_flowbecomes less than the minimummWatMin_flow.
From the cool-down mode:
-
The transition from the cool-down mode will occur after the specified time delay.
If
avaSigis true, the CHP will change to the stand-by mode; else, it will change to the off mode. -
If the CHP has the mandatory cool-down configuration (if
coolDownOptionalis false), the plant has to complete the cool-down period before it can be reactivated. If the CHP has the optional cool-down configuration (ifcoolDownOptionalis true), the plant may imediatelly change to the warm-up mode if it gets reactivated (runSig= true).
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Fluid.CHPs.Data.Generic | per | Performance data | |
| Dynamics | |||
| Modelica.Units.SI.Time | waitTime | 60 | Wait time before transition from pump-on mode fires |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Controls.OBC.CDL.Interfaces.BooleanInput | avaSig | True when the plant is available | |
| Buildings.Controls.OBC.CDL.Interfaces.BooleanInput | runSig | True when plant should run | |
| Buildings.Controls.OBC.CDL.Interfaces.RealInput | mWat_flow | Cooling water mass flow rate | |
| Buildings.Controls.OBC.CDL.Interfaces.RealInput | TEng | Engine temperature | |
| Buildings.Controls.OBC.CDL.Interfaces.RealInput | PEleNet | Net power output | |
| Buildings.Controls.OBC.CDL.Interfaces.RealInput | PEle | Power demand | |
| Buildings.Fluid.CHPs.BaseClasses.Interfaces.ModeTypeOutput | opeMod | Type of operating mode |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.StateGraph.Step | staBy | Standby step | |
| Modelica.StateGraph.Step | pumOn | Pump on step | |
| Modelica.StateGraph.StepWithSignal | warUp | Warm-up step | |
| Modelica.StateGraph.StepWithSignal | cooDow | Cool-down step |
Revisions
-
April 8, 2020, by Antoine Gautier:
Refactored implementation. -
December 03, 2019, by Jianjun Hu:
Refactored implementation. -
June 18, 2019, by Tea Zakula:
First implementation.