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
| Type | Name | Default | Description |
|---|---|---|---|
| Real | k (from Integrator) | 1 | Integrator gain |
| Boolean | use_reset (from Integrator) | false | = true, if reset port enabled |
| Boolean | use_set (from Integrator) | false | = true, if set port enabled and used as reinitialization value when reset |
| Initialization | |||
| Init | initType (from Integrator) | Init.InitialState | Type of initialization (1: no init, 2: steady state, 3,4: initial output) |
| Real | y_start (from Integrator) | 0 | Initial or guess value of output (= state) |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| RealInput | u (from SISO) | Connector of Real input signal | |
| RealOutput | y (from SISO) | Connector of Real output signal | |
| Modelica.Blocks.Interfaces.BooleanInput | reset (from Integrator) | Optional connector of reset signal | |
| Modelica.Blocks.Interfaces.RealInput | set (from Integrator) | Optional connector of set signal |
Revisions
-
June 24, 2026, by Michael Wetter:
First implementation.