35 vexp::vexp () : circuit (2) {
38 setVoltageSources (1);
52 setE (
VSRC_1, getPropertyDouble (
"U1"));
65 nr_double_t u1 = getPropertyDouble (
"U1");
66 nr_double_t u2 = getPropertyDouble (
"U2");
67 nr_double_t t1 = getPropertyDouble (
"T1");
68 nr_double_t t2 = getPropertyDouble (
"T2");
69 nr_double_t tr = getPropertyDouble (
"Tr");
70 nr_double_t tf = getPropertyDouble (
"Tf");
72 nr_double_t
s = getNet()->getSrcFactor ();
77 else if (t > t1 && t <= t2) {
78 ut = u1 + (u2 - u1) * (1 -
std::exp (-(t - t1) / tr));
82 ut += (u2 - u1) * (1 -
std::exp (-(t - t1) / tr));
83 ut -= (u2 - u1) * (1 -
std::exp (-(t - t2) / tf));
void initSP(void)
placehoder for S-Parameter initialisation function
nr_complex_t exp(const nr_complex_t z)
Compute complex exponential.
#define PROP_NO_SUBSTRATE