Replies: 10 comments
-
Yes, simple MS line could be wrapped in LTRA or Tline model. It's need to provide a way to calculate the SPICE model parameters automatically. It still be unclear how to implement coupled microstrip. |
Beta Was this translation helpful? Give feedback.
-
Coupled lines can be modeled like the lossless TLine using sources and resistors. There are many models available on the web and LTspice. Attached is one I found plus some LTspice examples. The other option is lumped models but they are narrower band. How Qucs-S generates the TLine netlist has to be fixed. There are basically two modes, Z0/Td and Z0/F/NL. Qucs is adding Z0/Td/F/NL...etc to the netlist confusing ngspice which only wants to see Z0/Td or Z0/F/(NL). NL is assumed to be 0.25 if only Z0/F is in the netlist. |
Beta Was this translation helpful? Give feedback.
-
Independent from the mentioned modes should ngspice make the job to set parameters if they are not given in Qucs-s interface. |
Beta Was this translation helpful? Give feedback.
-
I don't know what ngspice will do if the minimum parameters Z0/Td or Z0/F/(NL) are missing but if you put "conflicting" parameters in the netlist, instead of ngspice flagging an error it could generate erroneous data like attached. I think the netlist had the line "Td= ". According to Holger, if you specify Td+F or Td+NL ngspice will choose only Td even if it is "Td=0" or "Td= ". You could ask Holger in link below. Since Qucs-S is creating bad netlists, I would have to hand edit them and use ngspice in terminal mode to see what happens. https://sourceforge.net/p/ngspice/discussion/120973/thread/9bbd3f59c7/?limit=25#5432 |
Beta Was this translation helpful? Give feedback.
-
No errors! ngspice has defaults. But basically qucs-s can't feed ngspice with empty parameter strings. We speak about different things. |
Beta Was this translation helpful? Give feedback.
-
Unless someone makes me a Windows "nightly" release, I'm many weeks behind. You could use this schematic version so Z, Td, F, NL are "visible". Confirmed using "Td= " causes the erroneous data. Td must default to a large number if "Td= ". |
Beta Was this translation helpful? Give feedback.
-
Since "Td=0" is valid entry and "Td= " is a possible entry, what entries for F or F/NL will "disable" Td and only use F or F/NL? |
Beta Was this translation helpful? Give feedback.
-
"Td=0" and "Td=" are misleading to switch on delay specification by F and Nl. |
Beta Was this translation helpful? Give feedback.
-
Every entry variation needs to be tested to confirm the netlist is correct. Users should not be allowed to enter both Td and F/NL. Another option is to have a check for Z0/Td and one for Z0/F/(NL). NL defaults to 0.25 if only F |
Beta Was this translation helpful? Give feedback.
-
Until lossless TLine is fixed in Qucs-S I will work on other Spice compatible transmission line components. Attached is an ideal lossless directional coupler provided by Intusoft decades ago. The model is 50 Ohms but can be scaled to any impedance. Caveats are the coupler has 0 insertion/coupling loss and will generate either very small or very large numbers if terminated in exactly 50 Ohms. Qucs/ngspice could generate errors using dB. I tested the model in Qucs-S and LTspice. |
Beta Was this translation helpful? Give feedback.
-
A Spice lossless TLine can be used to emulate ideal microstrip lines. I converted Vadim's 2016 RF amplifier example to use TLines instead of Qucs Microstrip lines for the impedance matching networks. #94
I didn't have the original schematic so I assumed F=400 MHz. Using Transcalc I converted substrate parameters and dimensions of the microstrip lines to Z0 and Angle@400MHz. I then calculated Td.
Qucs-S is generating the wrong netlist for a lossless TLine using Z0, F and NL so I had to use Z0 and Td. I made a TLine subcircuit and used both the internal library BFP193W and the manufacturers BFP193W parasitic model.
Also attached is some testing of TLines.
BFP193W_amplifier_prj.zip
Transmission_Line_prj.zip
Beta Was this translation helpful? Give feedback.
All reactions