首页/文章/ 详情

abaqus dload子程序实现复杂移动荷载

1月前浏览575
   

概述

       

abaqus给用于提供了dload子程序用以满足复杂的荷载需求,帖子采用该子程序模拟了四轮小车在平板上移动的运动过程。

几何模型信息

     

模型为四轮车,每个轮子与地面的接触区域为0.1x0.3(不考虑实际情况),车辆在平板居中放置,从右边界启动,向左移动

   

采用C3D8单元划分网格

   

网格横断面

   

车轮经过的区域网格设置加密,车辆中间区域与外部区域网格尺寸设置渐变。其中,车轮经过区域的网格

   

程序

       





!  模拟四个车轮经过桥面,动荷载            SUBROUTINE DLOAD(F,KSTEP,KINC,TIME,NOEL,NPT,LAYER,KSPT,     1 COORDS,JLTYP,SNAME)C      INCLUDE 'ABA_PARAM.INC'C      DIMENSION TIME(2), COORDS (3)      CHARACTER*80 SNAME! FIXED INCRANTMENT TIME IS 0.01S            DOUBLE PRECISION INC_TIME      DOUBLE PRECISION F,DISP            INC_TIM=0.01
!  10s,增量步长为0.01s,总增量步数为1000      !  荷载表达式:F=sin(2*3.14/10)!  桥梁尺寸:桥长40,桥宽6      X=COORDS(1)      Y=COORDS(2)      Z=COORDS(3)
     DISP=TIME(2)*(40/10)            IF((Z>=2.2.AND.Z<=2.5).OR.(Z>=3.5.AND.Z<=3.8))THEN              IF((X>DISP-0.1).AND.X<(DISP))THEN          F=1        ELSEIF((X>DISP-0.1-2).AND.(X<DISP-2))THEN          F=1        ELSE          F=0        ENDIF      ELSE        F=0      ENDIF
     RETURN      END
 


     

来源:有限元先生
ACTAbaqus
著作权归作者所有,欢迎分享,未经许可,不得转载
首次发布时间:2024-09-29
最近编辑:1月前
外太空土豆儿
硕士 我们穷极一生,究竟在追寻什么?
获赞 2粉丝 1文章 48课程 0
点赞
收藏
作者推荐

C3D20 UEL用户自定义单元开发(1)

零概述开发了适用于静力通用计算的三维二十节点(C3D20)的用户自定义单元,在挖孔悬臂梁受剪切荷载算例中,位移计算结果与ABAQUS自带单元保持一致。对比刚度矩阵,与abaqus保持一致。帖子分为两部分-&gt;理论部分-C3D20UEL用户自定义单元开发(1)结果部分-C3D20UEL用户自定义单元开发(2)壹二理论与程序设计C3D20单元节点排布示意图形函数为求解刚度矩阵主程序subroutineKKmartix(KK,coords,DMatx,mcrd,nnode,jelem)INCLUDE&#39;ABA_PARAM.INC&#39;doubleprecisioncoords(mcrd,nnode),dmatx(6,6)doubleprecisionintegerpoint(1,3),wgt(1,3)doubleprecisionKK(3*nnode,3*nnode)doubleprecisionB(6,3*NNODE),J(3,3)doubleprecisiondetJ,kesai,eta,zeta,Coffdoubleprecisionnpxy(3,NNODE)!积分点,二阶单元,设置三个积分点integerpoint(1,1)=0.D0integerpoint(1,2)=0.7745966692D0integerpoint(1,3)=-0.7745966692D0!积分权重wgt(1,1)=0.8888888889D0wgt(1,2)=0.5555555556D0wgt(1,3)=0.5555555556D0B=0.d0J=0.d0detJ=0.d0kesai=0.d0eta=0.d0zeta=0.d0Coff=0.d0npxy=0.d0doi=1,3doii=1,3doiii=1,3kesai=integerpoint(1,i)eta=integerpoint(1,ii)zeta=integerpoint(1,iii)callShapefunction(npxy,detj,kesai,eta,zeta,1coords,mcrd,nnode,J)callCalBmartix(B,npxy)write(6,*)&quot;kk-detj=&quot;,detjCOFF=detJ*wgt(1,i)*wgt(1,ii)*wgt(1,iii)KK=KK+matmul(matmul(transpose(B),DMatx),B)*COFFenddoenddoenddoreturnend形函数对物理坐标(x、y、z)的导数subroutineShapefunction(npxy,detj,kesai,eta,zeta,1coords,mcrd,nnode,J)INCLUDE&#39;ABA_PARAM.INC&#39;integermcrd,nnodedoubleprecisionkesai,eta,zeta,detJdoubleprecisioncoords(mcrd,nnode),npxy(3,nnode)doubleprecisionJ(3,3),NPGHR(3,nnode)doubleprecisioninvJ(3,3)j=0.d0jj=0.d0invJ=0.d0callCalNpLocalCoord(NPGHR,kesai,eta,zeta)J=matmul(NPGHR,transpose(coords))CallCaldetJ(detJ,J)callCalInvjocabin(invJ,detj,j)npxy=matmul(invJ,NPGHR)returnendB矩阵subroutineCalBmartix(B,npxy)INCLUDE&#39;ABA_PARAM.INC&#39;doubleprecisionnpxy(3,20),B(6,60)B=0.d0doi=1,20B(1,3*i-2)=npxy(1,i)B(2,3*i-1)=npxy(2,i)B(3,3*i)=npxy(3,i)B(4,3*i-2)=npxy(2,i)B(4,3*i-1)=npxy(1,i)B(5,3*i-1)=npxy(3,i)B(5,3*i)=npxy(2,i)B(6,3*i-2)=npxy(3,i)B(6,3*i)=npxy(1,i)enddoreturnend形函数对局部坐标(G、H、R)的导数SUBROUTINECalNpLocalCoord(NPGHR,KESAI,ETA,ZETA)INCLUDE&#39;ABA_PARAM.INC&#39;DOUBLEPRECISIONNPGHR(3,20)DOUBLEPRECISIONKESAI,ETA,ZETADOUBLEPRECISIONPG,PH,PRDOi=1,20CALLNPG(PG,KESAI,ETA,ZETA,I)CALLNPH(PH,KESAI,ETA,ZETA,I)CALLNPR(PR,KESAI,ETA,ZETA,I)NPGHR(1,i)=PGNPGHR(2,i)=PHNPGHR(3,i)=PRENDDORETURNEND-------------------------!形函数对局部坐标G的导数SUBROUTINENPG(PG,G,H,R,NINDEX)DOUBLEPRECISIONG,H,R,PGINTEGERNINDEXIF(NINDEX.EQ.1)THENPG=-0.125*(-1)*(1-H)*(1-R)*(2+G+H+R)1-0.125*(1-G)*(1-H)*(1-R)*(1)ELSEIF(NINDEX.EQ.2)THENPG=-0.125*(1)*(1-H)*(1-R)*(2-G+H+R)1-0.125*(1+G)*(1-H)*(1-R)*(-1)ELSEIF(NINDEX.EQ.3)THENPG=-0.125*(1)*(1+H)*(1-R)*(2-G-H+R)1-0.125*(1+G)*(1+H)*(1-R)*(-1)ELSEIF(NINDEX.EQ.4)THENPG=-0.125*(-1)*(1+H)*(1-R)*(2+G-H+R)1-0.125*(1-G)*(1+H)*(1-R)*(1)ELSEIF(NINDEX.EQ.5)THENPG=-0.125*(-1)*(1-H)*(1+R)*(2+G+H-R)1-0.125*(1-G)*(1-H)*(1+R)*(1)ELSEIF(NINDEX.EQ.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125*(1+G)*(1+H)*(1+R)*(-1)ELSEIF(NINDEX.EQ.8)THENPR=-0.125*(1-G)*(1+H)*(1)*(2+G-H-R)1-0.125*(1-G)*(1+H)*(1+R)*(-1)ELSEIF(NINDEX.EQ.9)THENPR=0.25*(1-G)*(1+G)*(1-H)*(-1)ELSEIF(NINDEX.EQ.10)THENPR=0.25*(1-H)*(1+H)*(1+G)*(-1)ELSEIF(NINDEX.EQ.11)THENPR=0.25*(1-G)*(1+G)*(1+H)*(-1)ELSEIF(NINDEX.EQ.12)THENPR=0.25*(1-H)*(1+H)*(1-G)*(-1)ELSEIF(NINDEX.EQ.13)THENPR=0.25*(1-G)*(1+G)*(1-H)*(1)ELSEIF(NINDEX.EQ.14)THENPR=0.25*(1-H)*(1+H)*(1+G)*(1)ELSEIF(NINDEX.EQ.15)THENPR=0.25*(1-G)*(1+G)*(1+H)*(1)ELSEIF(NINDEX.EQ.16)THENPR=0.25*(1-H)*(1+H)*(1-G)*(1)ELSEIF(NINDEX.EQ.17)THENPR=0.25*(-1)*(1+R)*(1-G)*(1-H)1+0.25*(1-R)*(1)*(1-G)*(1-H)ELSEIF(NINDEX.EQ.18)THENPR=0.25*(-1)*(1+R)*(1+G)*(1-H)1+0.25*(1-R)*(1)*(1+G)*(1-H)ELSEIF(NINDEX.EQ.19)THENPR=0.25*(-1)*(1+R)*(1+G)*(1+H)1+0.25*(1-R)*(1)*(1+G)*(1+H)ELSEIF(NINDEX.EQ.20)THENPR=0.25*(-1)*(1+R)*(1-G)*(1+H)1+0.25*(1-R)*(1)*(1-G)*(1+H)ENDIFRETURNEND来源:有限元先生

未登录
还没有评论
课程
培训
服务
行家
VIP会员 学习 福利任务 兑换礼品
下载APP
联系我们
帮助与反馈