- 积分
- 2351
- 回帖
- 0
- 西莫币
-
- 贡献
-
- 威望
-
- 存款
-
- 阅读权限
- 40
- 最后登录
- 1970-1-1
该用户从未签到
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
x
Can not execute the following command :
#!preflu2D 11.2
Ipk=[116.3722, 116.3722, 116.3722, 116.3722, 116.3722,116.3722, 116.3722,116.3722]
gama=[0, 0, 0, 0,14.87, 28.18, 54.23,81.47]
speed=[2844.2, 2944.2,3044.2 , 3244.2,3444.2, 3644.2, 4044.2,4314.2]
nmax=len(speed)
TimeMin=0.0
StepNum=120.0
for x in rang(0,nmax)
TimeStep=1/(speed[x]*6.0)
TimeMax=TimeMin+ TimeStep* StepNum
VariationParameter['SPEED'].referenceValue=speed[x]
VariationParameter['IPEAK'].referenceValue=ipk[x]
VariationParameter['GAMA'].referenceValue=gama[x]
ScenarioName='Speed'+str(int(speed[x] ))+'_Ipk'+str(int(Ipk[x]))
Scenario(name=ScenarioName)
startMacroTransaction()
Scenario[ScenarioName].addPilot(pilot=MultiValues(parameter=VariationParameter['TIME'], intervals=[IntervalStepValue(minValue=TimeMin,
maxValue=TimeMax,
stepValue=TimeStep)]))
endMacroTransaction()
Scenario[ScenarioName].solve(projectName=D:/Flux/ELE/TK204-105_T-S.FLU)
##it will take much time to back up the solved file
saveProjectAs('Solved.FLU')
(no code object) at line 0
SyntaxError: ('invalid syntax', ('<string>', 9, 22, 'for x in rang(0,nmax)'))
|
|