nanshugong 发表于 2012-6-8 18:17:57

ATP 电弧建模求助

ATP对二次电弧建模时

二次电弧模块的程序如下
MODEL arc2
INPUT   U,I
DATA   L0,IS,
VAR    GS,TS,US,LS,GS1,TE,TR,trip,R2,UR,H
OUTPUTtrip,R2
INIT
   TR:=0
   TE:=0
   trip:=1
ENDINIT
   EXEC
    TR:=TR+timestep            
    IFTR<=0.1 THEN
      LS:=L0
    ELSE
      LS:=10*TR*L0
    ENDIF   
      US:=75*IS**(-0.4)
      GS:=ABS(I)/(US*LS)
      TS:=2.57E-3*(IS**1.4)/LS
      GS1:=GS*(1-EXP(-1*TR/TS))
      R2:=1/GS1
    IF ABS(I)<0.01 THEN
      TE:=TR
    ENDIF
    IF TR-TE>=0 THEN
         H:=1
    ELSE
         H:=0
    ENDIF
      UR:=*(TR-TE)*H*LS*1E3
    IF    U<UR THEN   
          trip:=1
    ENDIF
ENDEXEC
ENDMODEL

但在运行时出现如下错误:
Execution of the program is interrupted in the MODELS section of the data case.
The model in use is identified by the following use pathname:
      MODELS.ARC2
KILL = 682.Attempted explicit division by a zero-valued factor within an expression.
      divisor value = 0.00000000E+00

请各位大侠帮我i改改,本人急用

联系QQ:nan245515165@qq.com。

mingyu 发表于 2012-6-8 18:27:09

TR:=0
TE:=0
→divisor value = 0.00000000E+00?

wlm_28 发表于 2012-6-8 20:14:32

没有研究过呀

furysun 发表于 2012-6-9 23:40:57

你可以参考下论坛里关于一个自动重合闸 一二次电弧建模的一个帖子,具体自己搜索。

nanshugong 发表于 2012-6-11 10:31:53

回复 2# mingyu


         能指点一下吗?我这该怎么改啊

nanshugong 发表于 2012-6-11 10:32:56

回复 4# furysun


   谢了,好的

mingyu 发表于 2012-6-11 13:06:53

回复 5# nanshugong


    就按上面我回复的改啊。

nanshugong 发表于 2012-6-12 11:11:52

回复 2# mingyu


   
file:///C:/Users/hp/AppData/Roaming/Tencent/Users/245515165/QQ/WinTemp/RichOle/DF7E%60M%7D93VFL89P)2~)%7D~ET.jpg

什么意思啊?我看不太明白哎

幽幽草1973 发表于 2013-3-29 15:53:07

求解         我也想知道啊

nygyg 发表于 2013-12-26 09:37:02

推荐看看这个,里面有一个做好的电弧模型
https://tech.cepsc.com/thread-89324-1-1.html
页: [1] 2
查看完整版本: ATP 电弧建模求助

招聘斑竹