TSSP: Input File Description |
The input file contains a description of the solenoid or resonator. All the TSSP programs refer to this file
for input. This page describes the format of the input file.
Updated: 19 Jul 2008
This is a plain ASCII text file which can be created and maintained using an ordinary text editor, or
can be generated by a script according to some recipe.
The file is stored in the working directory with a .in filename extension.
When any of the TSSP programs are run with a system name, say, xyz, the
program will look for an input file xyz.in. Syntax and grammar are intended to be straightforward
and easy to extend as required in order to accomodate more detail as the modeling is refined.
Syntax
We use a straightforward
syntax of white space separated fields, with "quoted text" recognised as a single field. A backslash escapes an end-of-line. A semicolon
introduces a comment which is ignored to end-of-line. Otherwise free format. All text is case insensitive.
Grammar
The file is split into clauses delimited by curly brackets { }, which are contained between BEGIN and END keywords, so
that the overall structure looks like
BEGIN
MODEL { ... }
GROUND_PLANE { ... }
PRIMARY {}
SECONDARY { ... }
TOROID { ...}
... others ...
END
in which the curly brackets contain parameters which describe that part of the resonator. The clauses don't have to
be in the order shown above, and they don't all have to be there. Only the MODEL clause is mandatory, but
it helps if you also have a SECONDARY.
The semantics of each clause are described below.
All dimensions are in metres. All heights are given relative to the ground plane.
The MODEL clause
Syntax: MODEL { ... }
This contains a handful of setup commands relating to the model itself, as follows.
- gran. Sets the spatial resolution of the model. The integer value sets the number of secondary
turns per section of the model. Typically between 1 and 10. The running time of the program is roughly proportional to
(1/gran) cubed. The number of sections used will be close to secondary_turns/gran. Aim to use 150 steps for a quick
result, 300 steps for medium accuracy, and 500 for good accuracy. Not a lot to gain by going for more than 500
as the accuracy starts to become limited by the fixed resolution of the Cext matrix.
For example, a coil of 1176 turns and gran of 4 would result in a model in 294 steps
which is fine for a medium accuracy. Similarly for a coil of 2900 turns, if
you want a quick run at around 150 steps, then 2900/150 is 19.333, so use a
gran of 19 and the actual number of steps will be chosen by the program to be
close to 150.
- feed. This is followed by a keyword base, primary, top, or series.
If the value series is set, then an additional number must follow to indicate the turn number at which the
feed point is inserted. Stay with base and primary for now.
- cext. Apply a multiplying factor to the external capacitance. A value of 1.0 has no effect, and
a value of zero effectively switches off the external capacitance.
- cint. Apply a multiplying factor to the internal capacitance, as above.
The GROUND_PLANE clause
Syntax: GROUND_PLANE { ... }
Contains parameters describing the environment around the coil, not just the groundplane but walls, roof, etc,
as well as extra things such as probe capacitance, load resistance, ground circuit resistance, etc.
- ground_radius. A real number indicating the approximate radius of a circular ground plane
beneath the coil. If you don't have a well defined ground plane then the model will not be able to reliably
predict the operation. The converse is not necessarily true. If your coil is floating in free space, fine,
leave this parameter out, but you'll probably have other things to worry about.
- wall_radius. Distance to the cylindrical conducting wall surrounding the coil. Just put
in the distance to the nearest wall and hope for the best. If you are operating outdoors, leave this parameter out.
- roof_height. Height of the conducting roof above the ground plane. If you are operating outdoors,
leave this parameter out.
- ctop. This is a topload capacitance adjustment value, intended to compensate for the capacitance
of a topload voltage probe. The value may be positive or negative, and is simply added as a lump to the topload
capacitance. The value is in Farads unless it's followed by pf, nf, or uf.
- load. A real number indicating the load resistance to ground from the top of the secondary. Ohms.
The PRIMARY clause
Syntax: PRIMARY { ... }
- radius1. The starting radius of the primary. This should be the radius of the start of
coil, ie the fixed tapping point, usually the innermost turn.
- height1. Height above the ground plane of the start of the primary. This should be the height of
the starting point described by radius1 above.
- radius2. The outermost radius of the primary coil. This is the radius at the end of the final turn
of the coil, not the tapping point.
- height2. The height of the end of the final primary turn.
- turns. A real number indicating the total number of turns on the primary, not the tapping point.
- tap. The tapping point, in turns, counted from the starting point of the primary. If this is left
out, then the whole primary is used.
- cap. The value of the primary tank capacitance, if any. This number may be followed by
pf, nf, or uf to indicate units, otherwise the value is taken to be in Farads.
If this value is left out, the primary is taken to be unresonated, with open terminals.
- resistance. The total AC resistance of the primary circuit. If a cap is
specified then this number must also be provided - we can't model an infinite Q primary.
- conductor. The radius of the primary conductor. Taken to be in metres unless the number
is followed by awg.
- volts. The primary firing voltage. Volts, unless followed by kv or mv.
The SECONDARY clause
Syntax: SECONDARY { ... }
- radius. The radius of the secondary coil.
- height. The height of the start of the secondary winding above the ground plane.
- length. The length of the winding.
- turns. An integer number of turns.
- inductance. The measured inductance of the secondary. Value is in henries unless
followed by mh, uh, or nh. If given, this will
be used instead of the calculated inductance. Useful if you have high mutual coupling to a ground
plane and thus need to reduce the effective inductance below the Nagaoka value.
- use_lundin. This option will cause the given inductance above to be ignored and the
calculated secondary inductance (Lundin formula) will be used instead. Lundin will be used anyway if
inductance is not given.
- conductor. The radius of the wire, taken to be metres unless followed with awg.
- use_palermo. This option will turn on the use of the 'Palermo'
inter-turn capacitance. Makes about 1% difference to resonant frequencies.
- resistance. The measured DC resistance of the winding. If this figure is not given,
then the resistance will be calculated. The calculated value is usually fairly accurate, but this option
is available in case you've done something odd to the coil. It can be used to set the model Q factor
to a measured Q, in order to accomodate arbitrary known losses.
The TOROID clause
Syntax: TOROID { ... }
Parameters which describe a single toroid above the secondary.
- outer_radius. Overall outer radius of the toroid.
- inner_radius. Inner radius of the toroid.
- height. Height of the toroid above the ground plane.
A simple high-Q secondary, outdoors, with no topload, fed via the base,
and with a small adjustment to the top capacitance.
BEGIN
model {
gran 1 ; Going for high accuracy
feed base
}
ground_plane {
ground_radius 2.0 ; A foil sheet
ctop 5.2 pf ; Adjust for scope probe capacitance
}
secondary {
radius 0.295
length 0.8
height 0.15
use_lundin
turns 356
resistance 3.65
conductor 12 awg
}
END
A large Tesla coil, with topload.
BEGIN
model {
gran 5 ; Modest resolution here
feed primary
}
ground_plane {
ground_radius 5
wall_radius 5
roof_height 6
}
toroid {
outer_radius 0.7575 ; Distance from center to outer rim.
inner_radius 0.5575 ; Distance from center to inner rim.
height 2.85 ; Distance of center above ground plane.
}
primary {
radius1 0.275
radius2 0.545
height 1.035 ; A flat primary
turns 9.5 ; The total available turns
tap 8.2 ; The actual tapping point used
cap 68 nF
resistance 0.5 ; Just a guess
conductor 0.4e-2
volts 20 kV
}
secondary {
radius 0.20
length 1.575
height 0.995
inductance 80mH ; Use the measured inductance
turns 939
resistance 11.2 ; Measured resistance at DC.
conductor 0.725e-3
}
END
For practical use, there are a number of input files distributed with the software. When creating an input file
you can usually start with one of these and modify it as required.
Maintainer Paul Nicholson, tssp1611@abelian.org.