1 /* atlc - arbitrary transmission line calculator, for the analysis of
2 transmission lines are directional couplers.
4 Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
6 This program is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public License
8 as published by the Free Software Foundation; either package_version 2
9 of the License, or (at your option) any later package_version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
21 Dr. David Kirkby, e-mail drkirkby at ntlworld.com
26 #include "definitions.h"
28 void usage_design_coupler()
30 fprintf(stderr,"\nUsage: design_coupler [-d] [-e] [-q] [-s fstep] [-C] [-D] [-H height] [-L length] [-Z Zo] CF fmin fmax\n");
31 fprintf(stderr,"Version %s\n",PACKAGE_VERSION);
32 fprintf(stderr,"where: \n");
33 fprintf(stderr," CF is the coupling factor required in dB [10 log(P1/P2)]\n");
34 fprintf(stderr," fmin is the minimum frequency (MHz)\n");
35 fprintf(stderr," fman is the maximum frequency (MHz)\n");
36 fprintf(stderr,"Options are:\n");
37 fprintf(stderr," -d Calculate physical dimensions (takes a while).\n");
38 fprintf(stderr," -e Give lots of examples of usage.\n");
39 fprintf(stderr," -q Run in quite mode, giving less output.\n");
40 fprintf(stderr," -s fstep Set the analysis frequency step in MHz.\n");
41 fprintf(stderr," -C Print Copyright, Licencing and Distribution information.\n");
42 fprintf(stderr," -D Calculate physical dimensions to high accuracy (takes a *very* long while).\n");
43 fprintf(stderr," -H height to set the height of the enclosure (defaults to 1 unit).\n");
44 fprintf(stderr," -L length to set the coupler length (m). Defaults to lambda/4.\n");
45 fprintf(stderr," -Q Run in very quite mode, giving just one line of output\n");
46 fprintf(stderr," -Z Zo Set the design impedance (default is 50 Ohms)\n");
47 fprintf(stderr,"coupled port 2 ************************************************ reflected port 3\n\n");
48 fprintf(stderr,"input port 1 ************************************************ output port 4\n");
49 fprintf(stderr," <--------------------L------------------------->\n");
50 fprintf(stderr,"Drive Port 1. The main power comes out from port 4. A fraction (set by the \n");
51 printf("coupling factor) of the forward power comes from port 2. A fraction of the\n");
52 printf("reflected power comes from port 3. All ports must present an impedance Zo.\n");