Ejemplo n.º 1
0
        /// <summary>
        /// Do temperature-dependent calculations
        /// </summary>
        /// <param name="ckt"></param>
        public override void Temperature(Circuit ckt)
        {
            CapacitorModel model = Model as CapacitorModel;

            if (model == null)
            {
                return;
            }

            /* Default Value Processing for Capacitor Instance */
            if (!CAPwidth.Given)
            {
                CAPwidth.Value = model.CAPdefWidth;
            }
            if (!CAPcapac.Given)
            {
                CAPcapac.Value =
                    model.CAPcj *
                    (CAPwidth - model.CAPnarrow) *
                    (CAPlength - model.CAPnarrow) +
                    model.CAPcjsw * 2 * (
                        (CAPlength - model.CAPnarrow) +
                        (CAPwidth - model.CAPnarrow));
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Set the model for the capacitor
 /// </summary>
 /// <param name="model"></param>
 public void SetModel(CapacitorModel model) => Model = model;