Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
73
Добавлен:
06.06.2017
Размер:
3.31 Mб
Скачать

from these values. The B field (in Gauss) and the H field (in Oersteds) are available as output variables in transient analysis.

To place a single core in a circuit, use this procedure:

1. Place an inductor in the circuit with these attributes: PART L1

VALUE 1

The value 1 represents the number of turns.

2. Place a K device in the circuit with these attributes:

PART

K1

INDUCTORS

L1

COUPLING

1.0

MODEL

KCORE

Step 2 changes the inductor L1 from a standard linear model to a nonlinear core whose properties are controlled by the model statement. See the circuit file CORE for an example of a single core device and how to do BH loop plots.

To place two magnetically coupled cores in a circuit, use this procedure:

1. Place the first inductor in the circuit with these attributes:

PART

L1

VALUE

Number of primary turns

2. Place the second inductor in the circuit with these attributes:

PART

L2

VALUE

Number of secondary turns

3. Place a K device in the circuit with these attributes:

PART

K2

INDUCTORS

L1 L2

COUPLING

Coupling coefficient between L1 and L2 (0-1.0)

MODEL

KCORE

This procedure creates two coupled cores whose magnetic properties are controlled by the KCORE model statement. See the sample circuit file CORE3 for an example of multiple, coupled core devices.

417

Model statement form

.MODEL <model name> CORE ([model parameters ])

Examples

.MODEL K1 CORE (Area=2.54 Path=.54 MS=2E5)

.MODEL K2 CORE (MS=2E5 LOT=25% GAP=.001)

Model parameters

 

 

Name

Parameter

Units

Default

Area

Mean magnetic cross-section

cm2

1.00

Path

Mean magnetic path length

cm

1.00

Gap

Effective air gap length

cm

0.00

MS

Saturation magnetization

a/m

4E5

Alpha

Mean field parameter

 

2E-5

A

Shape parameter

a/m

25

C

Domain wall flexing constant

 

.001

K

Domain wall bending constant

 

25

Model Equations

Definitions

N= number of turns

Ma = Anhysteretic magnetization

H = Magnetic field intensity

HE = Effective magnetic field intensity

B = Magnetic flux density

M = Magnetization

I = Core current

V = Core voltage

H = (100NI-MGap)/Path

HE = H + ALPHAMa

Ma = MS (coth(HE/A)-A/HE)

Sign = K if dH/dt > 0.0

Sign= - K if dH/dt <= 0.0

Equations

µ = dM/dH = (Ma-M) / ((Sign)(1+C)) + (C / (1+C))dMa/DH B = µ0 (H +M)

L = µ 4 π 1E-9 N2 AREA / PATH V = L dI/dt

To derive model parameters from data sheet values, use the MODEL program.

418 Chapter 22: Analog Devices

Doing it manually requires this procedure:

1.Many data sheets provide the value of Bsat in Gauss. To calculate the required value of MS in units of Amps/meter, multiply the Bsat value in Gauss by 79.577. This yields the required model value for MS in Amps/meter.

2.Run the sample circuit CORE.CIR and adjust the values of A, K, C, and Alpha, to fit the data sheet BH curve. The effect of increasing each parameter is as follows:

Parameter

µ

HC

BR

Alpha

+

 

-

A

-

+

+

K

 

+

+

C

+

-

-

where µ is the slope or permeability, HC is the coercive force value, and BR is the remanence.

419

Laplace sources

Schematic format

PART attribute <name>

Examples

FIL1

LOW1

LAPLACE attribute of LFIOFI, LFIOFV, LFVOFV, LFVOFI <expression>

Example 1/(1+.001*S+1E-8*S*S)

FREQ attribute of LTIOFI, LTIOFV, LTVOFV, LTVOFI <(f1,m1,p1) (f2,m2,p2)...(fn,mn,pn)>

Example

(0.0,1.0,0.0) (1Meg,0.9,-10) (10Meg,0.2,-35)

KEYWORD attribute (for use with FREQ attribute) [[DB | MAG] [DEG | RAD]] | [R_I]

Examples

DB RAD

MAG DEG

R_I

There is no SPICE version of this source. Use the Dependent source, E or G device.

The keywords DB, MAG, DEG, RAD, R_I are interpreted as follows:

DB: Magnitude value is expressed in decibels. (default)

MAG: Magnitude value is true magnitude.

DEG: Degrees value is expressed in degrees. (default)

RAD: Degrees value is expressed in radians.

R_I: The table contains real and imaginary parts.

420 Chapter 22: Analog Devices

Laplace sources are characterized by a linear transfer function. The two basic types are distinguished by the way the transfer function is calculated. The Formula type uses an algebraic expression to describe the transfer function in terms of the complex frequency variable, S. The Table type uses a table of ordered data triplets which describe the transfer function. Each data triplet comprises the frequency, magnitude, and phase of the transfer function.

In AC analysis, the value of the transfer function is computed from the algebraic expression involving S, where S = 2π frequencyj, or obtained by interpolation from the given table.

For DC analysis, the value of the transfer function is computed from the given algebraic expression involving S, where S = 0, or obtained from the table, using the lowest frequency data point supplied.

For transient analysis, it is necessary to first determine the impulse response of the function. The impulse response is obtained by performing an inverse Fourier transform on the transfer function. Then, during the transient run, the output of the source is obtained from the convolution of the waveform at the source input nodes and the impulse response waveform. This allows the source to accurately respond to any input waveform, not just simple, predefined waveforms.

The accuracy of this procedure is limited by the number of time points in the impulse response, or alternatively, by the bandwidth of the function. As a practical matter, no more than 8192 time points should be computed for the impulse response, due to memory and time limitations. The actual number of time points, N, is a logarithmic function of the value of RELTOL.

N = 26 –log10 (RELTOL)

For example, for RELTOL= .001, 512 time points are computed.

As a general rule, Laplace sources will give the best transient analysis results on narrow band functions. Wide band functions, such as the differentiator, f(s)=s, and the integrator, f(s)=1/s, are best modeled by using discrete components. See the sample circuits INT (integrator macro) and DIF(differentiator macro).

421

Formula types

The input and output variables and definition names for the Laplace formula sources are as follows:

Source type

Input

Output

Definition

Current-controlled current source

I

I

LFIOFI

Current-controlled voltage source

I

V

LFVOFI

Voltage-controlled voltage source

V

V

LFVOFV

Voltage-controlled current source

V

I

LFIOFV

Here are some examples:

 

 

 

1/(1+.001*S)

a simple low pass filter.

1/(1+.001*s+1E-8*S*S)

a second order filter.

exp(-pow((C*S*(R+S*L)),.5))

equation of a simple lossy, transmission

 

line. R, L, and C are .define constants.

For illustration, see the circuits L1, L2, and L3.

Table types

In a Table type, the transfer function is defined with a table. The table contains ordered triplets of numbers listing the frequency, magnitude or real value, and phase or imaginary value of the transfer function. The general form of the table entries is:

(F1,X1,Y1) (F2,X2,Y2) ... (FN,XN,YN)

Fi is the i’th frequency value in hertz.

Xi is the i’th magnitude value or the real value.

Yi is the i’th phase value or the imaginary value.

There are six rules for forming the table:

1.Values are separated by commas, triplets are enclosed in parentheses and are separated by spaces.

2.Data triplets must be arranged in order of ascending frequency.

3.The function is constant at X1,Y1 for inputs below F1.

4.The function is constant at XN,YN for inputs above FN.

422 Chapter 22: Analog Devices

5.The function is logarithmically interpolated for frequencies values between the table values.

6.The table should contain one data point at DC or zero frequency.

The table may be entered directly as the parameter string or indirectly using the

.define statement. For illustration, see the circuit P1.

The input variable and output variables and definition names are as follows:

Source type

Input

Output

Definition

Current-controlled current source

I

I

LTIOFI

Current-controlled voltage source

I

V

LTVOFI

Voltage-controlled voltage source

V

V

LTVOFV

Voltage-controlled current source

V

I

LTIOFV

423

Macro

Schematic format

PART attribute <name>

Example 2N5168

FILE attribute <macro circuit name>

Example

SCR

Macros are the schematic equivalents of subcircuits. They are circuit building blocks that have been created and saved to disk for use in other circuits.

To create a macro:

1.Create a circuit. Place grid text on the nodes that you want to make available as macro pins. If you want to pass numeric parameters to the macro, use symbolic names for VALUE attributes and/or model parameter values and declare these names in a .parameters statement. Save the circuit to disk using the desired macro name.

2.Enter a component in the Component library as follows:

Enter the macro file name for the Name field.

Choose a suitable shape.

Choose Macro for the Definition field.

Place pins on the shape by clicking in the Shape drawing area. Name the pins with the same grid text names you placed on the nodes in the macro circuit.

Add optional .MACRO statements to one of the *.LIB files to substitute long parameter lists for shorter names.

424 Chapter 22: Analog Devices

To use a macro:

Select the macro from the Component library. Place it in the circuit that will use it and edit its parameters, if it has any. You can also use an alias which, using a .macro statement, substitutes a short name like 2N5168 for the macro FILE name and a corresponding set of parameters.

The format of the macro command is:

.MACRO <alias> <macro circuit name(parameter list)>

This statement lets you store the parameters that turn a general macro for, say an SCR, into a specific model for a specific part like the 2N5168 SCR, and to access the part with a simple meaningful name, like 2N5168. For more information on the

.MACRO statement see Chapter 20, "Command Statements".

When a macro is placed in a circuit, the program reads the macro circuit file, determines if it has parameters from the .PARAMETERS statement in the macro circuit file and shows these parameters and their default values in the Attribute dialog box. Edit the parameter values from their default values to the those you want.

425

MOSFET

SPICE format

Syntax

M<name> <drain> <gate> <source> <bulk> <model name> [M=<mval>]

+[L=<length>] [W=<width>] [AD=<drainarea>] [AS=<sourcearea>]

+[PD=<drainperiphery>] [PS=<sourceperiphery>]

+[NRD=<drainsquares>] [NRS=<sourcesquares>]

+[NRG=<gatesquares>] [NRB=<bulksquares>]

+[OFF][IC=<vds>[,vgs[,vbs]]]

Example

M1 5 7 9 0 IRF350 L=1.5E-6 W=0.25 OFF IC=25.0,8.0

Schematic format

PART attribute <name>

Example

M1

VALUEattribute

[M=<mval>]

+[L=<length>] [W=<width>] [AD=<drainarea>] [AS=<sourcearea>]

+[PD=<drainperiphery>] [PS=<sourceperiphery>]

+[NRD=<drainsquares>] [NRS=<sourcesquares>]

+[NRG=<gatesquares>] [NRB=<bulksquares>]

+[OFF][IC=<vds>[,vgs[,vbs]]]

Examples

M=20 NRD=10 NRS=25 NRG=5

L=.35u IC=.1, 2.00

L=.4u W=2u OFF IC=0.05,1.00

MODEL attribute <model name>

Examples

IRF350

MM150

426 Chapter 22: Analog Devices

Соседние файлы в папке Micro-Cap v7.1.6
  • #
    06.06.20171.32 Кб65model.CNT
  • #
    06.06.201776.72 Кб67MODEL.HLP
  • #
    06.06.20173.72 Кб65NETHASP.INI
  • #
    06.06.2017450 б64os.dat
  • #
    06.06.2017545 б68READ.ME
  • #
    06.06.20173.31 Mб73RM.PDF
  • #
    06.06.2017226.69 Кб66setup.bmp
  • #
    06.06.201795 б64SETUP.INI
  • #
  • #
    06.06.201749 б65setup.lid
  • #
    06.06.20172.04 Mб65Standard.cmp