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 by u 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

TypeNameDefaultDescription
BooleanhaveShadeSet to true if a shade is present

Connectors

TypeNameDefaultDescription
RealOutputy (from SO)Connector of Real output signal
Modelica.Blocks.Interfaces.RealInputuShading control signal, 0: unshaded; 1: fully shaded
Modelica.Blocks.Interfaces.RealOutputyCom1-u

Revisions

  • October 28 2010, by Michael Wetter:
    First implementation.