MAST???? - PowerPoint PPT Presentation

1 / 77
About This Presentation
Title:

MAST????

Description:

Title: MAST Author: acer Last modified by: acer Created Date: 11/18/2003 3:36:08 AM Document presentation format: Other titles – PowerPoint PPT presentation

Number of Views:83
Avg rating:3.0/5.0
Slides: 78
Provided by: acer5166
Category:
Tags: mast | unit2

less

Transcript and Presenter's Notes

Title: MAST????


1
MAST????
2
MAST??????
  • MAST???????????,????????????,??????????,??????????
    ???????????????,????????,??????????????????????,?
    ???????????????????

3
MAST????????
  • MAST??????????????,?????????????
  • MAST?????????????,???structured??,????unstructured
    ???
  • structured ?????????????,?????????????unstructure
    d?????????????

4
structured?unstructured???
5
????????
  • template isource p m is
  • electrical p,m
  • number is100
  • equations
  • i(p-gtm) is

6
?????????
  • ???????????,???????????
  • ????????????????????????????,?????????????????????
    ????template template_name connection points
    arguments
  • ??????????template?element template???????????????
    ??????????????

7
?????????(?1)
  • template_name????,???????????????????????Connectio
    n points???????,?argument????????????????,????????
    ??????
  • ??????????????????????????,?????????????????,????
    ????????,???????,?????????

8
?????????(?2)
  • ???????????????,?SABER??pin?????????????pin
    ????????????????????????????????,?????????electric
    al p,m?
  • ????????????????????,??????????????,??????????????
    ??????????????????number is

9
?????????(?3)
  • ????????,??????????????,????????????,?????????????
    ?
  • ????????,?????????????????,???????????,?isource???
    ????????????

10
?????????(?4)
  • isource ???????MAST????????????????,??????????????
    ?????????
  • ???????,????p????m???,??????????????,?MAST???????
  • i(p-gtm) is

11
????????
  • ?????????????????isource,???????????????i1,???????
    ????a?b??,?????????2,???????????isource.i1 a b
    is2,???????????
  • isource.i1 a b is2
  • template isource p m is

12
??????????
  • ??????????p????m???,???????is,????????????????????
    ??
  • ?????????????????,????????.sin??????????????????,?
    ???????????????????????????????

13
??????
  • template capacitor p m cap
  • electrical p,m
  • number cap
  • equations
  • i(p-gtm) d_by_dt(cap(v(p)-v(m)))

14
MAST???????
  • ?SABER????????????????x,????x.sin?????????????????
    ,?SABER?????include?????????????x??,???include????
    ????x??,??????????x ??,??????????,????????

15
pin ????
  • ?MAST???,?????????????????????,??????????????????,
    ??????????????????????
  • pin ?????SABER???????????,???????????????,????????
    ????,???????????????????

16
pin ????(1)
  • ????????????????,???cross??,????through???????????
    ???????cross???through???????
  • ?????pin ?????????????????

17
????????
  • unit??,??,?? ??
  • unitrpm,revolutions/minute,argular
    velocity w
  • unit "A","Amperes","Current" i
  • unit "V","Volts","Voltage" v

18
cross ???through??
  • cross ???????,??????????????,cross??????0????????c
    ross???????????
  • through????cross??????????,through????????????????
    ??0????????through??????

19
??????
  • pin identifer across uint1 through unit2 ?
  • pin identifer through unit1 across unit2
  • pin electrical through i across v
  • pin rotational through w across t
  • ????,???????electrical???????,????SABER??????unit.
    sin,??????????????????????????,????????????????,??
    ?????????????????,????????

20
SABER?????
21
?????
  • ???????,??KCL??,????????????,??????????????????
  • ??????????,?????????????,???????????,?????????????
    ??

22
SABER????(?1)
  • SABER??????????????,??????????????????????,???????
    ???????????????????????,??SABER???????????????????
    ??,???????????????

23
SABER????(?2)
24
?????????
  • ??????????,??????????????,??????????????????,?????
    ???????????????????????????,??????????,???????????
    ??

25
??????
  • template vsource p m vs
  • electrical p, m
  • number vs
  • var i ivs
  • equations
  • i(p-gtm) ivs
  • ivs v(p) - v(m) vs

26
????????
  • ?SABER?????????????,?????????????,?????????????,SA
    BER????????????
  • ????????,????????????????????,????????????????????
    ??????

27
????????(?)
  • ???????????,????????(var???),??????????????
  • ??????????????,??????????,????KVL???
  • ????????????,???????????????

28
??????????????
  • var???????????,var???????????????????var??,???????
    ??????????????
  • var unit name, name ...
  • ?????????????
  • var_variable expression1expression2

29
  • template inductor p m ind
  • electrical p, m
  • number ind
  • var i il
  • equations
  • i(p-gtm) il
  • il v(p) - v(m) d_by_dt(indil)

30
?????????
  • ???????,SABER???????????????,?????????????????????
    ????????????????????,???????????,??????????????,??
    ????????????

31
??????MAST????
  • ??????????????????????????,???????,?SABER?????????
    ?,??????,?????

32
???????
33
?????????
34
??????MAST?????
  • ???????????through??,???????????????????,?????????
    ??????,???????ref ?,?????ref????????through???,???
    ???????

35
CCVS??
  • template cvt ci p m k
  • ref i ci
  • electrical p, m
  • number k
  • var i i
  • equations
  • i(p-gtm) i
  • i v(p)-v(m) kci

36
CCVS?????
  • ?????????????ref??,??????????,?????????????through
    ??,??ref???????????,?????????,????????????????

37
ref??????
  • ref ???var????????,???????????????????????????pin?
    ???,????????,??????through???cross??,SABER?????cro
    ss??????,?????????KCL?????through???????var??,???
    ????????????????ref??,???????????????,?????????re
    f??????,??????????

38
ref??????(?)
  • ref ?????????????
  • ref unit pname
  • CCVS???????
  • cvt.1 i(v.1) a b 1k
  • v.1 c d 5
  • v???SABER?????,?i????var ??????????????????,ref???
    ??????,?????????,??????????through????

39
CCVS????????
  • ???????????????????????,???????????????,??????????
    ???????

40
?????????
  • inductor.l1 pp1 mm1 ind1
  • inductor.l2 pp2 mm2 ind2
  • mutind.1 i1il(inductor.l1) i2il(inductor.l2)
    \
  • m0.98sqrt(ind(inductor.l1)ind(inductor.l2))

41
??????
  • template mutind i1 i2 m
  • ref i i1, i2
  • number m
  • equations
  • i1 - d_by_dt(mi2)
  • i2 - d_by_dt(mi1)

?????,??????i1?i2,???????i1?i2?????,??????????????
????? il v(p)-v(m) _by_dt(indi) ??????????????
i1?i2????
42
CCVS??????????
  • ???????????????????ref???,????????????ref??????
  • ????????????????,CCVS?????????????ref??,??????????
    ???????????ref???????
  • ???????????????ref??,??????????ref??,ref??????????
    ?,??????????????

43
????
  • element template capacitor_1 p m cap, ic
  • electrical p, m
  • number cap, icundef
  • val q qc
  • val v vc
  • values
  • vc v(p) - v(m) voltage across cap.
  • qc vc cap charge stored in cap.
  • control_section
  • initial_condition(vc,ic)
  • equations
  • i(p-gtm) d_by_dt(qc) current through cap.

44
???????
  • ??????????element template???template,????????????
    ??
  • ???????????ic,???????????????????????????undef,??S
    ABER????????,??????????,???????ic?????????????,???
    ???????
  • icundef???????????????,?????????????

45
???????(?1)
  • ????????????value?,????????????,val???,??????????
    ????extract?????,??????????????????????????val????
    ????????val???????value???
  • ??foreign?????????????????value????????,??????????
    ???,????????????????,??????????????????????????,?
    ?????????????????????

46
???????(?2)
  • ??????????????????????????,?????????????????,?????
    ?????????????????,????????extract?????,????siglist
    ???????Value??????val???

47
Value????
  • ?value???????????????,????????
  • variable expression
  • value????????,?????????????,????????????????,?????
    ?????????????????????,??????????????????????
  • value??????value.

48
Value????(?)
  • ??????????????????Value????????Value??????????Val
    ue????????,????Value???????????????????Value??????
    ???(???????????),?????????,??????????????

49
val?????
  • val ?????????,?val???????????????
  • val unit name ,name, name, ...
  • val q qc
  • val v v
  • val ??????value??????????unstructured,???????????

50
???
  • ????????????????????????????????,????????control_s
    ection,?????? ??????,???initial_condition(vc,
    ic),??????????????????????vc?

51
initial_condition???
  • ??????,?????????,????????????????
  • initial_condition (variable, value)
  • ??variable?????????????????????,value????????

52
??????
  • ????????????,????????
  • 1)????????????????
  • 2)????????????????????????
  • 3)?????AC???,????????????
  • ??????????????????

53
????????
  • 1 element template vsource_1 p m supply, tran,
    ac
  • 2 electrical p, m header declarations
  • 3 number supply0
  • 4
  • 5 struc start of tran structure
  • 6 number v10, initial voltage
  • 7 v20, voltage at timeinf
  • 8 tau0.000001 time constant
  • 9 tran() end of tran structure
  • 10
  • 11 struc start of ac structure
  • 12 number mag0, AC magnitude
  • 13 phase0 AC phase
  • 14 ac() end of ac structure
  • //////////////////////////////////////////////////
    ////////////////////////////////////////////////
  • 15 start template body
  • 16 var i is local declarations
  • 17 val v vs

???
???
54
????????(?)
  • values
  • 19 if (dc_domain time_domain) If large
    signal
  • 20 if ((tran-gtv10 tran-gtv20)
    tran-gttaugt0)
  • 21 If waveform is defined
  • 22 vstran-gtv1 (tran-gtv2-tran-gtv1)
    (1-exp(-time/tran-gttau))
  • 23 source voltage waveform
  • 24 at current time
  • 25 else otherwise
  • 26 vssupply source voltage supply
  • 27
  • 28
  • 29 else if (freq_mag) or if source is ac
    magnitude
  • 30 vsac-gtmag source voltage magnitude
  • 31
  • 32 else if (freq_phase) or if source is ac
    phase
  • 33 vsac-gtphase source voltage phase
  • 34

?????
V????
???
55
???????????
  • ????????????supply??,????????????????????
  • ?????,????????,?????????????????????????
  • ?????,????????(simvar),?value?????????????

56
MAST???????
  • ?????????????,?????number,enum,string???????????,
    ???????????
  • ??????MAST???,????????????????,????????
  • ?????????????????,?????????????????
  • ????????????????,??????????

??
??
??
??
57
MAST?????????
  • ????????
  • number id1init, id2init
  • e.g
  • number vcc5, dc_input, rload10k,
    cload?????????????,?????????,?????????(argument),
  • (templatename.ref connection point5, 2.7, 10k,
    47n)
  • (templatename.ref connection point cload47n,
    vcc5, dc_input2.7, rload10k)

??
58
MAST???????
  • enum evalue ,evalue idint1,int2
  • e.g.
  • enum_n,_p bjt_type _n
  • ???????????????,?????????????(argument).
  • templatename.ref connection point bjt_type _n

??
59
MAST???????
  • ??????
  • string idinit,init
  • string coretypeiron
  • ?????????,???????????,??????
  • templatename.ref connection point
    coretypeiron

??
60
MAST???????
  • ???????????????,???????(struc),????????(union)???
    ?????????????????????,????????????????????????????
    ?????
  • ????????????,?????????????????????
  • ???????????????????????? ,?????????????

??
??
??
61
??????
  • ??????????,???????
  • struc structurename
  • member
  • member
  • ...
  • id initial_value ,idinitial_value, ...
  • struc??????????,structurename??????,member??????,i
    d???????
  • ??????????????????
  • Vout V1 (V2 - V1)(1 - e ) (-time/t),???tran??
    ?????????3

62
????????
  • struc start of tran structure
  • number v10, initial voltage
  • v20, voltage at timeinf
  • tau0.000001 time constant
  • tran() end of tran structure
  • //////////////////////////////////////////////////
    /////
  • 5 struc
  • 6 number v1 0,
  • 7 v2 0,
  • 8 tau 0.000001
  • 9 tran ()
  • struc
  • number v1, v2, tau
  • tran (0, 0, 0.000001)

63
??????
  • ??????????????????,??????????,???????????????????,
    ???????,??????????????,????????????????,?????????,
    ?????????

??
64
???????
  • ?????????????????union,???????
  • union unionname
  • declaration
  • declaration
  • idinit, init.

65
?????????
  • union source
  • number dc
  • struc
  • number mag
  • number phase
  • ac
  • input1(dc5),input2(ac())
  • ????????????,????????dc?ac??,??ac???????

66
?????????(1)
  • union source
  • number dc
  • struc
  • number mag
  • number phase
  • ac
  • input1,input2
  • union source input1(dc5), input2(ac)
  • ?????????
  • templatename.ref connection pointinput2(ac(mag
    1,phase0))

??
67
????????
?????
?????
????
68
???????
  • SABER??????????????,??????????????????????????????
    ????????,????????,????????????????????????????,???
    ???????

69
????????
??
??
??
?????
??
70
??????????????
  • freq_domain ?????????????1,??????????0?
  • freq_mag ???????????????????????1,????????0?
  • freq_phase ???????????????????????1,????????0?
  • freq ????????????

???
71
??????????????
  • time_domain????????????????,????????????,???????0,
    ????????0?
  • time_init?tr_start????????????????1,?????continuou
    s?alter???time_init????1?tr_start???1?
  • tr_done?time_step_done????????????????????????????
    1?

???
72
???????????
  • time ???????????????????????,????????????????0
  • Next_time ??????????????
  • Step_size ????????????
  • Statistic????????????,??????1?

???
73
??????????????
  • dc_domain???????????????1,???????????0?
  • dc_init???????????????1,?????????????(dc)?dt???dc
    tr????????
  • dc_start??SABER?????????,?????????,????????,?????
    ???dc_init??,???dt???,???????SABER??????,?????dc_i
    nit???1?dc_start???1?
  • dc_done????????????????1?

???
74
MAST????????
  • MAST???????????????????????,????
  • if (condition1) statement1
  • else if (condition2) statement2
  • ...
  • else statementN
  • if else?MAST??????,condition?MAST?????,??????????0
    ,??????,????0?

75
MAST??????
  • ??
  • ???
  • gt ??
  • gt ?????
  • lt ??
  • lt ?????

?????
76
value????
  • ?value??,???????????vs??,????????vs?????,vs???????
    ??,???????vs?????KVL??????????

77
????????????
  • equation
  • i(p-gtm)is
  • is v(p)-v(m)vs

????
Write a Comment
User Comments (0)
About PowerShow.com