Opened 20 years ago

Last modified 18 years ago

#26 closed defect (fixed)

unstable simulation result

Reported by: jonas.elbornsson Owned by: jonas.elbornsson
Priority: critical Milestone:
Component: Version:
Keywords: Cc: jonas.elbornsson, Adrian Pop

Description


Change History (3)

comment:1 by jonas.elbornsson, 20 years ago

model test ""

Modelica.Electrical.Analog.Sources.ConstantVoltage constantVoltage1 ""

annotation(Placement(visible=true,transformation(x=-
60.8978,y=9.34493,scale=0.1,rotation=270)));

Modelica.Electrical.Analog.Basic.Capacitor capacitor1 annotation(Placement

(visible=true,transformation(x=-46.4412,y=37.1671,scale=0.1)));

Modelica.Electrical.Analog.Basic.Ground ground1 annotation(Placement

(visible=true,transformation(x=-55.7152,y=-28.0241,scale=0.1)));

Modelica.Electrical.Analog.Basic.Resistor resistor1 "" annotation(Placement

(visible=true,transformation(x=-8.7994,y=36.3488,scale=0.1)));

Modelica.Electrical.Analog.Basic.Resistor resistor2 annotation(Placement

(visible=true,transformation(x=-26.5292,y=63.6254,scale=0.1)));

Modelica.Electrical.Analog.Basic.Conductor conductor1 "" annotation(Placement

(visible=true,transformation(x=-27.3475,y=18.8918,scale=0.1)));

Modelica.Electrical.Analog.Basic.Inductor inductor1 "" annotation(Placement

(visible=true,transformation(x=-21.6194,y=-18.4772,scale=0.1)));

equation

connect(inductor1.n,conductor1.n) annotation(Line(visible=true,points={{-

11.8,-18.2},{-17.53,19.16}}));

connect(inductor1.p,constantVoltage1.n) annotation(Line(visible=true,points=

{{-31.71,-18.2},{-61.44,-0.75}}));

connect(resistor1.n,inductor1.n) annotation(Line(visible=true,points=

{{1.02,36.62},{-11.8,-18.2}}));

connect(conductor1.p,constantVoltage1.p) annotation(Line(visible=true,points=

{{-37.44,19.16},{-60.63,19.16}}));

connect(resistor2.n,resistor1.n) annotation(Line(visible=true,points={{-

16.71,63.63},{1.02,36.35}}));

connect(capacitor1.p,resistor2.p) annotation(Line(visible=true,points={{-

56.26,37.17},{-36.62,63.63}}));

connect(capacitor1.n,resistor1.p) annotation(Line(visible=true,points={{-

36.08,36.62},{-18.89,36.62}}));

connect(constantVoltage1.n,ground1.p) annotation(Line(visible=true,points={{-

61.17,-0.75},{-55.99,-17.93}}));

connect(constantVoltage1.p,capacitor1.p) annotation(Line(visible=true,points=

{{-61.17,19.44},{-56.26,37.44}}));
end test;

Simulation of this electrical circuit model gives exponentially growing
voltages (1028 after 1 second of simulation), where the true voltage should
be around the magnitude 1.

comment:2 by Peter Aronsson, 19 years ago

This is due to some bug in a linear equation system for algebraic variables.
The two states of the model are correct.

comment:3 by Adrian Pop, 18 years ago

this bug seems to be fixed

Note: See TracTickets for help on using tickets.