modelElectricalEnergyMeter

Extends from Modelica.Blocks.Continuous.Integrator (Output the integral of the input signal with optional reset).

Information

Block for an electrical energy meter that takes a real-valued signal as the input.

Parameters

TypeNameDefaultDescription
Realk (from Integrator)1Integrator gain
Booleanuse_reset (from Integrator)false= true, if reset port enabled
Booleanuse_set (from Integrator)false= true, if set port enabled and used as reinitialization value when reset
Initialization
InitinitType (from Integrator)Init.InitialStateType of initialization (1: no init, 2: steady state, 3,4: initial output)
Realy_start (from Integrator)0Initial or guess value of output (= state)

Connectors

TypeNameDefaultDescription
RealInputu (from SISO)Connector of Real input signal
RealOutputy (from SISO)Connector of Real output signal
Modelica.Blocks.Interfaces.BooleanInputreset (from Integrator)Optional connector of reset signal
Modelica.Blocks.Interfaces.RealInputset (from Integrator)Optional connector of set signal

Revisions

  • June 24, 2026, by Michael Wetter:
    First implementation.