modelMovingAverage

Information

Moving Average

Overview

  • Calculates a moving average between a past time instant and the actual simulation time.
  • Used to implement automatic user control decisions. E.g. a sun blind is closed when moving average of ambient temperature is above a certain level.

Parameters

TypeNameDefaultDescription
Modelica.Units.SI.TimeaveTime24*3600Time span for average
Realu_start0Start value of input

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputuContinuous input signal
Modelica.Blocks.Interfaces.RealOutputyContinuous output signal

Components

TypeNameDefaultDescription
Modelica.Blocks.Continuous.IntegratoruInt

Revisions

  • 09.11.2021 , by Fabian Wuellhorst:
    Fixed equations #1192
  • 02.06.2014 , by Kristian Huchtemann:
    implemented