34 mutual::mutual () : circuit (4) {
45 nr_double_t o = 2 *
M_PI * frequency;
46 nr_double_t a = k * k - 1;
70 nr_double_t o = 2 *
M_PI * frequency;
71 nr_double_t a = 1 - k * k;
76 matrix
y = matrix (4);
109 #define fState11 0 // flux state
110 #define vState11 1 // voltage state
124 nr_double_t r11, r12, r21, r22, v11, v22, v12, v21;
125 nr_double_t M12 = k *
std::sqrt (l1 * l2);
std::complex< nr_double_t > nr_complex_t
matrix ytos(matrix y, qucs::vector z0)
Admittance matrix to scattering parameters.
matrix real(matrix a)
Real part matrix.
void integrate(int, nr_double_t, nr_double_t &, nr_double_t &)
nr_double_t getPropertyDouble(const char *)
void setD(int, int, nr_complex_t)
void setVoltageSources(int)
static const nr_double_t z0
qucs::matrix calcMatrixY(nr_double_t)
nr_complex_t sqrt(const nr_complex_t z)
Compute principal value of square root.
nr_double_t getJ(int, nr_double_t)
void setE(int, nr_complex_t)
#define M_PI
Archimedes' constant ( )
void allocMatrixMNA(void)
void voltageSource(int, int, int, nr_double_t value=0.0)
void setS(int, int, nr_complex_t)
void setState(int, state_type_t, int n=0)