Documentation Home Page HYPERSIM Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.

Mean

The Mean component computes the mean value of the input signal over a running window of one cycle of the specified fundamental frequency.

The output is held constant to the DC component value for one cycle of the specified fundamental frequency.

Symbol

Mask Parameters

NameDescriptionUnitVariable = {Possible Values}
DescriptionUse this field to add all kinds of information about the component
Description = {'string'}
Fundamental frequencyThe fundamental frequency used for the calculation of the mean value over a running window of one cycle of this frequency. This value cannot be modified during the simulationHzFnom = { [0, 1e12] }
Initial input (DC component)
Initial value of the DC component magnitude of the output signal for the first simulation cycle. This value cannot be modified during the simulation
InitialOutputValue = { [0, 1e12] }

Input/Output Signals

Name

Description

Type

u

Input signal

Input

y

Averaged signal as a function of the fundamental frequency

Output

Sensor Descriptions

Name

Description

Unit

u

Input signal

No Unit

y

Averaged signal as a function of the fundamental frequency

No Unit

Internal Circuit of the Component

Example Model

A simple example as given below is developed to demonstrate the usage of mean and mean variable frequency block. The example has two models. The upper part of the model shows a 1- phase 40 V amplitude, 600 V DC biased 720 Hz (constant frequency) signal given as input to Mean block.

The block calculates and captures the results correctly. 

Note that the following example requires that users edit the ScopeView template, and replace the existing .oprec data source with the data generated during the simulation

Simulation results

OPAL-RT TECHNOLOGIES, Inc. | 1751, rue Richardson, bureau 1060 | Montréal, Québec Canada H3K 1G6 | opal-rt.com | +1 514-935-2323
Follow OPAL-RT: LinkedIn | Facebook | YouTube | X/Twitter