43 ecvs::ecvs () : circuit (2) {
46 setVoltageSources (1);
81 int hsize = getHistorySize ();
86 nr_double_t y1 = getPropertyDouble (
"U");
94 Tlast = getHistoryTFromIndex (hsize-1);
97 nr_double_t Tnext = getPropertyDouble (
"Tnext");
99 nr_double_t tdiff = t - Tlast;
106 V = y0 + (y1 - y0) * (tdiff / (Tnext - Tlast));
109 printf (
"ECVS -- t: %e, V: %e\n", t, V);
The externally controlled voltage source component implementation file.
void initSP(void)
placehoder for S-Parameter initialisation function
#define PROP_RNG_STR3(s1, s2, s3)