1 /* XNECVIEW - a program for visualizing NEC2 input and output data 2 * 3 * Copyright (C) 1998-2002, Pieter-Tjerk de Boer -- pa3fwm@amsat.org 4 * 5 * Distributed on the conditions of version 2 of the GPL: see the files 6 * README and COPYING, which accompany this source file. 7 */ 8 9 /* ------------------------------------------------------------------------ */ 10 11 /* some defines: */ 12 13 #define ini_phi 30 /* initial rotation around Z-axis */ 14 #define ini_theta 70 /* initial tilting of Z-axis */ 15 #define ini_zoom 1.0 /* initial zoom-factor */ 16 #define ini_trx 0 /* initial horizontal displacement of origin w.r.t. center of window */ 17 #define ini_try 0 /* initial vertical displacement of origin w.r.t. center of window */ 18 19 #define ini_winsize 500 /* initial size of window (pixels) */ 20 21 #define MAXWIRES 2000 /* maximum number of wires */ 22 #define MAXSURFACES 1000 /* maximum number of surfaces */ 23 #define MAXEXCIS 100 /* maximum number of excitations */ 24 #define MAXLOADS 1000 /* maximum number of loads */ 25 #define MAXNETWS 30 /* maximum number of "networks" (including transmission lines) */ 26 27 #define MAXFREQS 100 /* maximum number of frequencies in the NEC output file */ 28 #define MAXSEGMENTS 600 /* maximum number of segments in the currents data in the NEC output file */ 29 #define MAXPATCHES 600 /* maximum number of surface patches in the NEC output file */ 30 31 #define Axislen 1.1 /* length of axes, compared to largest dimension of the antenna or gain grid */ 32 #define GAINSIZE 3.0 /* ratio between size of gain grid and largest dimension of the antenna */ 33 34 #define C_BG "white" /* color of the background */ 35 #define C_AXIS "black" /* color of the axes */ 36 #define C_WIRE "blue" /* color of the wires */ 37 #define C_SURF "green3" /* color of the front of surfaces */ 38 #define C_BACK "cyan" /* color of the back of surfaces */ 39 #define C_GAIN "red" /* color of the gain pattern */ 40 #define C_SCALE "gray70" /* color of the gain scale */ 41 #define C_EXCI "orange" /* color of wire segment containing excitation */ 42 #define C_LOAD "brown" /* color of loaded wire segment */ 43 #define C_NETW "grey" /* color of networks and transmission lines */ 44 #define C_INACTIVE "gray86" /* color in currents display of segments in which negligibly little current flows */ 45 #define C_EFIELD "red" /* color of electric field vectors */ 46 #define C_HFIELD "green2" /* color of magnetic field vectors */ 47 #define C_POYNTING "yellow2" /* color of Poynting vectors */ 48 #define C_QPOS "cyan3" /* color of positive charge */ 49 #define C_QNEG "magenta" /* color of negative charge */ 50 #define C_GAIN_LIN "red" /* color of gain when mostly linearly polarized (i.e., axial ratio < Polthr ) */ 51 #define C_GAIN_LHCP "violet red" /* color of gain when mostly left-hand circularly polarized */ 52 #define C_GAIN_RHCP "orange" /* color of gain when mostly right-hand circularly polarized */ 53 54 #define NC_phase 64 /* number of different hues for the phase scale; must be a multiple of 4 */ 55 #define Default_anim_update_interval 100 /* time (in milliseconds) between updates of the animation display */ 56 57 #define XFONT "6x10" /* font for text in the on-screen drawing */ 58 #define PSFONT "helvetica" /* font for postscript output (size is derived by scaling the X font) */ 59 60 #define R0 50.0 /* default reference impedance for SWR calculation */ 61 62 #define Polthr (M_SQRT2-1) /* threshold of axial ratio used in polarization-colouring */ 63