The Mean, variable frequency component computes the mean value of the input signal over a running window of one cycle of the frequency signal given at input f.
The output is held constant to the DC component value for one cycle of the specified fundamental frequency connected to the second input of the block.
Symbol
Mask Parameters
Name | Description | Unit | Variable = {Possible Values} | |
---|---|---|---|---|
Description | Use this field to add all kinds of information about the component | Description = {'string'} | ||
Initial frequency | Initial frequency for the first simulation cycle. This value cannot be modified during the simulation | Hz | Finit = { [0, 1e12] } | |
Minimum frequency | Minimum expected frequency of the input signal. This value cannot be modified during the simulation | Hz | Fmin = { [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 |
f | Frequency signal used to calculate the average value of the input signal u | Input |
y | Signal averaged as a function of the frequency signal f | Output |
Sensor Descriptions
Name | Description | Unit |
---|---|---|
u | Input signal | No Unit |
f | Frequency signal used to calculate the average value of the input signal u | Hz |
y | Signal averaged as a function of the frequency signal f | No Unit |
Internal Circuit of the Component
Limitations
The frequency input has to be an integer multiple of the input signal.
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 lower part shows a 1- phase 200 V amplitude, 30 V DC biased with variable frequency signal given as input to mean variable frequency block.
The block calculates and captures the results correctly.
Note that the following demo requires that users edit the ScopeView template, and replace the existing .oprec data source with the data generated during the simulation.
Simulation results