This component is a model for any device or system that produces a constant electromotive force between its port. The output voltage of this DC volatge source is defined by the user. The black port indicates the positive voltage. The ohmic resistance of this DC voltage source is zero.
Set ConstantVoltage block parameter | |
V (volt) | 0.01 |
class ConstantVoltage "Source for constant voltage" Pin p, n; parameter Real V = 1 "Volts"; equation V = p.v - n.v; p.i + n.i = 0; end ConstantVoltage;