Printable Version of Topic

Click here to view this topic in its original format

Modelica Forum _ MathModelica / OpenModelica _ A Resistor with no current flow

Posted by: MOS701 Feb 23 2009, 02:25 PM

Hi ,

A new question to Ask tongue.gif,

i am trying to code a voltage depended voltage source, i call is VDCS :

within Diode;

model 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.Current Id;
SI.Voltage VL;
SI.Voltage v ;

equation

Id = P.i;
VL = C.v - P.v;
Id = K * VL ;
0.0 = P.i + N.i;
C.i=0;
v = P.v - N.v;

end VDCS;
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 :

model test_VDCS_resistiveL

Diode.VDCS JC (K=6100);
Modelica.Electrical.Analog.Basic.Ground gnd;
Modelica.Electrical.Analog.Basic.Resistor R(R=5.7e-3);
Modelica.Electrical.Analog.Basic.Resistor RL(R=0.1e-3);
Modelica.Electrical.Analog.Sources.PulseVoltage E(V=10,period = 2.0e-8);

equation
connect(E.p,R.p);
connect(R.p,RL.p);
connect(JC.N,R.p);
connect(JC.P,RL.n);
connect(JC.C,R.n);
connect(E.n,RL.n);
connect(E.n,gnd.p);

end test_VDCS_resistiveL;

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

and thanks in advance

Posted by: MOS701 Feb 24 2009, 03:44 PM

I found the probleme tongue.gif

i am sorry

Posted by: filip jezek May 4 2010, 11:19 PM

so where was the problem?

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)