34 twistedpair::twistedpair () : circuit (4) {
35 type = CIR_TWISTEDPAIR;
47 nr_double_t p = 2 *
z0 +
zl;
48 nr_double_t
n = 2 *
z0 -
zl;
80 if (d != 0.0 && rho != 0.0 &&
len != 0.0) {
82 nr_double_t g1 =
M_PI *
sqr (d / 2) / rho /
len;
119 nr_double_t delta, rout, rin, ad, ac, l0;
122 if (frequency > 0.0) {
125 if (rin < 0.0) rin = 0.0;
128 ac = (rho *
M_1_PI) / (rout * rout - rin * rin) /
zl;
154 q = 0.25 + 0.001 * p * p;
155 q = 0.25 + 0.0004 * p * p;
156 ereff = 1.0 + q * (er - 1.0);
nr_double_t calcLoss(nr_double_t)
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
nr_complex_t coth(const nr_complex_t z)
Compute complex hyperbolic cotangent.
nr_double_t getPropertyDouble(const char *)
void calcNoiseSP(nr_double_t)
void setVoltageSources(int)
nr_complex_t atan(const nr_complex_t z)
Compute complex arc tangent.
void calcPropagation(nr_double_t)
#define K
Absolute 0 in centigrade.
static const nr_double_t z0
nr_complex_t acosh(const nr_complex_t z)
Compute complex arc hyperbolic cosine.
void initSP(void)
placehoder for S-Parameter initialisation function
int getSize(void)
Get the number of ports the circuit element has.
nr_complex_t sqr(const nr_complex_t z)
Square of complex number.
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)
void calcNoiseAC(nr_double_t)
void allocMatrixMNA(void)
#define M_1_PI
Inverse of Archimedes' constant ( )
#define C0
speed of light in vacuum ( )
void voltageSource(int, int, int, nr_double_t value=0.0)
#define deg(x)
Convert radian to degree.
matrix eye(int rs, int cs)
Create identity matrix with specified number of rows and columns.
nr_complex_t exp(const nr_complex_t z)
Compute complex exponential.
void setS(int, int, nr_complex_t)
matrix conj(matrix a)
Conjugate complex matrix.
nr_double_t calcLength(void)
void setCharacteristic(const char *, nr_double_t)
void saveCharacteristics(nr_double_t)
#define Z0
Wave impedance in vacuum ( )
#define PROP_NO_SUBSTRATE