Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with CV curve displaying using Xyce simulator (one-point AC analysis) #161

Open
1 task
georgtree opened this issue Sep 20, 2022 · 4 comments
Open
1 task
Labels

Comments

@georgtree
Copy link

georgtree commented Sep 20, 2022

Hello, the issue is contained in attaching schematic file (I had to change .sch to .txt for being able to upload file).
Step to reproduce:

  1. Run simulation with Xyce simulator
  2. Try to display output data {IM(v2)} on 2D cartesian graph using function PlotVs. versus {V1} Then you will get error, but data could be displayed using Tabular Data without PlotVs.

I assume that problem is due to one-point AC simulation, but how I could plot CV graph?

TODO list from @ra3xdh

  • Fix PlotVs emulation to make accept vectors of different length and set of vectors

ac_diode.txt

@georgtree
Copy link
Author

I assume that it's similar issue to this #156

@ra3xdh
Copy link
Owner

ra3xdh commented Sep 20, 2022

Yes, the issue is similar to #156 The XYCE produces a set of 1x1 point plots after the simulation. You can see them if set line type as stars instead of solid line in diagram properties. The plotVs emulation has limitation that prevents from getting a CV-plot. The plot vs accepts only two vectors of the same length like X-Y oscilloscope mode. For C-V it will not work. Because C is not a vector but a set of 1x1 vectors. Only workaround is to use 3-D plot. It will allow you to see the C-V curve.
image

@ra3xdh
Copy link
Owner

ra3xdh commented Sep 20, 2022

I will look how can I fix the PlotVs emulation to make it accept combined vectors. I have added todo list to this issue.

@ra3xdh
Copy link
Owner

ra3xdh commented Jun 4, 2023

The problem with CV-curve plotting has been resolved for Ngspice. Look at #277. It's unclear how to use the similar approach for XYCE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants