modelBES_Controller
BES controller with different control types according to ControlTypes
Extends from TransiEnt.Basics.Icons.Controller (Icon for controller).
Information
Logic of this controller
- Self-sufficiency (simple): charge battery if generated surplus power is available, otherwise discharge until it is empty.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Power | Bat_PowerLimit | Maximum battery power | |
| External Control | |||
| ControlType | controlType | TransiEnt.Basics.Types.ControlType.Internal | Type of control (see enumeration) |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| TransiEnt.Basics.Interfaces.Electrical.ElectricPowerIn | P_smartMeter | Active power consumption measured by Smart Meter | |
| Modelica.Blocks.Interfaces.BooleanInput | Signal_P_external | If Control_Signal = true, then the Output P_bat_out externally controlled over P_bat | |
| TransiEnt.Basics.Interfaces.Electrical.ElectricPowerIn | P_BES | Externally set battery power | |
| TransiEnt.Basics.Interfaces.Electrical.ElectricPowerOut | P_BES_out | Set-point battery power output | |
| Modelica.Blocks.Interfaces.BooleanInput | Signal_Priority_Charge | If Control_Signal = true, then the Output P_bat_out externally controlled over P_bat | |
| Modelica.Blocks.Interfaces.BooleanInput | Signal_Priority_Discharge | If Control_Signal = true, then the Output P_bat_out externally controlled over P_bat | |
| Modelica.Blocks.Interfaces.BooleanOutput | Signal_Priority_Charge_internal | ||
| Modelica.Blocks.Interfaces.BooleanOutput | Signal_Priority_Discharge_internal |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Continuous.LimPID | PI | ||
| Modelica.Blocks.Sources.RealExpression | controlTarget | ||
| Modelica.Blocks.Math.Gain | gain | ||
| Modelica.Blocks.Continuous.FirstOrder | breakAlgebraicLoop | ||
| Modelica.Blocks.Logical.Switch | Switch_External_P | ||
| Modelica.Blocks.Sources.RealExpression | priority_power_ | ||
| Modelica.Blocks.Logical.Switch | Switch_Priority | ||
| Modelica.Blocks.Sources.BooleanExpression | has_priority_ | ||
| Modelica.Blocks.Nonlinear.VariableLimiter | variableLimiter | ||
| Modelica.Blocks.Logical.Switch | Switch_Limit_P | ||
| Modelica.Blocks.Sources.RealExpression | UpperBatteryPowerLimitSwitch | ||
| Modelica.Blocks.Sources.RealExpression | UpperBatteryPowerLimit | ||
| Modelica.Blocks.Sources.RealExpression | LowerBatteryPowerLimit | ||
| Boolean | has_priority | ||
| Modelica.Units.SI.Power | priority_power |