modelCapacitorDEVSNumerical

Capacitor built from DEVS blocks, uses numerical differentiation.

Extends from ModelicaDEVS.Templates.EEBlock (Electrical - electrical block).

Information

The CapacitorDEVSNumerical Block

Parameters:
period length of the sampling intervals
start start time of the sampling period
d delay value for the numerical differentiation.


Description:

The CapacitorDEVSNumerical block is an almost exact copy of the CapacitorDEVS block, only that the normal SamplerTime is replaced by a SamplerTimeNumerical block. The SamplerTimeNumerical block avoids the problem caused by the der() (see description of the CapacitorDEVS block) operator by means of the delay() function that is used to differentiate numerically (concept of difference equations) instead of analytically. This means that instead of the first and second derivatives of the input signal, the SamplerTimeNumerical returns a numerical approximation.

Parameters

TypeNameDefaultDescription
IntegerqssMethod (from EEBlock)3Use QSS1, QSS2 or QSS3
Modelica.SIunits.CapacitanceC1Capacitance
Realperiod1e-6Sampling period
Realstart0Start time
Reald1e-6Delay value for the numerical differentiation.

Connectors

TypeNameDefaultDescription
PositivePinp (from TwoPin)Positive electrical pin
NegativePinn (from TwoPin)Negative electrical pin

Components

TypeNameDefaultDescription
SI.Voltagev (from TwoPin)Voltage drop of the two pins (= p.v - n.v)
SI.Currenti (from OnePort)Current flowing from pin p to pin n
Miscellaneous.worldModelworld (from EEBlock)
FunctionBlocks.IntegratorIntegrator1
SinkBlocks.InterpolatorInterpolator1
FunctionBlocks.GainGain1
SamplerTimeNumericalSamplerTimeNumerical1