Professional Documents
Culture Documents
U ECE 529
1
U ECE 529
U ECE 529
Simulate mechanical/electromechanical
Non-linear reponses
Create models for devices without built-in
models for example, arc resistances
Create harmonic sources
Variable frequency sources
2
U TACS Relationship to ECE 529
I Network Solution
Lecture 6
TACS
Commands
Controlled Sources
U ECE 529
I General Format
Lecture 6
3
U ECE 529
U ECE 529
4
U Pre-Defined TACS Internal ECE 529
I Sources Lecture 6
ZER0 = 0.0
MINUS1 = -1.0
UNITY = PLUS1 = 1.0
PI = FORTRAN Compiler Constant for PI
U ECE 529
5
U ECE 529
I Network Lecture 6
6
U ECE 529
U ECE 529
G(s)
7
U ECE 529
I Limiters Lecture 6
U ECE 529
Non-Windup limiter
Doesnt saturate and backs off limit quickly
Implement with first order transfer function
One pole, no zeros in the function
Additional poles and zeros are ignored
Both windup and non-windup limits occur in practice
Need to understand behavior of the system youre
modeling
8
U ECE 529
U ECE 529
Derivative
Input-IF
Signal selector
Sample and track
Min/Max function
Min/Max tracking
Counter
True RMS
9
U Free-Format FORTRAN ECE 529
I Expressions Lecture 6
I Expressions Lecture 6
Allowed functions:
SQRT, ABS, EXP, LOG, LOG10
SIN, COS, TAN, COTAN (argument in radians)
ASIN, ACOS, ATAN (answer in radians)
SINH, COSH, TANH
TRUNC, MINUS, INVRS
RAD, DEG, NOT
SIGN (-1 for neg. number, +1 for pos. number or zero)
SEQ6, RAN (random number generator)
10
U Free-Format FORTRAN ECE 529
I Expressions Lecture 6
Limitations:
The user is allowed up to 20 levels of nesting.
Can't do SQRT(A**2+B**2) and similar
Can combine functions: SQRT(ABS(INVRS(X) ) )
Does not allow: GOTO, IF, DO, SUBROUTINE, or
FUNCTION
U ECE 529
11
U ECE 529
U ECE 529
12
U ECE 529
U ECE 529
13
U ECE 529
U ECE 529
14
U ECE 529
U ECE 529
15
U ECE 529
U ECE 529
16
U ECE 529
U ECE 529
17
U ECE 529
U ECE 529
18
U RLC Circuit, Network ECE 529
U ECE 529
LDEL
ISER VOUT
LDEL
U
19
U ECE 529
12
0 *10 -3
0 2 4 6 8 10
(file drawrlc.pl4; x-var t) t: VO UT v:VLC
U ECE 529
12
0 *10 -3
0 2 4 6 8 10
(file drawrlc.pl4; x-var t) v:VLC v:LDEL
20