Git Product home page Git Product logo

Comments (9)

ra3xdh avatar ra3xdh commented on June 27, 2024

Specify the TEMP as DC sweep parameter. The blue unified devices require to set Temp=TEMPER explicitly. The red SPICE devices will work without this setting. Look at the attached example.
image

from qucs_s.

dwarning avatar dwarning commented on June 27, 2024

What you mean with blue and red transistors?
It looks your approach expect to have the Temp model or instance parameter. But there are models which haven't and get the temperature over the circuit temperature. For larger circuits it would be uncomfortable to edit any instance.
I found a simple way with Nutmeg script.
Thank you.
Bildschirmfoto vom 2023-11-25 15-37-43

from qucs_s.

ra3xdh avatar ra3xdh commented on June 27, 2024

What you mean with blue and red transistors?

  • Blue transistors are unified devices. It has blue color on schematic. This transistor si supported by both Qucsator and Ngspice. This is blue transistor. It has blue color.
    image

  • Red transistors are SPICE only and support extended SPICE parameters. It has red color on schematic. This is red transistor. It requires the .MODEL to be attached. This transistor doesn't require the TEMPER to specified explicitly and uses global temperature. The picture shows red transistor. It has red color.
    image

But there are models which haven't and get the temperature over the circuit temperature.

I don't know if Verilog-A devices take the global temperature.

For larger circuits it would be uncomfortable to edit any instance.

The solution may be don't use the unified devices if you need temperature sweep. I cannot provide an unified setting tor Temp parameter for blue devices. Qucsator will not accept TEMPER and the simulation will show undefined variable error. But the number is accepted by both Qucsator/Ngspice. I can propose the following logic.

  • If Temp == Tnom don't put the Temp in the parameter list. The global temperature will be uses.
  • If Temp != Tnom put the Temp in the parameter list. The device will be computed at the temperature specified in Temp

from qucs_s.

dwarning avatar dwarning commented on June 27, 2024

Ok, now understood.
The hicum2 version 3.0.0 has no external temp parameter and get the circuit temperature in the va code.
I changed the symbol colour belong your guideline:
Bildschirmfoto vom 2023-11-25 18-08-00

A bit off-topic: Can I prevent the retraces in the plots? In ngspice we have the retraceplot as a plot option.

from qucs_s.

zergud avatar zergud commented on June 27, 2024

A bit off-topic: Can I prevent the retraces in the plots? In ngspice we have the retraceplot as a plot option.

can you explain in detail? give an example
i am not very familiar with ngpice

from qucs_s.

ra3xdh avatar ra3xdh commented on June 27, 2024

Can I prevent the retraces in the plots? In ngspice we have the retraceplot as a plot option

It is not bug, but rather a feature. Qucs plotting engine cannot understand that you are using sweep in a nested loop in DC ... TEMP statement. When you are using parameter sweep simulation type Qucs-S creates some supplementary files. These files are needed to tell the plotting engine that this is a stack of plots but not a single plot. The script simulation type cannot give this information to the plotting engine. I think this cannot be changed without redesign of the plotting engine. But there may be a workaround. Try to sweep the temperature in while loop.

from qucs_s.

dwarning avatar dwarning commented on June 27, 2024

Accepted - there are other things with higher priority.

from qucs_s.

ra3xdh avatar ra3xdh commented on June 27, 2024

Closing as resolved.

from qucs_s.

tomhajjar avatar tomhajjar commented on June 27, 2024

Every Verilog example done in Qucs used "Blue", HTML "000080".

Native Spice components in Qucs-S uses QT "darkRed" or HTML "800000".

QT HTML Colors

from qucs_s.

Related Issues (20)

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.