blockSwitchAtTimeOfDay

Swith boolean signal to true for a specific time of day

Information

1. Purpose of model

Switch model that gives a positive value between two specified times of day.

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

(Description)

3. Limits of validity

(Description)

4. Interfaces

(none)

5. Nomenclature

(no elements)

6. Governing Equations

(no equations)

7. Remarks for Usage

The parameters are given as real numbers from 0 to 24 as a time point. The output is as Boolean output, which is true if the time is between those two parameters else it gives false.

8. Validation

(no validation or testing necessary)

9. References

(none)

10. Version History

Created by Yousef Omran, Fraunhofer UMSICHT, 2018

Modified by Anne Hagemeier (anne.hagemeier@umsicht.fraunhofer.de), July 2018

Parameters

TypeNameDefaultDescription
Modelica.Units.NonSI.Time_hourstartTime12Start of period where signal is switched on as hour of the day (out of 24)
Modelica.Units.NonSI.Time_hourendTime15End of period where signal is switched on as hour of the day (out of 24)

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.BooleanOutputy

Components

TypeNameDefaultDescription
Modelica.Blocks.Logical.Timertimer
Modelica.Blocks.Sources.BooleanPulsebooleanPulse
Modelica.Blocks.Logical.LogicalSwitchlogicalSwitch
Modelica.Blocks.Logical.GreaterEqualThresholdgreaterEqualThreshold
Modelica.Blocks.Logical.LessThresholdlessEqualThreshold
Modelica.Blocks.Logical.Andand1
Modelica.Blocks.Sources.BooleanExpressionbooleanExpression
Modelica.Blocks.Sources.BooleanExpressionbooleanExpression1