abaqus二次开发调用三角函数? 20
abaqus二次开发用写内核文件的时候,需要调用三角函数,用python的方法,直接写import math,调用math.sin和math.cos就不行,各种报错,而且都是不相关的地方,怎么回事
import math
s = mdb.models['Model-1'].ConstrainedSketch(name='__sweep__', sheetSize=3000.0)
g, v, d, c = s.geometry, s.vertices, s.dimensions, s.constraints
s.setPrimaryObject(option=STANDALONE)
s.ArcByCenterEnds(center=(0.0, 0.0), point1=(banjing, 0.0), point2=(banjing*math.sin(0.1),
50), direction=COUNTERCLOCKWISE)
比如这样的,就会报错
File "d:/Program Files/SIMULIA/Abaqus/6.13-1/abaqus_plugins/creatbeam\Creatgongjianmodul.py", line 12
s = mdb.models['Model-1'].ConstrainedSketch(name='__sweep__', sheetSize=3000.0)
^
IndentationError: unexpected indent