/// <summary>Stamps the device characteristics onto the equation system through the registered proxies.</summary> public void Stamp(double gBe, double gBc, double gmf, double gmr, double ibeeq, double ibceq) { gbe_.Stamp(gBe); gbc_.Stamp(gBc); gmf_.Stamp(gmf); gmr_.Stamp(gmr); ibe.Stamp(ibeeq); ibc.Stamp(ibceq); }
/// <summary>Adds entries to the equation system that correspond to inductor with given initial condition.</summary> /// <param name="equations">The equation system.</param> /// <param name="current">The initial current in ampers for the inductor or null for equilibrium current.</param> public void StampInitialCondition(double?current) { if (current.HasValue) { voltage.Stamp(0); // n33.Add(1); // r3.Add(current.Value); currentStamper.Stamp(-current.Value); } else { voltage.Stamp(0); // closed circuit } }
/// <summary>Stamps the device characteristics onto the equation system through the registered proxies.</summary> public void Stamp(double geq, double ieq) { cond.Stamp(geq); current.Stamp(ieq); }