Git Product home page Git Product logo

Comments (2)

JoeyDelp avatar JoeyDelp commented on June 11, 2024 1

Hi Daniil,

Apologies for the late reply. A matrix singular error is caused by the solver not finding a solution to the problem and is most often a result of an incorrect netlist.

Now let's look at what you are trying to achieve. You wish to have two harmonic signals affect the same node in a circuit, and you are attempting to do this with phase sources.

A phase source is simply a scaled time integral of a voltage source:
equation
This means it operates in the exact same way a voltage source would in the circuit netlist.

As with a voltage source, connecting it to a singular node defines the value for that node. By attempting to connect another voltage or phase source to the same node you are creating a problem that cannot be solved since you are trying to tell the simulator that the node has a fixed value but this fixed value is both source values which are different. This causes a problem that the solver cannot find a solution to and thus generates a singular matrix error.

If you wish to have the sum of both signals affect the components connected to the node I would suggest putting the sources in series.

As for the math operations in the output vectors, I am aware that this is still not implemented. I have not prioritized this much since it can be done with most plotting tools. It is, however, on the todo list of features to be implemented and will be available in the near future.

Hope this helps,
Joey

from josim.

Skedaddler avatar Skedaddler commented on June 11, 2024

Hi Joey,

thanks a lot for your response and for keeping JoSIM updated. After your detailed explanation the origin of the error became clear.

Following your advice, I applied two harmonic signals with different frequencies to a resistor by connecting two generators in series through the node 4 that is not used anywhere in the circuit:

V1 0 4 sin (0 0.5u 5G)
V2 4 2 sin (0 1u 7G)

Then I looked at the spectrum of the signal through the resistor via OriginPro. Since it is a linear element, there should be no interaction between the signals, so the spectrum should contain only two frequencies (5 GHz with the amplitude 0.5 mV and 7 GHz with the amplitude 1 mV).

image

So as it can be seen from the graph, connecting two signals sources in series equals to the sum of the signals indeed.

Thanks again for JoSIM and your support.

Very grateful,
Daniil

from josim.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.