A new question to Ask ,
i am trying to code a voltage depended voltage source, i call is VDCS :
Modelica.Electrical.Analog.Interfaces.Pin P "Positive noeud";
Modelica.Electrical.Analog.Interfaces.Pin N "Negative noeud";
Modelica.Electrical.Analog.Interfaces.Pin C "Command noeud" ;
parameter Modelica.SIunits.Conductance K "Gain parameter";
SI.Voltage v ;
Id = P.i;
VL = C.v - P.v;
Id = K * VL ;
0.0 = P.i + N.i;
v = P.v - N.v;
normaly the C pin is the command pin (i=0) and VL=C.v-P.v ; i used the P.v to simplify because the P pin is connected to the L.n or R.n pin .
and the test model is the following :
Diode.VDCS JC (K=6100);
Modelica.Electrical.Analog.Sources.PulseVoltage E(V=10,period = 2.0e-8);
the VDCS work properly, i mean the modelica shell gave me that the simulation is done and the results are in the plt file, but the problem is that the differentiel potential for the Resistor R is zero !!!!
R.p=10v = R.n ????
and the R.p.i =0 !!!!!!!!!
and thanks in advance
I found the probleme
i am sorry
so where was the problem?
Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)