blob: 133c861c8f59c7ab031462238b27b0c5a49e573a (
plain)
1
2
3
4
5
6
7
8
|
model VsourceAC "Sin-wave voltage source"
extends TwoPin;
parameter Voltage VA = 220 "Amplitude";
parameter Real f(unit="Hz") = 50 "Frequency";
constant Real PI=3.141592653589793;
equation
v = VA*sin(2*PI*f*time);
end VsourceAC;
|