Blame view

DOCUMENTATION/USER_GUIDE/Tex/running_with_GUI.tex 16.2 KB
8e35dd7d   Steve Greedy   User Guide
1
2
\chapter{Running the software with the GUI} \label{running_with_GUI}

189467e4   Steve Greedy   First Public Release
3
This chapter should be read in conjunction with the other chapters of this user guide, it 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:
8e35dd7d   Steve Greedy   User Guide
4
5
6
7
8
9
10

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

189467e4   Steve Greedy   First Public Release
11
\noindent
8e35dd7d   Steve Greedy   User Guide
12
13
14
15
16
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
189467e4   Steve Greedy   First Public Release
17
\item create a Spice cable bundle model 
8e35dd7d   Steve Greedy   User Guide
18
19
\end{enumerate}

189467e4   Steve Greedy   First Public Release
20
\noindent
8e35dd7d   Steve Greedy   User Guide
21
22
23
24
25
26
27
28
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
189467e4   Steve Greedy   First Public Release
29
\item Frequency Dependent Spacewire cable with transfer impedance and shield surface impedance loss
8e35dd7d   Steve Greedy   User Guide
30
31
32
33
34
\item Frequency Dependent Overshield with transfer impedance and shield surface impedance loss
\item Frequency Dependent flex cable
\item D connector
\end{enumerate}

189467e4   Steve Greedy   First Public Release
35
\noindent
8e35dd7d   Steve Greedy   User Guide
36
37
38
39
40
41
42
43
44
45
\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
189467e4   Steve Greedy   First Public Release
46
|  |-- BUNDLE
8e35dd7d   Steve Greedy   User Guide
47
48
|  |   |--2_wire.bundle_spec
|  |   `--2_wire.bundle
189467e4   Steve Greedy   First Public Release
49
50
|  `--SPICE
|     |--SYMBOL
8e35dd7d   Steve Greedy   User Guide
51
|     |  |--2_wire.asy
189467e4   Steve Greedy   First Public Release
52
|     |  `--2_wire.sym
8e35dd7d   Steve Greedy   User Guide
53
|     |--2_wire.spice_model_spec
189467e4   Steve Greedy   First Public Release
54
55
|     |--2_wire_Ngspice.lib
|     `--2_wire_LTspice.lib
8e35dd7d   Steve Greedy   User Guide
56
57
|	
|--MOD2
189467e4   Steve Greedy   First Public Release
58
59
60
61
62
63
64
65
66
|  |-- CABLE
|  |-- BUNDLE
|  `-- SPICE
|      `-- SYMBOL
`--MOD3	
   |-- CABLE
   |-- BUNDLE
   `-- SPICE
       `-- SYMBOL	
8e35dd7d   Steve Greedy   User Guide
67
68
\end{verbatim}

189467e4   Steve Greedy   First Public Release
69
70
71
\clearpage

In the file structure 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). MOD2 and MOD3 are shown empty, with only the required sub\-folder structure present.
8e35dd7d   Steve Greedy   User Guide
72
73

\section{Starting the GUI for the Creation of Spice Cable Bundle Models}
189467e4   Steve Greedy   First Public Release
74
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:
8e35dd7d   Steve Greedy   User Guide
75
76
77

%Include SW1_GUI_Main figure here 

189467e4   Steve Greedy   First Public Release
78
\begin{figure}[h!]
8e35dd7d   Steve Greedy   User Guide
79
\centering
189467e4   Steve Greedy   First Public Release
80
\includegraphics[scale=0.60]{./Imgs/SW1_GUI_Main.pdf}
8e35dd7d   Steve Greedy   User Guide
81
82
83
84
85
86
\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.

189467e4   Steve Greedy   First Public Release
87
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. 
8e35dd7d   Steve Greedy   User Guide
88

189467e4   Steve Greedy   First Public Release
89
90
\subsection{Creation of the Cable Model} \label{GUI_Cable_Model}
Select the required cable model type from the 'Cable Model' menu in the toolbar. In figure \ref{fig:SW1_GUI_Selection} a Shielded Twisted Pair model has been selected:
8e35dd7d   Steve Greedy   User Guide
91
92
93
94
95

%Include SW1_GUI_Main figure here 

\begin{figure}[h]
\centering
189467e4   Steve Greedy   First Public Release
96
\includegraphics[width=\textwidth]{./Imgs/SW1_GUI_Selection.pdf}
8e35dd7d   Steve Greedy   User Guide
97
98
99
100
101
102
103
104
\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
189467e4   Steve Greedy   First Public Release
105
\includegraphics[width=\textwidth]{./Imgs/SW1_GUI_Cable_Gen.pdf}
8e35dd7d   Steve Greedy   User Guide
106
107
108
109
110
111
\caption{Cable Model Parameters, General Properties.}
\label{fig:SW1_GUI_Cable_Gen}
\end{figure}

\begin{figure}[h]
\centering
189467e4   Steve Greedy   First Public Release
112
\includegraphics[width=\textwidth]{./Imgs/SW1_GUI_Cable_Mat.pdf}
8e35dd7d   Steve Greedy   User Guide
113
114
115
116
\caption{Cable Model Parameters, Material Properties.}
\label{fig:SW1_GUI_Cable_Mat}
\end{figure}

189467e4   Steve Greedy   First Public Release
117
118
\clearpage

8e35dd7d   Steve Greedy   User Guide
119
120
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.

189467e4   Steve Greedy   First Public Release
121
\begin{figure}[h!]
8e35dd7d   Steve Greedy   User Guide
122
\centering
189467e4   Steve Greedy   First Public Release
123
\includegraphics[width=\textwidth]{./Imgs/SW1_GUI_Cable_fMat.pdf}
8e35dd7d   Steve Greedy   User Guide
124
125
126
127
128
129
\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}.

189467e4   Steve Greedy   First Public Release
130
\begin{figure}[h!]
8e35dd7d   Steve Greedy   User Guide
131
\centering
189467e4   Steve Greedy   First Public Release
132
\includegraphics[width=\textwidth]{./Imgs/SW1_GUI_Cable_fTrans.pdf}
8e35dd7d   Steve Greedy   User Guide
133
134
135
136
\caption{Cable Model Parameters, Frequency Dependent Transfer Impedance Properties.}
\label{fig:SW1_GUI_Cable_fTrans}
\end{figure}

189467e4   Steve Greedy   First Public Release
137
138
139
140
141
\vbox{
Finally the choice of whether to use an approximate analytic formula 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 saved 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}.

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 now be closed.
}
8e35dd7d   Steve Greedy   User Guide
142
143

\begin{figure}[h]
189467e4   Steve Greedy   First Public Release
144
145
146
147
	\centering
	\includegraphics[width=\textwidth]{./Imgs/SW1_GUI_Cable_Laplace.pdf}
	\caption{Cable Model Parameters, the Laplace Solver.}
	\label{fig:SW1_GUI_Cable_Laplace}
8e35dd7d   Steve Greedy   User Guide
148
149
\end{figure}

8e35dd7d   Steve Greedy   User Guide
150
151
\begin{figure}[h]
\centering
189467e4   Steve Greedy   First Public Release
152
\includegraphics[width=\textwidth]{./Imgs/SW1_GUI_Cable_Build.pdf}
8e35dd7d   Steve Greedy   User Guide
153
154
155
156
\caption{Cable Model Parameters, the Build Process Completed.}
\label{fig:SW1_GUI_Cable_Build}
\end{figure}

189467e4   Steve Greedy   First Public Release
157
158
\clearpage

8e35dd7d   Steve Greedy   User Guide
159
160
161
162
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
189467e4   Steve Greedy   First Public Release
163
\includegraphics[width=\textwidth]{./Imgs/SW1_GUI_Cable_STP01.pdf}
8e35dd7d   Steve Greedy   User Guide
164
165
166
167
168
169
\caption{Cable Model Parameters: General Properties.}
\label{fig:SW1_GUI_Cable_STP01}
\end{figure}

\begin{figure}[h]
\centering
189467e4   Steve Greedy   First Public Release
170
\includegraphics[width=\textwidth]{./Imgs/SW1_GUI_Cable_STP02.pdf}
8e35dd7d   Steve Greedy   User Guide
171
172
173
174
175
176
\caption{Shielded Twisted Pair: Material Properties.}
\label{fig:SW1_GUI_Cable_STP02}
\end{figure}

\begin{figure}[h]
\centering
189467e4   Steve Greedy   First Public Release
177
\includegraphics[width=\textwidth]{./Imgs/SW1_GUI_Cable_STP03.pdf}
8e35dd7d   Steve Greedy   User Guide
178
179
180
181
\caption{Shielded Twisted Pair: Transfer Impedance Properties.}
\label{fig:SW1_GUI_Cable_STP03}
\end{figure}

189467e4   Steve Greedy   First Public Release
182
183
\clearpage

8e35dd7d   Steve Greedy   User Guide
184
185
186
187
188
189
190
191
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
189467e4   Steve Greedy   First Public Release
192
193
194
   |-- BUNDLE
   `-- SPICE
       `-- SYMBOL	
8e35dd7d   Steve Greedy   User Guide
195
196
197
\end{verbatim}
}

189467e4   Steve Greedy   First Public Release
198
\subsection{Creation of the Cable Bundle Model} \label{GUI_Cable_Bundle_Model}
8e35dd7d   Steve Greedy   User Guide
199
200
201
202
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
189467e4   Steve Greedy   First Public Release
203
\includegraphics[width=\textwidth]{./Imgs/SW1_GUI_Bundle_Spec01.pdf}
8e35dd7d   Steve Greedy   User Guide
204
205
206
207
\caption{Bundle Model Builder: Selection of Component Cables}
\label{fig:SW1_GUI_Bundle_Spec01}
\end{figure}

189467e4   Steve Greedy   First Public Release
208
209
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}.

8e35dd7d   Steve Greedy   User Guide
210
211
\begin{figure}[h]
\centering
189467e4   Steve Greedy   First Public Release
212
\includegraphics[width=\textwidth]{./Imgs/SW1_GUI_Bundle_Spec02.pdf}
8e35dd7d   Steve Greedy   User Guide
213
214
215
216
\caption{Bundle Model Builder: Placement of Component Cables}
\label{fig:SW1_GUI_Bundle_Spec02}
\end{figure}

8e35dd7d   Steve Greedy   User Guide
217
\begin{figure}[h]
189467e4   Steve Greedy   First Public Release
218
219
220
221
	\centering
	\includegraphics[width=\textwidth]{./Imgs/SW1_GUI_Bundle_Spec03.pdf}
	\caption{Bundle Model Builder: Selection of Component Cables}
	\label{fig:SW1_GUI_Bundle_Spec03}
8e35dd7d   Steve Greedy   User Guide
222
223
\end{figure}

189467e4   Steve Greedy   First Public Release
224
225
226
\clearpage

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 and 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.
8e35dd7d   Steve Greedy   User Guide
227
228
229

\begin{figure}[h]
\centering
189467e4   Steve Greedy   First Public Release
230
\includegraphics[width=\textwidth]{./Imgs/SW1_GUI_Bundle_Spec04.pdf}
8e35dd7d   Steve Greedy   User Guide
231
232
233
234
235
236
\caption{Bundle Model Builder: Ground Plane Inclusion}
\label{fig:SW1_GUI_Bundle_Spec04}
\end{figure}

\begin{figure}[h]
\centering
189467e4   Steve Greedy   First Public Release
237
\includegraphics[width=\textwidth]{./Imgs/SW1_GUI_Bundle_Spec05.pdf}
8e35dd7d   Steve Greedy   User Guide
238
239
240
241
\caption{Bundle Model Builder: Laplace Solver}
\label{fig:SW1_GUI_Bundle_Spec05}
\end{figure}

189467e4   Steve Greedy   First Public Release
242
243
244
245
246
247
248
249
250
251
\begin{figure}[h]
	\centering
	\includegraphics[width=\textwidth]{./Imgs/SW1_GUI_Bundle_Spec06.pdf}
	\caption{Bundle Model Builder: Bundle Build Process Completed}
	\label{fig:SW1_GUI_Bundle_Spec06}
\end{figure}


\clearpage

8e35dd7d   Steve Greedy   User Guide
252
253
254
255
256
257
258
259
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
189467e4   Steve Greedy   First Public Release
260
   |-- BUNDLE
8e35dd7d   Steve Greedy   User Guide
261
262
   |   |--STP.bundle_spec
   |   `--STP.bundle
189467e4   Steve Greedy   First Public Release
263
264
   `-- SPICE
       `-- SYMBOL	
8e35dd7d   Steve Greedy   User Guide
265
266
267
\end{verbatim}
}

189467e4   Steve Greedy   First Public Release
268
269
\subsection{Creation of the Spice Cable Bundle Model} \label{GUI_reating_a_spice_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}.
8e35dd7d   Steve Greedy   User Guide
270
271
272

\begin{figure}[h]
\centering
189467e4   Steve Greedy   First Public Release
273
274
\includegraphics[width=\textwidth]{./Imgs/SW1_GUI_Spice_Spec01.pdf}
\caption{Spice Model Builder: Spice Model Specification Dialogue}
8e35dd7d   Steve Greedy   User Guide
275
276
277
278
279
\label{fig:SW1_GUI_Spice_Spec01}
\end{figure}

\begin{figure}[h]
\centering
189467e4   Steve Greedy   First Public Release
280
\includegraphics[width=\textwidth]{./Imgs/SW1_GUI_Spice_Spec02.pdf}
8e35dd7d   Steve Greedy   User Guide
281
282
283
284
\caption{Spice Model Builder: Spice Model Specification}
\label{fig:SW1_GUI_Spice_Spec02}
\end{figure}

189467e4   Steve Greedy   First Public Release
285
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 specified 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}.
8e35dd7d   Steve Greedy   User Guide
286

189467e4   Steve Greedy   First Public Release
287
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.
8e35dd7d   Steve Greedy   User Guide
288
289
290
291
292
293
294

\vbox{%
\begin{verbatim}
|--MOD1
   |-- CABLE
   |   |--STP.cable_spec
   |   `--STP_wire.cable
189467e4   Steve Greedy   First Public Release
295
   |-- BUNDLE
8e35dd7d   Steve Greedy   User Guide
296
297
   |   |--STP.bundle_spec
   |   `--STP.bundle
189467e4   Steve Greedy   First Public Release
298
299
300
301
302
303
304
   `-- SPICE
       |-- SYMBOL
       |   |--STP.asy
       |   `--STP.sym
       |-- STP.spice_model_spec
       |-- STP_Ngspice.lib
       `-- STP_LTspice.lib	
8e35dd7d   Steve Greedy   User Guide
305
306
307
308
309
\end{verbatim}
}

\begin{figure}[h]
\centering
189467e4   Steve Greedy   First Public Release
310
\includegraphics[width=\textwidth]{./Imgs/SW1_GUI_Spice_Spec03.pdf}
8e35dd7d   Steve Greedy   User Guide
311
312
313
314
\caption{Spice Model Builder: Spice Build Process Completed}
\label{fig:SW1_GUI_Spice_Spec03}
\end{figure}

189467e4   Steve Greedy   First Public Release
315
The process for building all Spice bundle models is similar to that , only differing in the individual description of the different cable geometries.