Hello to you all !!
i am a newbie to modelica ,i just need to know if you just had have a such a problem, i defined a voltage commanded current source :
""""""""""""""""""""""""""""""""""""""""""""""""""
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 SI.Conductance Gain(start=1.0) "Gain parameter";
protected
Real iD;
Real vD;
equation
C.i = 0;
iD = P.i;
iD= Gain*vD;
vD=P.v - N.v;
end VDCS;
"""""""""""""""""""""""""""""""
and when i test this model with a constant voltage on the following test model :
""""""""""""""""""""""""""""""""""""""""""""""""
import Modelica.Electrical.Analog;
model simple_test_1
LAAS_MOS.VDCS S1 (Gain=10) ;
Modelica.Electrical.Analog.Basic.Resistor R1(R1=1);
Modelica.Electrical.Analog.Basic.Resistor R2 (R2=1);
Modelica.Electrical.Analog.Basic.Ground gnd;
Modelica.Electrical.Analog.Sources.ConstantVoltage E(V=5);
equation
connect(R1.p,S1.P);
connect(R1.n,gnd.p);
connect(S1.N,R2.p);
connect(R2.n,gnd.p);
connect(E.n,gnd.p);
connect(S1.C,E.p);
end simple_test_1;
"""""""""""""""""""""""""""""""""""""""""""""""
the simulation is good and the open modelica shell give that the results is in the "simple_test_1.res"
but in this file i only find the time interval with the dummy derivative but with no resulat for none of the model variabels. ?????
and i don't know what to do,
regards