Blame view

DOCUMENTATION/USER_GUIDE/Tex/running_with_GUI.tex 15.6 KB
8e35dd7d   Steve Greedy   User Guide
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
\chapter{Running the software with the GUI} \label{running_with_GUI}

This chapter should be read in conjunction with the other chapters of this user, is does not contain sufficient information to be read as a standalone document. As outlined in the previous chapter there are three processes involved in the creation of any spice cable bundle model. These are:

\begin{enumerate}
\item cable model building process
\item cable bundle model building process
\item spice cable bundle model building process
\end{enumerate}

This chapter will describe how the SACAMOS graphical user interface (GUI) is used to drive these processes as described in chapters \ref{creating_a_cable_model} to \ref{creating_a_spice_cable_bundle_model}, i.e.:

\begin{enumerate}
\item create a cable model
\item create a cable bundle model
\item create a spice cable bundle model 
\end{enumerate}

Aiding the creation of all cable types. Namely:

\begin{enumerate}
\item Frequency Dependent Cylindrical conductor with dielectric
\item Frequency Dependent Coaxial cable with transfer impedance and shield surface impedance loss
\item Frequency Dependent Twinax cable with transfer impedance and shield surface impedance loss
\item Frequency Dependent Twisted pair
\item Frequency Dependent Shielded twisted pair with transfer impedance and shield surface impedance loss
\item Frequency Dependent Spacewire with transfer impedance and shield surface impedance loss
\item Frequency Dependent Overshield with transfer impedance and shield surface impedance loss
\item Frequency Dependent flex cable
\item D connector
\end{enumerate}

\textbf{Please Note:} When using the GUI a strict directory structure must be adhered to. A parent SACAMOS folder must exist that follows the illustrative directory structure outlined in the figure below:

\begin{verbatim}
SACAMOS
|--BIN
|  `--All SACAMOS Executables (command line and GUI)
|--MOD1
|  |-- CABLE
|  |   |--single_wire.cable_spec
|  |   `--single_wire.cable
|	 |-- BUNDLE
|  |   |--2_wire.bundle_spec
|  |   `--2_wire.bundle
|	 |--SPICE
|	 |  |--SYMBOL
|     |  |--2_wire.asy
|			|  `--2_wire.sym
|     |--2_wire.spice_model_spec
|     |--2_wire_NGspice.lib
|			`--2_wire_LTspice.lib
|	
|--MOD2
`--MOD3		
\end{verbatim}

In this schematic more than one MOD folder is shown by way of illustrating the use of multiple cable model libraries. MOD1 shows the case for a; single wire cable model, bundle of 2 single wires, spice model of 2 wire bundle and the associated library (.lib) and symbol files for NGspice (.sym) and LTspice (.asy).

\section{Starting the GUI for the Creation of Spice Cable Bundle Models}
The GUI for the creation of spice cable bundle models is started by running the application 'SW1\_GUI' which will open the main application window shown in figure \ref{fig:SW1_GUI_Main} below:

%Include SW1_GUI_Main figure here 

\begin{figure}[h]
\centering
\includegraphics[scale=0.60]{images/SW1_GUI_Main}
\caption{GUI main application window}
\label{fig:SW1_GUI_Main}
\end{figure}

With the exception of the File menu all items are initially disabled to force the selection or creation of a MOD library. Once selected (or created) the other menu items will become available - note the earlier stated constraint that any MOD library folder structure must sit at the same level as the executable (BIN) folder.

Throughout the following the example of an unshielded twisted pair cable will be used to illustrate the steps necessary to create a spice model of a cable bundle. 

\subsection{Creation of the Cable Model} \label{Cable_Model}
From the 'Cable Model' menu in the toolbar, figure \ref{fig:SW1_GUI_Selection}:

%Include SW1_GUI_Main figure here 

\begin{figure}[h]
\centering
\includegraphics[width=\textwidth]{images/SW1_GUI_Selection}
\caption{Cable Model Selection}
\label{fig:SW1_GUI_Selection}
\end{figure}

This will open the cable designer form, figure \ref{fig:SW1_GUI_Cable_Gen}. On opening, the Cable Name (1) and \textbf{general} properties (2) can be defined, as each property is selected it will be highlighted on the cable \textbf{cross section} (3). Once completed, clicking the \textbf{material} tab allows for the material properties to be defined, figure \ref{fig:SW1_GUI_Cable_Mat}. For constant dielectric properties enter the required values (4), or for frequency dependent properties click the check box (5).

\begin{figure}[h]
\centering
\includegraphics[width=\textwidth]{images/SW1_GUI_Cable_Gen}
\caption{Cable Model Parameters, General Properties.}
\label{fig:SW1_GUI_Cable_Gen}
\end{figure}

\begin{figure}[h]
\centering
\includegraphics[width=\textwidth]{images/SW1_GUI_Cable_Mat}
\caption{Cable Model Parameters, Material Properties.}
\label{fig:SW1_GUI_Cable_Mat}
\end{figure}

If \textbf{Frequency Dependent} properties are selected the dialogue box, figure \ref{fig:SW1_GUI_Cable_fMat} will be presented. Here the properties for the \textbf{inner dielectric} and \textbf{outer dielectric} materials, (6 \& 7), can be set by specifying the rational functions that define the frequency dependence as described in chapter \ref{FD_cable_models}. The filter fitting parameters as described in chapter \ref{Cable_spec_file_formats} are then set in (8), where the greyed values are suggested defaults. Note: not all cable types require all this information, for those types having only a single layer of dielectric or for those not requiring the filter fitting process the appropriate elements of the dialogue will be greyed out.

\begin{figure}[b]
\centering
\includegraphics[width=\textwidth]{images/SW1_GUI_Cable_fMat}
\caption{Cable Model Parameters, Frequency Dependent Material Properties.}
\label{fig:SW1_GUI_Cable_fMat}
\end{figure}

The \textbf{transfer impedance} tab allows the definition of the shield conductor transfer impedance which may be constant (9) or frequency dependent, figure \ref{fig:SW1_GUI_Cable_fTrans}. The latter enabled by selecting the check box (10). Further information on these properties can be found in chapter \ref{FD_cable_models}.

\begin{figure}[h]
\centering
\includegraphics[width=\textwidth]{images/SW1_GUI_Cable_fTrans}
\caption{Cable Model Parameters, Frequency Dependent Transfer Impedance Properties.}
\label{fig:SW1_GUI_Cable_fTrans}
\end{figure}

Finally the choice of whether to use an approximate analytic formulae or the numerical Laplace solver to calculate the per unit length parameters is to be made, figure \ref{fig:SW1_GUI_Cable_Laplace}. Selecting \textbf{Use Laplace} (11) will invoke the Laplace solver and populate the mesh list (12). Selecting a mesh from this list will display the mesh used by the Laplace solver for a specific domain, a decision can then be made whether to \textbf{refine} the mesh (13) or accept the default mesh. If the mesh parameters are changed then the model must be save again and the build process selected to re-build the model. A description of the mesh parameters can be found in chapter \ref{Cable_spec_file_formats}.

\begin{figure}[h]
\centering
\includegraphics[width=\textwidth]{images/SW1_GUI_Cable_Laplace}
\caption{Cable Model Parameters, the Laplace Solver.}
\label{fig:SW1_GUI_Cable_Laplace}
\end{figure}

Once the cable has been completely specified, click \textbf{Save}. If the cable has been specified correctly click save will result in the button being greyed out, any errors will result in an appropriate error message indicating any incorrect or missing parameters. Next click build to generate the cable model which should result in a \textbf{Run Status} dialogue box, figure \ref{fig:SW1_GUI_Cable_Build} indicating that the process has finished correctly. The cable model form can no be closed.

\begin{figure}[h]
\centering
\includegraphics[width=\textwidth]{images/SW1_GUI_Cable_Build}
\caption{Cable Model Parameters, the Build Process Completed.}
\label{fig:SW1_GUI_Cable_Build}
\end{figure}

Figures \ref{fig:SW1_GUI_Cable_STP01}, \ref{fig:SW1_GUI_Cable_STP02} and \ref{fig:SW1_GUI_Cable_STP03} show the completed forms for an example shielded twisted pair cable model, named \textbf{STP}.

\begin{figure}[h]
\centering
\includegraphics[width=\textwidth]{images/SW1_GUI_Cable_STP01}
\caption{Cable Model Parameters: General Properties.}
\label{fig:SW1_GUI_Cable_STP01}
\end{figure}

\begin{figure}[h]
\centering
\includegraphics[width=\textwidth]{images/SW1_GUI_Cable_STP02}
\caption{Shielded Twisted Pair: Material Properties.}
\label{fig:SW1_GUI_Cable_STP02}
\end{figure}

\begin{figure}[h]
\centering
\includegraphics[width=\textwidth]{images/SW1_GUI_Cable_STP03}
\caption{Shielded Twisted Pair: Transfer Impedance Properties.}
\label{fig:SW1_GUI_Cable_STP03}
\end{figure}

The result is the creation of two files, STP.cable\_spec and STP.cable, the specification and model files respectively, within the \textbf{CABLE} folder of the MOD libray.

\vbox{%
\begin{verbatim}
|--MOD1
   |-- CABLE
   |   |--STP.cable_spec
   |   `--STP.cable
 	 |-- BUNDLE
 	 `-- SPICE
 	     `-- SYMBOL	
\end{verbatim}
}

\subsection{Creation of the Cable Bundle Model} \label{Cable_Bundle_Model}
A cable bundle is built from constituent cable models that exist in MOD. To construct a bundle model, click \textbf{Bundle Model} from the menu bar and select Create Bundle to display the \textbf{Cable Bundle Builder} dialogue, figure \ref{fig:SW1_GUI_Bundle_Spec01}. The \textbf{Bundle Name} can be specified here (1). In the \textbf{Cable Component Browser} all the available cables from which to build a bundle will be contained within the Cable folder. Click the \(+\) to expand the selection if necessary. The required cable components can be selected by double clicking them, opening a dialogue box with which to specify the location of the centre of the cable, figure \ref{fig:SW1_GUI_Bundle_Spec02}.

\begin{figure}[h]
\centering
\includegraphics[width=\textwidth]{images/SW1_GUI_Bundle_Spec01}
\caption{Bundle Model Builder: Selection of Component Cables}
\label{fig:SW1_GUI_Bundle_Spec01}
\end{figure}

\begin{figure}[h]
\centering
\includegraphics[width=\textwidth]{images/SW1_GUI_Bundle_Spec02}
\caption{Bundle Model Builder: Placement of Component Cables}
\label{fig:SW1_GUI_Bundle_Spec02}
\end{figure}

Once the position of the cable has been defined, clicking OK will add the cable to the \textbf{Component Cables} list (3) and show the cable cross section (4), figure \ref{fig:SW1_GUI_Bundle_Spec03}.

\begin{figure}[h]
\centering
\includegraphics[width=\textwidth]{images/SW1_GUI_Bundle_Spec03}
\caption{Bundle Model Builder: Selection of Component Cables}
\label{fig:SW1_GUI_Bundle_Spec03}
\end{figure}

From here further cables can be added to the bundle and\/or a ground plane added, figure \ref{fig:SW1_GUI_Bundle_Spec04}. Finally the use of the Laplace solver to calculate inductance and capacitance matrices for the external domain and any overshielded domains (by default, approximate analytic formulae are used), figure \ref{fig:SW1_GUI_Bundle_Spec05}. See chapter \ref{Cable_bundle_spec_file_formats} for further information. As previously described, if the Laplace solver is used the mesh list will be populated the the meshes can be viewed by selecting them from the drop down list and a decision then made whether to refine the mesh or accept the default.

\begin{figure}[h]
\centering
\includegraphics[width=\textwidth]{images/SW1_GUI_Bundle_Spec04}
\caption{Bundle Model Builder: Ground Plane Inclusion}
\label{fig:SW1_GUI_Bundle_Spec04}
\end{figure}

\begin{figure}[h]
\centering
\includegraphics[width=\textwidth]{images/SW1_GUI_Bundle_Spec05}
\caption{Bundle Model Builder: Laplace Solver}
\label{fig:SW1_GUI_Bundle_Spec05}
\end{figure}

Once the bundle has been completely specified, click \textbf{Save}. If the bundle has been specified correctly clicking save will result in the button being greyed out, any errors will result in an appropriate error message indicating any incorrect or missing parameters. Next click build to generate the bundle model which should result in a \textbf{Run Status} dialogue box, figure \ref{fig:SW1_GUI_Bundle_Spec06} indicating that the process has finished correctly. The cable model form can now be closed. The result is the creation of two files, STP.bundle\_spec and STP.bundle within the \textbf{Bundle} folder of the MOD library, the specification and model files respectively.

\vbox{%
\begin{verbatim}
|--MOD1
   |-- CABLE
   |   |--STP.cable_spec
   |   `--STP.cable
 	 |-- BUNDLE
   |   |--STP.bundle_spec
   |   `--STP.bundle
 	 `-- SPICE
 	    `-- SYMBOL	
\end{verbatim}
}

\begin{figure}[h]
\centering
\includegraphics[width=\textwidth]{images/SW1_GUI_Bundle_Spec06}
\caption{Bundle Model Builder: Bundle Build Process Completed}
\label{fig:SW1_GUI_Bundle_Spec06}
\end{figure}

\subsection{Creation of the Spice Cable Bundle Model} \label{Cable_Bundle_Model}
A spice cable bundle is built from a cable bundle model that exists in the MOD library. To construct a spice cable bundle model, click \textbf{Spice Model} from the menu bar and select \textbf{Create Spice Bundle Model} to display the \textbf{Spice Model  Builder} dialogue, figure \ref{fig:SW1_GUI_Spice_Spec01}. The \textbf{Spice Model Name} can be specified here. In the \textbf{Browser} all the available cables from which to build a spice model will be contained within the Bundle folder. Click the \(+\) to expand the selection if necessary. The required bundle can be selected by double clicking the relevant bundle\_spec file, displaying its cross section in the viewer, figure \ref{fig:SW1_GUI_Spice_Spec02}.

\begin{figure}[h]
\centering
\includegraphics[width=\textwidth]{images/SW1_GUI_Spice_Spec01}
\caption{Spice Model Builder: Spice Model Specification Dailogue}
\label{fig:SW1_GUI_Spice_Spec01}
\end{figure}

\begin{figure}[h]
\centering
\includegraphics[width=\textwidth]{images/SW1_GUI_Spice_Spec02}
\caption{Spice Model Builder: Spice Model Specification}
\label{fig:SW1_GUI_Spice_Spec02}
\end{figure}

From here the length of cable represented by the spice model is set (1). An incident field may also be defined here (2), see chapter \ref{creating_a_spice_cable_bundle_model} for further information on the definition of an incident field. In order to include a transfer impedance model (3) the conductor number of the shield of interest must be speci?ed along with the direction of the coupling. The coupling direction is specified as either +1 or -1 where +1 indicates coupling direction from inside the shield to outside and -1 indicates coupling from the outside to the inside, further information can again be found in chapter  \ref{creating_a_spice_cable_bundle_model}.

Once the spice model has been completely specified, click \textbf{Save}. If the spice model has been specified correctly clicking save will result in the button being greyed out, any errors will result in an appropriate error message indicating any incorrect or missing parameters. Next click build to generate the spice model which should result in a \textbf{Run Status} dialogue box, figure \ref{fig:SW1_GUI_Spice_Spec03} indicating that the process has finished correctly. The spice model form can now be closed. The result is the creation of the spice\_model\_spec file, two files defining the spice library files (one each for LTspice and NGspice) in the SPICE folder and their associated symbols in the SYMBOL FOLDER.

\vbox{%
\begin{verbatim}
|--MOD1
   |-- CABLE
   |   |--STP.cable_spec
   |   `--STP_wire.cable
 	 |-- BUNDLE
   |   |--STP.bundle_spec
   |   `--STP.bundle
 	 `-- SPICE
 	    |-- SYMBOL
      |   |--STP.asy
 			|   `--STP.sym
      |-- STP.spice_model_spec
      |-- STP_NGspice.lib
 			`-- STP_LTspice.lib	
\end{verbatim}
}

\begin{figure}[h]
\centering
\includegraphics[width=\textwidth]{images/SW1_GUI_Spice_Spec03}
\caption{Spice Model Builder: Spice Build Process Completed}
\label{fig:SW1_GUI_Spice_Spec03}
\end{figure}

The process for building all spice bundle models is similar to that outline above, only differing in the individual description of the different cable geometries.