Modelica.Electrical.Spice3.Internal.SpiceRoot

Basic records and functions

Information


The package SpiceRoot contains basic records and functions that are needed in SPICE3.

Extends from Modelica.Icons.Package (Icon for standard packages).

Package Content

NameDescription
Modelica.Electrical.Spice3.Internal.SpiceRoot.SpiceRoot SpiceRoot Data for insertion to matrices
Modelica.Electrical.Spice3.Internal.SpiceRoot.useInitialConditions useInitialConditions Initial condition handling
Modelica.Electrical.Spice3.Internal.SpiceRoot.initJunctionVoltages initJunctionVoltages Choice of junction voltage handling
Modelica.Electrical.Spice3.Internal.SpiceRoot.limitJunctionVoltage limitJunctionVoltage Limitation of junction voltage


Modelica.Electrical.Spice3.Internal.SpiceRoot.SpiceRoot

Data for insertion to matrices

Information


This data are to collect intermediate results to be inserted into SPICE-like matrices for linear ssystems of equations.

Modelica definition

record SpiceRoot "Data for insertion to matrices"

  Modelica.SIunits.Current[6] m_pCurrentValues(   start = zeros(6));
  Real[36] m_pResJacobi(      start = zeros(36));
  Real[36] m_pCapJacobi(      start = zeros(36));

end SpiceRoot;

Modelica.Electrical.Spice3.Internal.SpiceRoot.useInitialConditions

Initial condition handling

Information


This function useInitialConditions appoints wether the initial conditions that are given in the description are used or not.

Outputs

TypeNameDescription
Booleanret 

Modelica definition

function useInitialConditions "Initial condition handling"

  output Boolean ret;

algorithm 
  ret := false;

end useInitialConditions;

Modelica.Electrical.Spice3.Internal.SpiceRoot.initJunctionVoltages

Choice of junction voltage handling

Information


This internal function is provided to choose the junction voltage handling which is at the current library version fixed to false.

Outputs

TypeNameDescription
Booleanret 

Modelica definition

function initJunctionVoltages "Choice of junction voltage handling"

  output Boolean ret;
algorithm 

  ret := false;

end initJunctionVoltages;

Modelica.Electrical.Spice3.Internal.SpiceRoot.limitJunctionVoltage

Limitation of junction voltage

Information


This internal function is provided to limit the junction voltage which is at the current library version fixed to false.

Inputs

TypeNameDefaultDescription
Voltagevoltage Input voltage [V]

Outputs

TypeNameDescription
Voltageret[V]

Modelica definition

function limitJunctionVoltage "Limitation of junction voltage"

  input Modelica.SIunits.Voltage voltage "Input voltage";

  output Modelica.SIunits.Voltage ret;

algorithm 
  ret := voltage;

end limitJunctionVoltage;

Automatically generated Fri Nov 12 16:29:47 2010.