Navigation

Operators and Keywords

Function List:

C++ API

ocs

Package for solving DC and transient electrical circuit equations

Select category:

Matrix Assembly Functions

asm_initialize_system
Cycle through the circuit description structure INSTRUCT to build the system matrices A, B, C for the linear and time-invariant part of the system.
asm_build_system
Cycle through the circuit description structure INSTRUCT to build the system matrices A, JAC, RES for the current step of the Newton method.

Netlist Parsing Functions

prs_iff
Parse a netlist in IFF format and produce the system description structure OUTSTRUCT.
prs_spice
Circuit file parser that can interpret a subset of the spice file format.

Time Stepping Functions

tst_backward_euler
Perform a transient simulation of the system described by CIRSTRUCT over the time interval T using the backward Euler algorithm.
tst_daspk
Perform a transient simulation of the system described by CIRSTRUCT over the time interval T using 'daspk'.
tst_theta_method
Perform a transient simulation of the system described by CIRSTRUCT over the time interval T using the theta-method with parameter THETA.
tst_odepkg
Perform a transient simulation of the system described by CIRSTRUCT over the time interval T using the 'odepkg' DAE solver specified in SOLVER.

Non Linear Solvers

nls_stationary
Compute the stationary state solution OUT of the system described by INSTRUCT.
nls_newton_raphson
Solve a non-linear system of equations using the Newton-Raphson method with damping and return the computed solution vector Y.

UTiLity Functions

utl_plot_by_name
Select by name some elements of the state vector of the system described by OUTSTRUCT and plot their dynamics over the time interval T.
utl_sbn_server
Listen for socket connections on port PORT, read a command and return the corresponding output to the socket.

SuBNet Function Library

Mcapacitors
SBN file implementing models for capacitors.
Mcurrentsources
SBN file implementing models for current sources.
Mdiode
SBN file implementing models for diodes.
Minductors
SBN file implementing models for inductors.
Mnmosfet
SBN file implementing standard models for n-mosfets.
Mpmosfet
SBN file implementing standard models for p-mosfets.
Mresistors
SBN file implementing models for resistors.
Mshichmanhodgesmosfet
SBN file implementing Schichman-Hodges MOSFETs model.
Mvoltagesources
SBN file implementing models for voltage sources.
Mpdesympnjunct
INTERNAL FUNCTION:

Package: ocs