23.01.2015 Views

Download - Wolfram Research

Download - Wolfram Research

Download - Wolfram Research

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3.2 Subcircuit and Device Model Definition 205<br />

InitialGuess<br />

InitialGuess−>{var −>value , var −>value , † † † }<br />

specify initial guesses for the values of behavioral model<br />

variables<br />

Format of the InitialGuess argument.<br />

With the InitialGuess argument, you can specify a set of numerical values that will be used<br />

by NDAESolve (Section 3.7.5) as initial guess for the solution of behavioral model variables. Initial<br />

guesses may be specified for some or all of the variables listed in the corresponding Variables<br />

declaration.<br />

The default value for initial guesses is 0.<br />

When you analyze strongly nonlinear circuits, an educated initial guess helps to speed up<br />

DC calculations with NDAESolve considerably.<br />

The effect of initial guess specifications on the convergence behavior of NDAESolve depends<br />

on the type of circuit equations.<br />

In the example shown below, initial guesses of V and V are specified for the model variables<br />

vdeff and Voltage["A", "C"], respectively. No initial guess is given for Current["A", "C"],<br />

therefore, NDAESolve uses 0 as initial guess for this current.<br />

Model[<br />

Name −> "Diode", Selector −> "DC",<br />

Ports −> {"A", "C"}, Parameters −> {Rs, Is, Global[Vt]},<br />

Variables −> {Voltage["A", "C"], Current["A", "C"], vdeff},<br />

Definition −> Equations[<br />

Voltage["A", "C"] − Rs*Current["A", "C"] − vdeff == 0,<br />

Current["A", "C"] == Is*(Exp[vdeff/Vt] − 1)<br />

],<br />

InitialGuess −> {vdeff −> 0.7, Voltage["A", "C"] −> 0.8}<br />

]<br />

InitialConditions<br />

InitialConditions−>{var −>value , var −>value , † † † }<br />

specify initial conditions for dynamic model variables<br />

Format of the InitialConditions argument.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!