modelThreeStateDynamic

Three state dynamic model - operating at init
Diagram of ThreeStateDynamic

Extends from TransiEnt.Components.Turbogroups.OperatingStates.PartialStateDynamic (State graph model with state-depentend maximum values and gradients).

Information

1. Purpose of model

Three state dynamic turbine model as state transition graph

2. Level of detail, physical effects considered, and physical insight

L1: Models are based on characteristic lines and / or transfer functions

A hysteresis has been added for the state change from halt to startup. Sometimes chattering can occur at this switch which can be avoided using the hysteresis.

Parameter 'MinimumDownTime' defines minimum time that power plant has to be shut down before beeing able to start up again.

3. Limits of validity

(no remarks)

4. Interfaces

P_set_star: input for electric power in W

P_set_star_lim: output for electric power in W

5. Nomenclature

(no remarks)

6. Governing Equations

(no remarks)

7. Remarks for Usage

slewRateLimiter: set P_grad_operating =-1, if slewRateLimiter is not needed.

8. Validation

Tested in check model "TestThreeStateDynamic" and "TestThreeStateDynamic_Initatmin"

9. References

(no remarks)

10. Version History

Model created by Pascal Dubucq (dubucq@tuhh.de) on 01.10.2014

Quality check (Code conventions) by Rebekka Denninger on 01.10.2016

Hysteresis for halt-startup change added by Carsten Bode (c.bode@tuhh.de) in Nov 2018

Model modified by Oliver Schülting (oliver.schuelting@tuhh.de) in Nov 2018: added Minimum Down Time

Model modified by Oliver Schülting (oliver.schuelting@tuhh.de) on April 2019: added option to deactivate slewRateLimiter, added minimum operation time

Model modified by Robert Flesch (flesch@xrg-simulation.de) in Feb 2021: set output to zero if shutdown is active - check if shutdown is complete by using the power input

Parameters

TypeNameDefaultDescription
SI.Timet_eps (from PartialStateDynamic)10Threshold time for transitions
RealP_star_init (from PartialStateDynamic)0Power at startup (p.u.)
SI.FrequencyP_grad_inf (from PartialStateDynamic)1Numerical value for unlimited gradients during shutdown
SI.TimeT_thresh (from PartialStateDynamic)simCenter.thresTime constant of numerical element between saturation and gradient limiter
RealTd (from PartialStateDynamic)simCenter.TdTime constant of derivative approximation in slew rate limiter
BooleanuseThresh (from PartialStateDynamic)simCenter.useThreshUse threshould for suppression of numerical noise
Realthres (from PartialStateDynamic)simCenter.thresIf abs(u-y)< thres, y becomes a simple pass through of u. Increasing thres can improve simulation speed. However to large values can make the simulation unstable. A good starting point is the choice thres = tolerance/1000.
SI.FrequencyP_grad_operating (from PartialStateDynamic)0.02/60Maximum Gradient during operation
BooleanuseSlewRateLimiter (from PartialStateDynamic)truechoose if slewRateLimiter is activated
BooleanuseHomotopyVarSlewRateLim (from PartialStateDynamic)simCenter.useHomotopytrue if homotopy shall be used in variableSlewRateLimiter
SI.Timet_startup3600Startup time
SI.Timet_min_operating0Minimum operation time
RealP_min_operating0.3Minimum power (p.u.)
RealP_max_operating1Maximum power (p.u.)
BooleansmoothShutDowntrueshut down process will be smoothed - power gradient will be limit by 'P_grad_operating'
SI.FrequencyP_grad_startupP_grad_infMaximum Gradient during startup
TransiEnt.Basics.Types.ThermalPlantStatusinit_stateif P_star_init < P_min_operating then 0 else 1State of plant at initialization
Realthres_hyst1e-10Threshold for hysteresis for switch from halt to startup (chattering might occur, hysteresis might help avoiding this)
SI.TimeMinimumDownTime0Minimum time the plant needs to be shut down before starting again

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealOutputP_grad_star_max_out (from PartialStateDynamic)Relative maximum gradient in operation
Modelica.Blocks.Interfaces.RealOutputP_grad_star_min_out (from PartialStateDynamic)Relative minium gradient in operation
TransiEnt.Basics.Interfaces.Electrical.ElectricPowerInP_set_star (from PartialStateDynamic)Connector of setpoint input signal
TransiEnt.Basics.Interfaces.Electrical.ElectricPowerOutP_set_star_lim (from PartialStateDynamic)Limited output signal
Basics.Interfaces.Electrical.ElectricPowerInP_actual_star (from PartialStateDynamic)Connector of actual power

Components

TypeNameDefaultDescription
SimCentersimCenter (from PartialStateDynamic)
Modelica.StateGraph.StateGraphRootstateGraphRoot (from PartialStateDynamic)
Modelica.Blocks.Nonlinear.VariableLimitervariableLimiter (from PartialStateDynamic)
Basics.Blocks.VariableSlewRateLimitervariableSlewRateLimiter (from PartialStateDynamic)
Modelica.Blocks.Sources.RealExpressionP_min_of_state (from PartialStateDynamic)
Modelica.Blocks.Sources.RealExpressionP_max_of_state (from PartialStateDynamic)
Modelica.Blocks.Sources.RealExpressionP_grad_min_of_state (from PartialStateDynamic)
Modelica.Blocks.Sources.RealExpressionP_grad_max_of_state (from PartialStateDynamic)
Modelica.Blocks.Logical.SwitchdeactivatePower (from PartialStateDynamic)
BooleanisOperating (from PartialStateDynamic)
Modelica.Blocks.Sources.RealExpressionzeroPower (from PartialStateDynamic)
Modelica.Blocks.Sources.BooleanExpressiondeactivationSignal (from PartialStateDynamic)
Modelica.StateGraph.StepWithSignalhalt
Modelica.StateGraph.StepWithSignaloperating_minimum
Modelica.StateGraph.TransitionstartupSuccess
Modelica.StateGraph.StepWithSignalstartup
Modelica.StateGraph.Transitionthreshold
Modelica.StateGraph.TransitionnoThreshold
Modelica.StateGraph.TransitionnoThreshold2
Modelica.StateGraph.TransitioninitOff
Modelica.StateGraph.TransitioninitOn
Modelica.StateGraph.TransitioninitStartup
Modelica.StateGraph.InitialStepinit
Modelica.Blocks.Logical.Hysteresishysteresis
Modelica.Blocks.Math.Gaingain
Modelica.StateGraph.StepWithSignalDownTime
Modelica.StateGraph.TransitionminimumDownTimeBlock
Modelica.StateGraph.TransitionstartupSuccess1
Modelica.StateGraph.StepWithSignaloperating
Modelica.StateGraph.StepWithSignalturndown
Modelica.StateGraph.TransitionWithSignalturnDownSuccess
Modelica.Blocks.Sources.BooleanExpressionbooleanExpression