34 coaxline::coaxline () : circuit (2) {
35 alpha = beta = zl = fc = 0;
46 nr_double_t ad, ac, rs;
51 "cutoff frequency (%g).\n", frequency,
fc);
84 "ERROR: Inner diameter larger than outer diameter.\n");
86 nr_double_t f1, f2, cl;
89 f2 = cl / (1 * (D -
d));
110 nr_double_t z =
zl /
z0;
111 nr_double_t
y = 1 / z;
125 if (d != 0.0 && rho != 0.0 && l != 0.0) {
127 nr_double_t g =
M_PI *
sqr (d / 2) / rho /
l;
std::complex< nr_double_t > nr_complex_t
#define MU0
magnetic constant of vacuum ( )
matrix real(matrix a)
Real part matrix.
#define T0
standard temperature
void calcNoiseSP(nr_double_t)
nr_complex_t coth(const nr_complex_t z)
Compute complex hyperbolic cotangent.
nr_double_t getPropertyDouble(const char *)
void calcPropagation(nr_double_t)
void setInternalVoltageSource(bool i)
void calcNoiseAC(nr_double_t)
void setVoltageSources(int)
#define K
Absolute 0 in centigrade.
static const nr_double_t z0
void initSP(void)
placehoder for S-Parameter initialisation function
int getSize(void)
Get the number of ports the circuit element has.
nr_complex_t cosh(const nr_complex_t z)
Compute complex hyperbolic cosine.
nr_complex_t sqr(const nr_complex_t z)
Square of complex number.
#define M_PI_2
Half of Archimedes' constant ( )
nr_complex_t sqrt(const nr_complex_t z)
Compute principal value of square root.
nr_complex_t cosech(const nr_complex_t z)
Compute complex argument hyperbolic cosec.
#define M_PI
Archimedes' constant ( )
matrix transpose(matrix a)
Matrix transposition.
void setY(int, int, nr_complex_t)
#define MIN(x, y)
Minimum of x and y.
void allocMatrixMNA(void)
void saveCharacteristics(nr_double_t)
nr_complex_t sinh(const nr_complex_t z)
Compute complex hyperbolic sine.
#define C0
speed of light in vacuum ( )
void voltageSource(int, int, int, nr_double_t value=0.0)
matrix eye(int rs, int cs)
Create identity matrix with specified number of rows and columns.
void setS(int, int, nr_complex_t)
matrix conj(matrix a)
Conjugate complex matrix.
void setCharacteristic(const char *, nr_double_t)
void logprint(int level, const char *format,...)
nr_complex_t log(const nr_complex_t z)
Compute principal value of natural logarithm of z.
#define Z0
Wave impedance in vacuum ( )