Skip to content

SpiceSharp.Algebra.SingularException : The matrix was found to be singular when eliminating row 3. #58

Description

@marcin-golebiowski

Could you please check why there is the exception: "SpiceSharp.Algebra.SingularException : The matrix was found to be singular when eliminating row 3." for circuit:

        [Test]
        public void When_SimplestCircuit_Expect_Reference()
        {
            var ckt = new Circuit(
                new VoltageSource("V1", "OUT", "0", 10),
                new BehavioralResistor("R1", "OUT", "0", "V(OUT,0)"));

            var op = new OP("Simple circuit"); 
            var refExport = new RealCurrentExport(op, "V1");
            op.ExportSimulationData += (sender, args) =>
            {
                Assert.AreEqual(-1, refExport.Value, 1e-8);
            };

            op.Run(ckt);
        }

The circuit works in LTSpice:

image
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions