modelSineCurrent
Sinusoidal current source of analog electrical library
Extends from Interfaces.OnePort (OnePort partial model of analog electrical library).
Information
The sinusoidal current source is built in bondgraphic technology from a bond graph sinSf element, a 1-junction, and three bonds. A-causal bonds must be used except at the source, because the causality depends on the embedding of the current source in its environment.
Parameters: V: Amplitude of source current (default value = 1 Amp) phase: Phase of sine wave to be generated (default value = 0 rad) freqHz: Frequency of sine wave to be generated (default value = 1 Hz) offset: Offset of sine wave to be generated (default value = 0 Amp) startTime: Start time of sine wave to be generated (default value = 0 sec)
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.SIunits.Current | I | 1 | Amplitude of sine wave |
| Modelica.SIunits.Angle | phase | 0 | Phase of sine wave |
| Modelica.SIunits.Frequency | freqHz | 1 | Frequency of sine wave |
| Modelica.SIunits.Current | offset | 0 | Current offset |
| Modelica.SIunits.Time | startTime | 0 | Time offset |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Electrical.Analog.Interfaces.PositivePin | p (from OnePort) | Left electrical connector | |
| Modelica.Electrical.Analog.Interfaces.NegativePin | n (from OnePort) | Right electrical connector |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.SIunits.Voltage | v (from OnePort) | Voltage drop between the two pins | |
| Modelica.SIunits.Current | i (from OnePort) | Current flowing from pin p to pin n |