Forum Replies Created
The c++ code could read the arrays from a textfile, as done for touchstone.
@Michael: Is it possible to share the c++ code of the touchstone-file-component? I suppose its also written in the same c++ environment?
I created a small example. (see attached .qucs)
It contains only a resistor adjustable by a parameter. However, you should be able to extend it.
It is – however – tedious to initialize the array. Maybe its better to switch to C++. The verilog-A-Compiler creates a c++ file, that could be used as a starting point.
Edit: I only read you post now. Seems you figured out already all the obstacles 🙂
- This reply was modified 3 days, 17 hours ago by Carsten.
I think it worked. Juchee!
for S-param simulations, you would use a “power source”. That has 2 ‘pins’, so it is already differential. Or do you mean the S-param-Block for a touchstone file?
PS: are you working on an MRI RF coil?21. September 2023 at 20:47 in reply to: Model analysis and SPICE parameter extraction with QucsStudio #7722
I’m very impressed with your work.
I also want to do something like that for the coilcraft aircore inductor series. What inductances are you trying to describe?
It should be relatively easy with a c++ or a verilogA model. There are templates in QS and examples on the website.
I also want to interpolate the descriptive values. That way the model could be more useful in a optimization task.29. June 2023 at 23:37 in reply to: Can a company get a receipt for a big donation to Qucsstudio? #7403
I found a paper for you here
Abstract: It is impossible to construct an ideal phase shifter, one whose phase shift
and gain is independent of frequency, using a linear circuit……
Mmmh. My idea is that the solver cannot calculate the transient response. I assume, the solver works by calculating every time step after another based on the source signals and current currents/voltages.
Positive (or negative, not sure about the definition) phase shifts would be impossible, as the solver would need to predict the future.
What would be the response of a step function? The solver would need to transform the input into frequency domain, apply the phase shift and transform it back to time domain. My guess is that this does not comply with the time-step-by-time-step simulation procedure
it does the right thing in an AC simulation
I would guess, that it is not processed in a transient simulation, because an ideal shifter would not make sense here. But I would expect an error message in this case.
AC-Simulation: 90° phase shifter transforms Open condition on the right side to a short on the left side. thats why there should be voltage=0 at Pr1
>> Now you should have y=1 and a=1.
>Should have or do you have it?
I have. All ok here so far.
>> open it again. Add. enter name ‘b’. enter value ‘2’. Apply.
>So you change ‘y’ to ‘b’ and ‘1’ to ‘2’ and then press “Apply” and not “ok”?
No. Add creates a new line. Add name ‘b’ and value ‘2’ in the empty line.
> > name is now automatically change to ‘a’ , which it should not.
> You mean you are still in the dialog and the ‘b’ in the line-edit field is changed to ‘a’?
yes. As soon as I hit apply.
I just confirmed it unter Win10.28. February 2023 at 23:19 in reply to: oscillations in transient sim bc/ of limited numerical resolution? #7112
when I select the table with a click, it would also be nice to scroll it with Arrow up/down and Page up/down.
> A range is applied to the data and to the dependent variable…..
you probably mean _in_dependent variable, right?
>Get the dependent of data with given name. Is usually equivalent to using name directly, unless a range was applied.
I don’t understand this. Could you elaborate please?