Show / Hide Table of Contents

Parameters

In many cases, electronic components are described by parameters. Parameters can be set on entities or electronic components, and are passed to the simulation behaviors when they are created.

Example - A diode

A diode is described by the following conventions:

Diode definition

\(i_D = I_{SS}\left(e^\frac{v_A-v_B}{\eta V_T}\right)\)

In the equation that describes the diode, we can see that we have two parameters: \(I_{SS}\) and \(\eta\). The factor \(V_T = \frac{k\cdot T}{q}\) is in fact only determined by constants (the Boltzmann constant \(k\), electron charge \(q\) and temperature \(T\)).

using SpiceSharp.ParameterSets;

namespace SpiceSharpTest.DiodeBehaviors
{
    /// <summary>
    /// Parameters used for our diode model.
    /// </summary>
    public class DiodeParameters : ParameterSet<DiodeParameters>
    {
        /// <summary>
        /// Gets or sets the ideality factor eta.
        /// </summary>
        public double Eta { get; set; }

        /// <summary>
        /// Gets or sets the saturation current.
        /// </summary>
        public double Iss { get; set; }
    }
}
In this article
Back to top Generated by DocFX