1 # Created by Octave 3.6.1, Sun Mar 25 17:34:24 2012 UTC <root@t61>
13 # name: <cell-element>
17 -- Function File: [OUT,NITER] = tst_backward_euler(CIRSTRUCT,X,T,TOL,
18 MAXIT,PLTVARS,VERBOSITY,DAE_FUN)
19 Perform a transient simulation of the system described by
20 CIRSTRUCT over the time interval T using the backward Euler
23 The initial value for the state vector is computed by solving a
24 steady state problem at T(1), with starting guess X.
26 TOL and MAXIT are parameters passed to `nls_newton_raphson'.
28 The output OUT will contain the value of the state vector at each
31 The optional parameter VERBOSITY controls the amount of output
34 - if verbosity(1) != 0, information on the progress of the
35 algorithm are output at runtime
37 - if verbosity(2) != 0, the plot of the variables whose names
38 are listed in PLTVARS is produced after the computation
40 For special purposes one may need to pass modified jacobian and
41 residual functions. This can be done via the cell array of function
44 Such functions should have the same input and output parameter
45 list as the default sub-functions TSTBWEFUNJAC0,TSTBWEFUNRES0,
46 TSTBWEFUNJAC,TSTBWEFUNRES.
48 The optional output NITER returns the number of Newton iterations
49 needed to reach convergence.
51 See also: tst_daspk, tst_theta_method, tst_odepkg,
58 # name: <cell-element>
62 Perform a transient simulation of the system described by CIRSTRUCT
67 # name: <cell-element>
74 # name: <cell-element>
78 -- Function File: [OUT] = tst_daspk (CIRSTRUCT,X,T,TOL,MAXIT,
79 PLTVARS,VERBOSITY,DASKOPTS,DAE_FUN);
80 Perform a transient simulation of the system described by
81 CIRSTRUCT over the time interval T using `daspk'.
83 The initial value for the state vector is computed by solving a
84 steady state problem at T(1), with starting guess X.
86 TOL and MAXIT are parameters passed to `nls_newton_raphson'.
88 The output OUT will contain the value of the state vector at each
91 Extra options for `daspk' can be passed as name/value pairs in the
94 The optional parameter VERBOSITY controls the amount of output
97 - if verbosity(1) != 0, information on the progress of the
98 algorithm are output at runtime
100 - if verbosity(2) != 0, the plot of the variables whose names
101 are listed in PLTVARS is produced after the computation
103 For special purposes one may need to pass modified jacobian and
104 residual functions. This can be done via the cell array of function
107 Such functions should have the same input and output parameter
108 list as the default sub-functions TSTBWEFUNJAC0,TSTBWEFUNRES0,
109 TSTBWEFUNJAC,TSTBWEFUNRES.
111 See also: tst_backward_euler, tst_odepkg, tst_theta_method,
112 nls_newton_raphson, daspk
118 # name: <cell-element>
122 Perform a transient simulation of the system described by CIRSTRUCT
127 # name: <cell-element>
134 # name: <cell-element>
138 -- Function File: [OUT, [TOUT]] = tst_odepkg (CIRSTRUCT,X,T,TOL,MAXIT,
139 PLTVARS,SOLVER,ODESTRUCT,VERBOSITY);
140 Perform a transient simulation of the system described by
141 CIRSTRUCT over the time interval T using the `odepkg' DAE solver
144 Pssible values for SOLVER are `ode2r', `ode5r', `oders' or `odesx'.
146 The initial value for the state vector is computed by solving a
147 steady state problem at T(1), with starting guess X.
149 TOL and MAXIT are parameters passed to `nls_newton_raphson'.
151 If one output is requested OUT will contain the value of the state
152 vector at each point of T.
154 If two outputs are requested OUT will contain the value of the
155 state vector at each point of TOUT.
157 Extra options for options for the solver can be passed to the
158 solver via ODESTRUCT.
160 The optional parameter VERBOSITY controls the amount of output
163 - if verbosity(1) != 0, information on the progress of the
164 algorithm are output at runtime
166 - if verbosity(2) != 0, the plot of the variables whose names
167 are listed in PLTVARS is produced after the computation
169 See also: tst_backward_euler, tst_theta_method, tst_daspk,
170 nls_newton_raphson, odepkg, odeset, ode2r, ode5r, oders, odesx
176 # name: <cell-element>
180 Perform a transient simulation of the system described by CIRSTRUCT
185 # name: <cell-element>
192 # name: <cell-element>
196 -- Function File: [OUT,NITER] = tst_theta_method (CIRSTRUCT,X,T,TOL,
197 MAXIT,THETA,PLTVARS, VERBOSITY);
198 Perform a transient simulation of the system described by
199 CIRSTRUCT over the time interval T using the theta-method with
202 The initial value for the state vector is computed by solving a
203 steady state problem at T(1), with starting guess X.
205 TOL and MAXIT are parameters passed to `nls_newton_raphson'.
207 The output OUT will contain the value of the state vector at each
210 The optional parameter VERBOSITY controls the amount of output
213 - if verbosity(1) != 0, information on the progress of the
214 algorithm are output at runtime
216 - if verbosity(2) != 0, the plot of the variables whose names
217 are listed in PLTVARS is produced after the computation
219 The optional output NITER returns the number of Newton iterations
220 needed to reach convergence.
222 See also: tst_backward_euler, tst_daspk, tst_odepkg,
229 # name: <cell-element>
233 Perform a transient simulation of the system described by CIRSTRUCT