コード例 #1
0
 /// <summary>
 /// Update the flux through the primary inductor.
 /// </summary>
 /// <param name="sender">Sender</param>
 /// <param name="args">Arguments</param>
 private void UpdateFlux1(object sender, Inductors.UpdateFluxEventArgs args)
 {
     _conductance     = args.Flux.GetContributions(Factor).Jacobian;
     args.Flux.Value += Factor * _branch2.Value;
 }
コード例 #2
0
 /// <summary>
 /// Update the flux through the secondary inductor.
 /// </summary>
 /// <param name="sender">Sender</param>
 /// <param name="args">Arguments</param>
 private void UpdateFlux2(object sender, Inductors.UpdateFluxEventArgs args)
 {
     args.Flux.Value += Factor * _branch1.Value;
 }