23.01.2015 Views

Download - Wolfram Research

Download - Wolfram Research

Download - Wolfram Research

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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3.3 Model Library Management 221<br />

Load two model<br />

definitions from the model<br />

library and store them in<br />

the global subcircuit<br />

database.<br />

List the contents of the<br />

global subcircuit database.<br />

In[2]:= Circuit[<br />

LoadModel["Diode", "Transient", Scope −> Global],<br />

LoadModel["JFET", "AC", Scope −> Global]<br />

] // ExpandSubcircuits;<br />

In[3]:= GlobalSubcircuits[]<br />

Out[3]= Diode, DC SpiceDC Transient Spice,<br />

JFET, AC SpiceAC Noise SpiceNoise<br />

Removing the model definition automatically clears all alias names for the model. Thus, if you<br />

remove the model "JFET/AC", the aliases "JFET/SpiceAC", "JFET/Noise" etc. will be deleted as<br />

well.<br />

Remove the subcircuit<br />

definition "JFET/AC".<br />

Delete all remaining<br />

subcircuit definitions.<br />

In[4]:= RemoveSubcircuit["JFET", "AC"]<br />

Out[4]= Diode, DC SpiceDC Transient Spice<br />

In[5]:= RemoveSubcircuit[All]<br />

Out[5]= <br />

3.3.9 RemoveModelParameters<br />

RemoveModelParameters[name]<br />

RemoveModelParameters[All]<br />

removes the model parameter set name from the global<br />

database<br />

clears the global model parameter database<br />

Command structure of RemoveModelParameters.<br />

RemoveModelParameters allows you to remove individual model parameter sets from the global<br />

parameter database or to clear the database completely. RemoveModelParameters returns the list of<br />

the names of the remaining model parameter sets.<br />

See also: GlobalModelParameters (Section 3.3.5), RemoveSubcircuit (Section 3.3.8).<br />

Examples<br />

Load Analog Insydes.<br />

Define two diode model<br />

parameter sets.<br />

List the contents of the<br />

global parameter database.<br />

In[1]:= Global,<br />

IS −> 1.2*^−12, N −> 1.1],<br />

ModelParameters[Name −> "Diode2", Scope −> Global,<br />

IS −> 1.0*^−14, N −> 1.5]<br />

] // ExpandSubcircuits;<br />

In[3]:= GlobalModelParameters[]<br />

Out[3]= Diode1, Diode2

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

Saved successfully!

Ooh no, something went wrong!