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

Add S-parameter simulation support for Xyce #79

Closed
4 tasks done
ra3xdh opened this issue Mar 6, 2022 · 8 comments
Closed
4 tasks done

Add S-parameter simulation support for Xyce #79

ra3xdh opened this issue Mar 6, 2022 · 8 comments
Assignees
Milestone

Comments

@ra3xdh
Copy link
Owner

ra3xdh commented Mar 6, 2022

The recent version of Xyce support now the S-parameter simulation with .LIN directive. It's need to provide user an automated way for this simulation type. Currently the S-parameter simulation may be used only with XYCE-script simulation type.

  • Add support for 50-ohm port devices
  • Implement conversion of the S-parameter simulation in the .AC+.LIN netlist entry.
  • Modify the XYCE STD format parser to recognize complex numbers Re() and Im()
  • Add examples

image

@ra3xdh
Copy link
Owner Author

ra3xdh commented Mar 12, 2022

I have implemented basic support of the S-parameter analysis with Xyce on the current branch. I would ask all interested persons to test this new feature. The attached screenshot illustrates how it works.

Known issues

  • Xyce STD parser cannot reassemble the Re() and Im() parts of the simulation variable and plots them independently.
  • The Qucs functions stoy(), stoz() etc. will not work. The Xyce puts the Y and Z matrix to the output.

image

@ra3xdh ra3xdh added this to the 0.0.24 milestone Mar 12, 2022
@ra3xdh ra3xdh pinned this issue Mar 12, 2022
@MikeBrinson
Copy link
Collaborator

MikeBrinson commented Mar 13, 2022 via email

@ra3xdh
Copy link
Owner Author

ra3xdh commented Mar 13, 2022

Hello Mike,
The Y and Z parameters are presented in the dataset by default. It's not need to add them as the probes separately. Look at the attached screenshot. It's possible to select and plot S,Y, or Z parameters set.

image

@ra3xdh
Copy link
Owner Author

ra3xdh commented Mar 13, 2022

I have also implemented reassembling of the complex numbers in the Xyce STD output files. Now the S-parameter simulation results could be plotted on Smith and polar diagrams.
image

@MikeBrinson
Copy link
Collaborator

MikeBrinson commented Mar 13, 2022 via email

@ra3xdh
Copy link
Owner Author

ra3xdh commented Mar 13, 2022

Hello Mike,

in general it will be needed to implement the spice_netlist() method for Qucs microwave devices. Then the Qucs schematic containing RF devices could be opened and simulated with Xyce. But conversion of the Qucs microstrip devices into the SPICE netlist entries may not be a trivial task. There is no direct replacement for such devices in SPICE. It will be needed to somehow convert the Qucs devices into SPICE T and O(LTRA) devices or use equivalent circuits.

But nevertheless I am inclined to include the S-parameter analysis with Xyce in the next release. At least it will allow to simulate the circuit containing semiconductor devices and lumped (RCL) components.

Regards,
Vadim

@MikeBrinson
Copy link
Collaborator

MikeBrinson commented Mar 14, 2022 via email

tvrusso added a commit to tvrusso/Xyce_qucs-s_Examples that referenced this issue Mar 14, 2022
Per ra3xdh/qucs_s#79, qucs-s is getting support for Xyce S parameter
extraction.  This example demonstrates that usage.

At this time, it will only work in qucs-s from the "current" branch,
as the capability is not in any released versions.  It is slated for
support in qucs-s 0.0.24.
ra3xdh/qucs_s#79
tvrusso added a commit to tvrusso/Xyce_qucs-s_Examples that referenced this issue Mar 14, 2022
This example duplicates the circuit in
Xyce/Xyce_Regression/Netlists/Output/SPARAMS/sparams-ts1-3port.cir.

ra3xdh/qucs_s#79
@ra3xdh
Copy link
Owner Author

ra3xdh commented Jul 1, 2022

The S-parameter simulation with Xyce is available in the 0.0.24 release https://github.com/ra3xdh/qucs_s/releases/tag/0.0.24

@ra3xdh ra3xdh closed this as completed Jul 1, 2022
@ra3xdh ra3xdh added the RF label Jul 1, 2022
@ra3xdh ra3xdh unpinned this issue Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants