s.ConstructionLine(point1=90.0,-100.0),piont2=(0.0,100.0))
3.
加力
例
: a = mdb.models['Model-1'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=ON, bcs=ON,
predefinedFields=ON, connectors=ON)
#---
给一个面加压力
a = mdb.models['Model-1'].rootAssembly
s1 = a.instances['Part-1-1'].faces
side1Faces1 = s1.getSequenceFromMask(mask=('[#4 ]', ), ) #--------
点选面
region = regionToolset.Region(side1Faces=side1Faces1)
mdb.models['Model-1'].Pressure(name='Load-1', createStepName='Step-1',
region=region, distributionType=UNIFORM, field='', magnitude=99.0, amplitude=UNSET)
另例:
先设定的’
Surf-1
’
a = mdb.models['Model-1'].rootAssembly
region = a.instances['Part-1-1'].surfaces['Surf-1']
mdb.models['Model-1'].Pressure(name='Load-3', createStepName='Step-1',
region=region, distributionType=UNIFORM, field='', magnitude=888.0
, amplitude=UNSET
)(
加粉的
可去
掉,有时报错!
)