不知火舞的被虐|伊人天伊人天天综合网|博洛尼亚天气|任你懆这里只有精品4|久久美日韩精品久久|掌中之物漫画免费阅读观看|0丨d老妇

Abaqus二次開(kāi)發(fā)怎么創(chuàng)建odb才能在odb中顯示梁截面?

瀏覽:2582 回答:4

Abaqus后處理中設(shè)置View->ODB Display Options->Render beam profiles可以顯示梁截面。我用以下代碼創(chuàng)建了一個(gè)圓形梁的odb,卻無(wú)法顯示出梁截面,請(qǐng)各位看一下是什么原因,該怎么解決?謝謝。

from odbAccess import *
from odbMaterial import *
from odbSection import *
from abaqusConstants import *
def createODB():
    odb = Odb(name='FEModel',path='Job-Beam-L-LoadZ-RotAlongXFE.odb')
    part1 = odb.Part(name='part-1', embeddedSpace=THREE_D,type=DEFORMABLE_BODY)
    nodeData = (
        (     1, 0.00000000e+000, 0.00000000e+000, 0.00000000e+000),
        (     2, 2.40000000e+002, 0.00000000e+000, 0.00000000e+000),
        )
    part1.addNodes(nodeData=nodeData,nodeSetName='nset-1')
    sCatL = odb.SectionCategory(name='beam<L Profile>', description='Beam Section, L Profile')
    Right1fraction = sCatL.SectionPoint(number=1, description='Right, (1-fraction = 1.0)')
    Vertex = sCatL.SectionPoint(number=5, description='Vertex')
    Top2fraction = sCatL.SectionPoint(number=9, description='Top, (2-fraction = 1.0)')
    part1.addElements(elementData=((1,1,2),),type='B31',sectionCategory=sCatL)
    instance1 = odb.rootAssembly.Instance(name='part-1-1',object=part1)
    odb.CircularProfile(name='Profile-1', r=5)
    materialName='Material-1'
    odb.Material(name=materialName)
    elset_1 = instance1.ElementSetFromElementLabels(name='elset-1',elementLabels=(1,))
    section_1 = odb.BeamSection(name='Section-1', integration=BEFORE_ANALYSIS, profile='Profile-1', material=materialName)
    odb.rootAssembly.instances['part-1-1'].assignSection(region=elset_1,section=section_1)
    step1 = odb.Step(name='Step-1',description='first analysis step',domain=TIME, timePeriod=1.0)
    analysisTime=0.1
    frame1 = step1.Frame(incrementNumber=1,frameValue=analysisTime)
    uField = frame1.FieldOutput(name='U',description='Displacements', type=VECTOR, validInvariants=(MAGNITUDE,))
    nodeLabelData = (
             1,
             2,
        )
    dispData = (
        ( 5.34825733e+004,-5.62485892e+008, 1.10586118e+009),
        ( 9.93334113e-047, 1.00000000e-033, 1.73200000e-033),
        )
    uField.addData(position=NODAL, instance=instance1,labels=nodeLabelData,data=dispData)
    step1.setDefaultDeformedField(uField)
    odb.save()
    odb.close()
if __name__ == "__main__":
     createODB()


邀請(qǐng)回答 我來(lái)回答

全部回答

(3)
默認(rèn) 最新
小程序用戶(hù)_uw7nZHpI

你沒(méi)有在odb里增加截面,也沒(méi)有指定梁的方向

2022年4月9日
評(píng)論 點(diǎn)贊 1
coran
您好,我也遇到同樣問(wèn)題,寫(xiě)出來(lái)的odb始終顯示不出截面,請(qǐng)問(wèn)后來(lái)如何解決的?感謝
2024年8月8日
評(píng)論 點(diǎn)贊
shennong
什么編的?
2019年11月6日
評(píng)論 1 點(diǎn)贊

沒(méi)解決?試試專(zhuān)家一對(duì)一服務(wù)

換一批
    App下載
    技術(shù)鄰APP
    工程師必備
    • 項(xiàng)目客服
    • 培訓(xùn)客服
    • 平臺(tái)客服

    TOP