Navigation

Operators and Keywords

Function List:

C++ API

Function File: [out] = tst_daspk (cirstruct,x,t,tol,maxit,pltvars,verbosity,daskopts,dae_fun);

Perform a transient simulation of the system described by cirstruct over the time interval t using daspk.

The initial value for the state vector is computed by solving a steady state problem at t(1), with starting guess x.

tol and maxit are parameters passed to nls_newton_raphson.

The output out will contain the value of the state vector at each point of t.

Extra options for daspk can be passed as name/value pairs in the cellarray daskopts.

The optional parameter verbosity controls the amount of output produced:

  • - if verbosity(1) != 0, information on the progress of the algorithm are output at runtime
  • - if verbosity(2) != 0, the plot of the variables whose names are listed in pltvars is produced after the computation

For special purposes one may need to pass modified jacobian and residual functions. This can be done via the cell array of function handles dae_fun.

Such functions should have the same input and output parameter list as the default sub-functions TSTBWEFUNJAC0,TSTBWEFUNRES0, TSTBWEFUNJAC,TSTBWEFUNRES.

See also: tst_backward_euler,tst_odepkg,tst_theta_method,nls_newton_raphson,daspk.

Package: ocs