中南大学研究生结构程序设计基础考试试题概要.docx
- 文档编号:11484001
- 上传时间:2023-03-01
- 格式:DOCX
- 页数:18
- 大小:18.18KB
中南大学研究生结构程序设计基础考试试题概要.docx
《中南大学研究生结构程序设计基础考试试题概要.docx》由会员分享,可在线阅读,更多相关《中南大学研究生结构程序设计基础考试试题概要.docx(18页珍藏版)》请在冰豆网上搜索。
中南大学研究生结构程序设计基础考试试题概要
中南大学铁道校区(土木2012级研究生结构分析程序设计基础试题
(考试方式:
开卷,交卷时间:
第13周
1.如图示平面应力悬臂梁模型
24
23
22
21
20
1918
1716
1514
13
12
119
8
76
5
43
2
10
1
20
1918
17
16
15
14
13
1211
10
9
87654
3
2
1
图1平面应力悬臂梁模型
试写出其节点联系数组IT、单元联系数组LMT和对角元地址数组MAXA。
2、求解线性方程组
[A]{X}={B}式中的[A]为对称正定矩阵,其值为
4.50.21.30
0005.30000010.25.101.70[]8.40000.6003.105.6A-⎡⎤⎢⎥⎢⎥⎢⎥-⎢⎥=⎢⎥⎢⎥⎢⎥
⎢⎥⎢⎥⎣⎦
对称
{B}矩阵为
{B}=[3.4,5.5,12.3,13.5,0.6,1.4,5.6]T
要求写出矩阵分解和回代求解过程。
3.在计算机上调试空间桁架分析程序TRUSS,并用两个算例进行考证,要求写出相关计算结果。
应大家要求,程序已经调试,附录于下:
C
C
CTRUSS.FOR
C
C
*******************************************************************************SPACIALTRUSSSTRUCTUREANALYSIS**DebuggedbyWYL2013.05*******************************************************************************PROGRAMTRUSS
IMPLICITREAL*8(A-H,O-Z
IMPLICITINTEGER*4(I-N
CHARACTERNAME*40
COMMON/AT/A(18000000
COMMON/IAT/IA(2000000
A=0;IA=0
WRITE(*,*'INPUTFILENAME?
';READ(*,*NAME;CALLOPENF(NAME
CALLDATAIN(NP,NE,NF,ND,NDF,NPF,NM,NR,NCF,
&IME,INAE,IIT,ILMT,IMAXA,
&IX,IY,IZ,IRR,IAE,IPF,ICKK
CALLFLMT(NP,NE,NN,NN1,NR,A(IRR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,NE,NM,NR,NCF
WRITE(2,701NP,NE,NM,NR,NCF
701FORMAT(//1X,'###OUTPUTOFORIGINALINPUTINFORMATION###'&//5X,'NumberofjointsJOINTS=',I5
&/5X,'NumberofelementsELEMENTS=',I5&/5X,'NumberofmaterialpropertygroupsPROPERTYTYPES=',I5
&/5X,'NumberofrestrainedjointsRESTRAINTS=',I5
&/5X,'NumberofconcentrativeforcedjointsNCF=',I5
C--------------FORMPOINTER----------------------------------
NF=3
ND=2
NDF=ND*NF
NPF=NP*NF
IME=0
INAE=IME+2*NE
IIT=INAE+NE
ILMT=IIT+NF*NP
IMAXA=ILMT+NDF*NE
IX=0
IZ=IY+NP
IRR=IZ+NP
IAE=IRR+2*NR
IPF=IAE+2*NM
ICKK=IPF+4*NCF
READ(1,*(A(IX+I,A(IY+I,A(IZ+I,I=1,NP
WRITE(2,714(I,A(IX+I,A(IY+I,A(IZ+I,I=1,NP
714FORMAT(//5X,'GENERATEDJOINTCOORDINATESDATA'&/1X,'JOINT',15X,'X',13X,'Y',13X,'Z'
&/(4X,I5,3X,3(2X,E12.6
READ(1,*(A(IAE+2*(I-1+1,A(IAE+2*(I-1+2,I=1,NM
READ(1,*(IA(IME+2*(I-1+1,IA(IME+2*(I-1+2,IA(INAE+I,I=1,NE
WRITE(2,606(I,A(IAE+2*(I-1+1,A(IAE+2*(I-1+2,I=1,NM
WRITE(2,607(I,IA(IME+2*(I-1+1,IA(IME+2*(I-1+2,
&IA(INAE+I,I=1,NE
606FORMAT(/5X,'ELEMENTMATERAILPROPERTIESDATA'&/2X,'NO.',10X,'E',10X,'Ax'
&/(2X,I3,2(1X,E11.5
607FORMAT(/5X,'TRUSSELEMENTDEFINITIONDATA'
&/2X,'NO.',10X,'JOINT_1',10X,'JOINT_2',10X,'NAE'
&/(2X,I3,3(10X,I5
READ(1,*(A(IRR+2*(I-1+1,A(IRR+2*(I-1+2,I=1,NR
WRITE(2,608(A(IRR+2*(I-1+1,A(IRR+2*(I-1+2,I=1,NR
608FORMAT(/5X,'JOINTRESTRAINTSDATA'
&/2X,'JOINT',10X,'RESTRAINT',
&/(2X,F7.0,10X,F9.3
READ(1,*((A(IPF+4*(I-1+J,J=1,4,I=1,NCF
WRITE(2,609((A(IPF+4*(I-1+J,J=1,4,I=1,NCF
609FORMAT(/5X,'CONCENTRATIVEFORCEDJOINTSDATA'&/2X,'JOINT',10X,'Fx',10X,'Fy',10X,'Fz'
&/(2X,F7.0,3(1X,E12.6
RETURN
END
C
SUBROUTINEMKFORCE(NP,NF,NPF,NCF,NN,IT,PF,PP,FTOOL
IMPLICITREAL*8(A-H,O-Z
IMPLICITINTEGER*4(I-N
DIMENSIONIT(NF,NP,PF(4,NCF,PP(NPF,FTOOL(NPF
PP=0;FTOOL=0
DOI=1,NCF
NOD=PF(1,I
DOJ=1,NF
PP(NF*(NOD-1+J=PF(J+1,I
ENDDO
DOI=1,NP
DOJ=1,NF
LAB=IT(J,I
IF(LAB.GT.0.AND.LAB.LE.NNTHEN
FTOOL(LAB=PP(NF*(I-1+J
ENDIF
ENDDO
ENDDO
RETURN
END
C
C
SUBROUTINEDATAOUT(NP,NE,NPF,DIST,FF,SG,SM
IMPLICITREAL*8(A-H,O-Z
IMPLICITINTEGER*4(I-N
DIMENSIONDIST(NPF,FF(NPF,SG(NE,SM(NE
WRITE(2,715(I,(DIST(3*(I-1+J,J=1,3,I=1,NP
715FORMAT(//5X,'SOLVEDJOINTDISPLACEMENTSDATA'&/1X,'JOINT',3X,8X,'Dx',12X,'Dy',12X,'Dz'
&/(4X,I5,3X,3(2X,E12.6
WRITE(2,716(IE,SG(IE,SM(IE,IE=1,NE
716FORMAT(//5X,'SOLVEDELEMENTINTERNALFORCEDATA'&/1X,'ELEMENT',3X,8X,'Nx',8X,'STRESS'
&/(4X,I5,3X,2(2X,F12.6
WRITE(2,717(I,(FF(3*(I-1+J,J=1,3,I=1,NP
717FORMAT(//5X,'SOLVEDJOINTREACTIONDATA'
&/1X,'JOINT',3X,8X,'Rx',12X,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2000FORMAT(//'Stop-stiffnessmatrixnotpositive+definite',//,'nonpositivepivotforequation',
+I4,//,'pivot=',E20.10
2010FORMAT(//,'Stop-sturmsequencecheckfailed+becauseofmultipliergrowthforcolumn
+number',I4,//,'Multiplier=',E20.8
END
C
C
SUBROUTINERESOLVE(A,V,MAXA,NN,NWK,NNM
IMPLICITREAL*8(A-H,O-Z
IMPLICITINTEGER*4(I-N
DIMENSIONA(NWK,V(NN,1,MAXA(NNM
NIP=1
DOIP=1,NIP
DO400N=1,NN
KL=MAXA(N+1
KU=MAXA(N+1-1
IF(KU-KL400,410,410
410K=N
C=0.0
DO420KK=KL,KU
K=K-1
420C=C+A(KK*V(K,IP
V(N,IP=V(N,IP-C
400CONTINUE
DO480N=1,NN
K=MAXA(N
480V(N,IP=V(N,IP/A(K
IF(NN.EQ.1RETURN
N=NN
DO500L=2,NN
KL=MAXA(N+1
KU=MAXA(N+1-1
IF(KU-KL500,510,510
510K=N
DO520KK=KL,KU
K=K-1
520V(K,IP=V(K,IP-A(KK*V(N,IP
500N=N-1
ENDDO
RETURN
END
C
Ccc
SUBROUTINEDISPLS(NP,NE,NF,NPF,NM,NN,IT,FTOOL,&DIST,AE,ME,NAE,X,Y,Z,PP,FF,SG,SM
IMPLICITREAL*8(A-H,O-Z
IMPLICITINTEGER*4(I-N
DIMENSIONIT(NF,NP,DIST(NPF,FTOOL(NPF,T(2,6,&TT(6,2,AE(2,NM,ME(2,NE,NAE(NE,UE(6,U(2,
&AKE(2,2,FE1(2,FE(6,FF(NPF,X(NP,Y(NP,Z(NP,
&PP(NPF,SG(NE,SM(NE
SG=0;SM=0;FF=0
DOI=1,NP
DOJ=1,NF
LAB=IT(J,I
IF(LAB.EQ.0THEN
DIST(NF*(I-1+J=0.0
ELSEIF(LAB.GT.0.AND.LAB.LE.NNTHEN
DIST(NF*(I-1+J=FTOOL(LAB
ENDIF
ENDDO
ENDDO
DOIE=1,NE
N1=ME(1,IE;N2=ME(2,IE
UE=0
DOJ=1,N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A,BIMPLICITREAL*8(A-H,O-ZIMPLICITINTEGER*4(I-NDIMENSIONA(M,N,B(N,MDOI=1,MDOJ=1,NB(J,I=A(I,JENDDOENDDORETURNENDC
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 中南 大学研究生 结构 程序设计 基础 考试 试题 概要