modelCapacitorDEVSNumerical
Capacitor built from DEVS blocks, uses numerical differentiation.
Extends from ModelicaDEVS.Templates.EEBlock (Electrical - electrical block).
Information
The CapacitorDEVSNumerical BlockParameters:
| 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
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | qssMethod (from EEBlock) | 3 | Use QSS1, QSS2 or QSS3 |
| Modelica.SIunits.Capacitance | C | 1 | Capacitance |
| Real | period | 1e-6 | Sampling period |
| Real | start | 0 | Start time |
| Real | d | 1e-6 | Delay value for the numerical differentiation. |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| PositivePin | p (from TwoPin) | Positive electrical pin | |
| NegativePin | n (from TwoPin) | Negative electrical pin |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Voltage | v (from TwoPin) | Voltage drop of the two pins (= p.v - n.v) | |
| SI.Current | i (from OnePort) | Current flowing from pin p to pin n | |
| Miscellaneous.worldModel | world (from EEBlock) | ||
| FunctionBlocks.Integrator | Integrator1 | ||
| SinkBlocks.Interpolator | Interpolator1 | ||
| FunctionBlocks.Gain | Gain1 | ||
| SamplerTimeNumerical | SamplerTimeNumerical1 |