blockShadingSignal
Converts the shading signal to be strictly bigger than 0 and smaller than 1
Extends from Modelica.Blocks.Interfaces.SO (Single Output continuous control block).
Information
This model changes the shading control signal to avoid a singularity in the window model if the input signal is zero or one. Since the window heat balance multiplies the area of the window byu
or by 1-u (if a shade is present), the heat balance can be singular
for u=0 or for u=1.
This model avoids this singularity by slightly changing the control signal.Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | haveShade | Set to true if a shade is present |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| RealOutput | y (from SO) | Connector of Real output signal | |
| Modelica.Blocks.Interfaces.RealInput | u | Shading control signal, 0: unshaded; 1: fully shaded | |
| Modelica.Blocks.Interfaces.RealOutput | yCom | 1-u |
Revisions
-
October 28 2010, by Michael Wetter:
First implementation.