next up previous contents
Next: A.12 Selection of External Up: A. Input-Deck Interface to Previous: A.10 Setup for the


A.11 Inquiring Circuit Quantities

This section contains the statements which inquire the circuit parameter quantities. Note the special-purpose device name Circuit as the first parameter of the function outputParam. It refers to a quantity of the complete circuit, and can therefore not be used as a device name any more.

Curve
{
   Response
   {
      aux B = "Vbe";
      aux C = "Vce";
     
      +Y11re = realpart(outputParam("Circuit", "YMatrix", B, B ));
      +Y11im = imagpart(outputParam("Circuit", "YMatrix", B, B ));
      +S21re = realpart(outputParam("Circuit", "SMatrix", C, B ));
      +S21im = imagpart(outputParam("Circuit", "SMatrix", C, B ));
      +C12   =          outputParam("Circuit", "CMatrix", B, C );
   } 
}

The built-in functions realpart and imagpart are used to obtain the real or imaginary part of a complex-valued variable, respectively. The auxiliary variables B and C are used to shorten the parameter list of outputParam.


next up previous contents
Next: A.12 Selection of External Up: A. Input-Deck Interface to Previous: A.10 Setup for the

S. Wagner: Small-Signal Device and Circuit Simulation