Modelica.Electrical.Spice3.Internal.Diode

Records and functions for diode model

Information

This package Diode contains functions and record with data of the semiconductor diode model.

Extends from Modelica.Icons.InternalPackage (Icon for an internal package (indicating that the package should not be directly utilized by user)).

Package Content

Name Description
Modelica.Electrical.Spice3.Internal.Diode.DiodeModelLineParams DiodeModelLineParams Record for Diode model line parameters
Modelica.Electrical.Spice3.Internal.Diode.DiodeModelLineVariables DiodeModelLineVariables Record for Diode model line variables
Modelica.Electrical.Spice3.Internal.Diode.DiodeParams DiodeParams Record for Diode device parameters
Modelica.Electrical.Spice3.Internal.Diode.DiodeVariables DiodeVariables Variables for the diode model
Modelica.Electrical.Spice3.Internal.Diode.DiodeCalc DiodeCalc Diode variables
Modelica.Electrical.Spice3.Internal.Diode.CurrentsCapacitances CurrentsCapacitances Diode variables
Modelica.Electrical.Spice3.Internal.Diode.diodeModelLineInitEquations diodeModelLineInitEquations Initial precalculation of model line parameters
Modelica.Electrical.Spice3.Internal.Diode.diodeInitEquations diodeInitEquations Initial calculation
Modelica.Electrical.Spice3.Internal.Diode.diodeCalcTempDependencies diodeCalcTempDependencies Temperature dependency calculation
Modelica.Electrical.Spice3.Internal.Diode.diodeNoBypassCode diodeNoBypassCode Calculation of currents
Modelica.Electrical.Spice3.Internal.Diode.diodeCalcAdditionalValues diodeCalcAdditionalValues Calculation of additional values
Modelica.Electrical.Spice3.Internal.Diode.diodeRenameParameters diodeRenameParameters Technology parameter renaming
Modelica.Electrical.Spice3.Internal.Diode.diodeRenameParametersDev diodeRenameParametersDev Temperature calculation
Modelica.Electrical.Spice3.Internal.Diode.diodeRenameParametersDevTemp diodeRenameParametersDevTemp Temperature calculation

Modelica.Electrical.Spice3.Internal.Diode.DiodeModelLineParams Modelica.Electrical.Spice3.Internal.Diode.DiodeModelLineParams

Record for Diode model line parameters

Information

This record contains the model line (also called model card) parameters that are used for the diode model in SPICE3.

Extends from Modelica.Icons.Record (Icon for records).

Modelica.Electrical.Spice3.Internal.Diode.DiodeModelLineVariables Modelica.Electrical.Spice3.Internal.Diode.DiodeModelLineVariables

Record for Diode model line variables

Information

This record contains the model line (also called model card) variables that are used for the diode model in SPICE3.

Extends from Modelica.Icons.Record (Icon for records).

Modelica.Electrical.Spice3.Internal.Diode.DiodeParams Modelica.Electrical.Spice3.Internal.Diode.DiodeParams

Record for Diode device parameters

Information

This record contains the device parameters that are used for the diode model in SPICE3.

Extends from Modelica.Icons.Record (Icon for records).

Modelica.Electrical.Spice3.Internal.Diode.DiodeVariables Modelica.Electrical.Spice3.Internal.Diode.DiodeVariables

Variables for the diode model

Information

This record contains the model variables that are used for the diode model in SPICE3.

Extends from Modelica.Icons.Record (Icon for records).

Modelica.Electrical.Spice3.Internal.Diode.DiodeCalc Modelica.Electrical.Spice3.Internal.Diode.DiodeCalc

Diode variables

Information

This record contains the model variables that are used for the diode model in SPICE3.

Extends from Modelica.Icons.Record (Icon for records).

Modelica.Electrical.Spice3.Internal.Diode.CurrentsCapacitances Modelica.Electrical.Spice3.Internal.Diode.CurrentsCapacitances

Diode variables

Information

This record contains the model variables that are used for the diode model in SPICE3.

Extends from Modelica.Icons.Record (Icon for records).

Modelica.Electrical.Spice3.Internal.Diode.diodeModelLineInitEquations Modelica.Electrical.Spice3.Internal.Diode.diodeModelLineInitEquations

Initial precalculation of model line parameters

Information

Within this function some parameters are initially precalculated from model line parameters.

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
in_pInput record with diode model line parameters

Outputs

NameDescription
out_vOutput record with diode model line variables

Modelica.Electrical.Spice3.Internal.Diode.diodeInitEquations Modelica.Electrical.Spice3.Internal.Diode.diodeInitEquations

Initial calculation

Information

In this function some initial calculations for the diode model are done, especially concerning the handling of the breakthrough voltage.

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
in_pInput record with diode model line parameters

Outputs

NameDescription
out_vOutput record with diode variables

Modelica.Electrical.Spice3.Internal.Diode.diodeCalcTempDependencies Modelica.Electrical.Spice3.Internal.Diode.diodeCalcTempDependencies

Temperature dependency calculation

Information

In this function for the diode model temperature dependencies are calculated using temperature treating functions from the equation package.

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
in_pInput record diode model line parameters
in_dpInput record diode parameters
in_mInput record Model
in_vInput record diode variables

Outputs

NameDescription
out_cOutput record with calculated values

Modelica.Electrical.Spice3.Internal.Diode.diodeNoBypassCode Modelica.Electrical.Spice3.Internal.Diode.diodeNoBypassCode

Calculation of currents

Information

This function diodeNoBypassCode calculates the currents (and the capacitances) that are necessary for the currents to be used in the top-level model.

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
in_pInput record model line parameters for diode
in_dpInput record with parameters for diode
in_cInput record DiodeCalc
in_mInput record model
in_m_mbInit 
in_m_pVoltageValues[2][V]

Outputs

NameDescription
out_ccOutput record with calculated currents and capacitances
m_dCapOutput capacitance [F]

Modelica.Electrical.Spice3.Internal.Diode.diodeCalcAdditionalValues Modelica.Electrical.Spice3.Internal.Diode.diodeCalcAdditionalValues

Calculation of additional values

Information

This function is prepared for additional calculations but it is plain (inputs are written to the outputs) in the actual version of this library.

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
in_vInput record with diode variables
in_pInput record with diode model line parameters
in_dpInput record with diode parameters
in_m_pVoltageValues[2][V]

Outputs

NameDescription
out_vOutput record with diode variables

Modelica.Electrical.Spice3.Internal.Diode.diodeRenameParameters Modelica.Electrical.Spice3.Internal.Diode.diodeRenameParameters

Technology parameter renaming

Information

This function assigns the external (given by the user, e.g., IS) technology parameters to the internal parameters (e.g., m_satCur). It also does the analysis of the IsGiven values.

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
exModelcard with technology parameters
conSpice constants

Outputs

NameDescription
internOutput record diode model line parameters

Modelica.Electrical.Spice3.Internal.Diode.diodeRenameParametersDev Modelica.Electrical.Spice3.Internal.Diode.diodeRenameParametersDev

Temperature calculation

Information

This function assigns the external (given by the user, e.g., AREA) device parameters to the internal parameters (e.g., m_area). It also does the analysis of the IsGiven values.

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
TEMPTemperature [K]
AREAArea factor
ICInitial condition value (VD, not implemented yet
OFFOptional initial condition: false - IC not used, true - IC used, not implemented yet
SENS_AREAFlag to request sensitivity WRT area, not implemented yet

Outputs

NameDescription
devOutput record with calculated diode parameters

Modelica.Electrical.Spice3.Internal.Diode.diodeRenameParametersDevTemp Modelica.Electrical.Spice3.Internal.Diode.diodeRenameParametersDevTemp

Temperature calculation

Information

This function calculates device parameters which are temperature dependent.

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
TEMPTemperature [degC]

Outputs

NameDescription
dev_tempInput record Model
Automatically generated Thu Oct 1 16:07:48 2020.