• WARNING: Tube/Valve amplifiers use potentially LETHAL HIGH VOLTAGES.
    Building, troubleshooting and testing of these amplifiers should only be
    performed by someone who is thoroughly familiar with
    the safety precautions around high voltages.

LTspice hierarchical ultralinear OPT

I want to share an LTspice hierarchical circuit I made for an ultralinear push-pull output transformer. The zip file contains two working examples (Mullard 5-10 and 5-20). Put 'sub_opt_pp.asc' and 'sub_opt_pp.asy' in the same directory as your amplifier schematic. Then change the PARAMS to match the specs of your transformer. Please let me know if you find an error, or a better way to model the parasitics.

note: This file contains an error, use new file from post 9.

SE transformer in post 15
CFB transformer in post 16.
Hammond 125A in post 26
Leak-8615 in post 28

Ite
 

Attachments

  • UltraLinearOutputTransformer_LTspice.zip
    15.4 KB · Views: 388
Last edited:
In the model, L1 and R3 are both proportional to (1-Xul)^2, but in the next tap, R4 is proportional to Xul and L2 is proportional to Xul^2. Just wondering how those are worked out. I was surprised they are not symmetric.
 

Attachments

  • Screenshot 2021-11-17 at 23.08.53.png
    Screenshot 2021-11-17 at 23.08.53.png
    184 KB · Views: 396
@Boyfarrel,
You spotted a mistake, thanks!
The resistors R3 and R9 should indeed be proportional to (1-Xul), and NOT to (1-Xul)^2.
I will try to upload an improved version later.

@Potentialyincorrect
The modeling of the transformer is not different from the usual practice. The hierarchical approach just makes it a lot easier. Just put the transformer on your schematic, put in the numbers you can want, or numbers you measured from a real transformer. No need to put a bunch of coupled inductors with odd values you have to calculate on the schematic anymore.
 
Updated! Thanks.

In your Mullard circuits I see a really nice feature in LTSpice that I didn't know existed. How did you get LTSpice to display the DC voltage at various points in the circuit? (I am using LTSpice on macOS so maybe it is a feature I don't see in UI)
 
run a transient analysis.
hoover with the cursor over a signal till you see the oscilloscoop probe.
press RightMouseButton
choose [88 place .op Data Label]

formatting:
RightMouseButton on the label
change $ to
- round($*10)/10 for 1 digits
- round($*100)/100 for 2 digits etc
 
One question.
In which way is possible to have a model of a OT when each one of them has a proper parasitic that is not similar to the thousands of others?
For a low and high frequency; in the middle we can arrange ( less or more)
I mean about manifacturer, Z, dimensions, topology, etc

So I have to design a circuit then I simulate it, maybe it will run, but it is out of the real world, at the end.


Walter
 
Hi Walter,

You are clearly a spice skeptic.
Spice is always an approximation of reality. The results of simulations are as good as the models. The tubes models are not perfect either, but close enough. Same for transformer models .
A lot of people use spice to model there amplifier as a first step before building it. Even if the models are not 100% correct, it can give valueable insight in your circuit.
My transformer model uses the hierarchical feature of LTspice that makes it so much easier to model a transformer. Just enter a few parameters from the transformer spec-sheet (Impedance, inductance, resistance, K-factor (depends on leackage inductance), parasitic capacitance and you're ready to go.
With spice you can perform experiments like: what happens if UL not 43% but 30%. Or what happens if I use a 4300 Ohm transformer instead of a 3500 Ohm one. With the hierarchical model just change a parameter from UL=43 to UL=30 etc.

conclusion: a model is not perfect, but most of the time good enough. Nothing prevents you from measuring your transformer and adapting the model to give a better fit. Perhaps someone with experience in this area can improve the transformer model?

Ite

cumbersome old-school transformer modeling from the time that LTspice did't support hierarchical models:
http://www.diyaudio.com/forums/tubes-valves/181578-spice-transformer-model-spreadsheet.html