Comments (2)
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:
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.
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).
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)
- Some issues about building this project HOT 2
- Windows: How to change the input path file? HOT 1
- Anaconda 3 Python Version 3.7 problem HOT 4
- Python 3.6 DLL Files Missing HOT 5
- Error while building the JoSIM HOT 5
- SQUID simulation HOT 2
- JoSIM installation CentOS 7 HOT 2
- Usage of custom wave source HOT 4
- Simulation with noise HOT 2
- Question about AREA of junction. HOT 5
- Don't understand the component stamp
- Subcircuit questions HOT 7
- The issues about ivcurve.py HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from josim.