平面四边形四节点等参单元Fortran源程序Word文档下载推荐.docx
- 文档编号:18176064
- 上传时间:2022-12-13
- 格式:DOCX
- 页数:21
- 大小:18.75KB
平面四边形四节点等参单元Fortran源程序Word文档下载推荐.docx
《平面四边形四节点等参单元Fortran源程序Word文档下载推荐.docx》由会员分享,可在线阅读,更多相关《平面四边形四节点等参单元Fortran源程序Word文档下载推荐.docx(21页珍藏版)》请在冰豆网上搜索。
CALLINPUT(JR,COOR,AE,MEL)
CALLCBAND(MA,JR,MEL)
DOI=1,NH
SK(I)=0.0
enddo
CALLSK0(SK,MEL,COOR,JR,MA,AE)
doI=1,N
R(I)=0.0
pause'
aaa'
stop
READ(4,*)NCP,NBE,iz
WRITE(*,'
(5i8)'
)NCP,NBE,iz
IF(NCP.GT.0)CALLCONCR(NCP,R,JR)
IF(NBE.GT.0)CALLBODYR(NBE,R,MEL,COOR,JR,AE)
IF(iz.GT.0)then
dojj=1,iz
READ(4,*)Js,nse,(WG(I),I=1,4)
read(4,*)(iew(m),m=1,nse)
CALLFACER(iew,NSE,R,MEL,COOR,JR,WG)
endif
CALLDECOP(SK,MA)
CALLFOBA(SK,MA,R)
CALLOUTDISP(NP,R,JR)
CALLSTRESS(COOR,MEL,JR,AE,R,STRE)
PROGRAMSAFFHASBEENENDED'
STOP
cRETURN
END
C*********************************************
SUBROUTINEINPUT(JR,COOR,AE,MEL)
DIMENSIONJR(2,*),COOR(2,*),AE(4,*),MEL(5,*)
DO70I=1,NP
READ(4,*)IP,X,Y
COOR(1,IP)=X
COOR(2,IP)=Y
70CONTINUE
DO11J=1,NE
READ(4,*)NEE,NME,(MEL(I,NEE),I=1,4)
MEL(5,NEE)=NME
11CONTINUE
DO10I=1,NP
DO10J=1,2
10JR(J,I)=1
DO20I=1,NR
READ(4,*)IP,IX,IY
JR(1,IP)=IX
JR(2,IP)=IY
20CONTINUE
N=0
DO30I=1,NP
DO30J=1,2
IF(JR(J,I))30,30,25
25N=N+1
JR(J,I)=N
30CONTINUE
DO55J=1,NM
READ(4,*)JJ,(AE(I,JJ),I=1,4)
WRITE(*,910)JJ,(AE(I,JJ),I=1,4)
55CONTINUE
910FORMAT(/20X,'
MATERIALPROPERTIES'
/(3X,I5,4(1x,E8.3)))
RETURN
C**********************************************
SUBROUTINECBAND(MA,JR,MEL)
DIMENSIONMA(*),JR(2,*),MEL(5,*),NN(8)
DO65I=1,N
65MA(I)=0
DO90IE=1,NE
DO75K=1,4
IEK=MEL(K,IE)
DO95M=1,2
JJ=2*(K-1)+M
NN(JJ)=JR(M,IEK)
95CONTINUE
75CONTINUE
L=N
DO80I=1,2*4
NNI=NN(I)
IF(NNI.EQ.0)GOTO80
IF(NNI.LT.L)L=NNI
80CONTINUE
DO85M=1,2*4
JP=NN(M)
IF(JP.EQ.0)GOTO85
JPL=JP-L+1
IF(JPL.GT.MA(JP))MA(JP)=JPL
85CONTINUE
90CONTINUE
MX=0
MA
(1)=1
DO10I=2,N
IF(MA(I).GT.MX)MX=MA(I)
MA(I)=MA(I)+MA(I-1)
10CONTINUE
NH=MA(N)
(A,I8)'
TOTALDEGREESOFFREEDOM-----------N='
N
MAX-SEMI-BANDWIDTH-----------------MX='
MX
TOTAL-STORAGE----------------------NH='
NH
500FORMAT(/5X,'
FREEDOMN='
*,I5,3X,'
SEMI-BANDWI.MX='
I5,3X,
*'
STORAGENH='
I7)
SUBROUTINESK0(SK,MEL,COOR,JR,MA,AE)
DIMENSIONSK(*),MEL(5,*),COOR(2,*),JR(2,*),MA(*),
*AE(4,*),XYZ(2,4),iven(4)
COMMON/CMN4/NEE,NME
COMMON/GAUSS/RSTG(3),H(3)
H
(1)=0.55560
H
(2)=0.88890
H(3)=H
(1)
RSTG
(1)=-0.14830
RSTG
(2)=0.00
RSTG(3)=-RSTG
(1)
DO10IE=1,NE
NEE=IE
NME=MEL(5,IE)
iven(k)=IEK
95XYZ(M,K)=COOR(M,IEK)
CALLSTIF(XYZ,AE,iven)
DO60I=1,8
DO60J=1,8
II=NN(I)
JJ=N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ROUTINEBODYR(NBE,R,MEL,COOR,JR,AE)
DIMENSIONR(*),MEL(5,*),COOR(2,*),JR(2,*),
AE(4,*),XYZ(2,4),iven(4)
COMMON/CMN5/FUN(4),PN(2,4),XJAC(2,2)
H
(1)=1.0
H
(2)=1.0
RSTG
(1)=-0.96260
RSTG
(2)=-RSTG
(1)
DO10IE=1,NBE
DOI=1,8
ENDDO
cREAD(4,*)NEE
NEE=ie
NME=MEL(5,NEE)
IEK=MEL(K,NEE)
iven(k)=iek
DO99IS=1,2
DO98IR=1,2
RR=RSTG(IR)
CALLFUN8(XYZ,RR,S,DET)
DO30I=1,4
J=2*I
RF(J)=RF(J)-FUN(I)*RH*SH*DET*GAMA
CALLASLOAD(R)
SUBROUTINEFACER(iew,NSE,R,MEL,COOR,JR,WG)
DIMENSIONR(*),MEL(5,*),COOR(2,*),JR(2,*),wg(*)
*,XYZ(2,4),iew(*),PR
(2)
nwf=0
nnf=0
ir=wg
(1)+0.1
if(ir.eq.1)nwf=1
if(ir.eq.2)nnf=1
DO510IE=1,NSE
nee=iew(ie)
DO575K=1,4
DO595M=1,2
595XYZ(M,K)=COOR(M,IEK)
575CONTINUE
IF(NWF.EQ.1)then
GAMA=WG
(2)
Z0=WG(3)
NSU=WG(4)+0.1
CALLSURLOD(NSU,XYZ,PR,Z0,GAMA,1)
IF(NNF.EQ.1)then
q=WG
(2)
doj=1,2
PR(J)=q
CALLSURLOD(NSU,XYZ,PR,Z0,GAMA,2)
510CONTINUE
SUBROUTINESURLOD(NSU,XYZ,PR,Z0,GAMA,NSI)
DIMENSIONXYZ(2,*),RST(3),PR
(2),KCRD(4),KFACE(2,4),
FVAL(4),NODES
(2),FACT(4)
DATAKCRD/1,1,2,2/
DATAKFACE/1,4,
*2,3,
*1,2,
*4,3/
DATAFVAL/-1.00,1.00,-1.00,1.00/
FACT
(1)=1.0
FACT
(2)=-1.0
FACT(3)=-1.0
FACT(4)=1.0
FACTNUS=FACT(NSU)
DOI=1,2
J=KFACE(I,NSU)
NODES(I)=J
IF(NSI.EQ.1)THEN
J=NODES(I)
Z=Z0-XYZ(2,J)
PR(I)=0.00
IF(Z.GT.0.00)PR(I)=Z*GAMA
ENDIF
ML=KCRD(NSU)
IF(ML.EQ.1)MM=2
IF(ML.EQ.2)MM=1
RST(ML)=FVAL(NSU)
DO70LX=1,2
RST(MM)=RSTG(LX)
CALLFUN8(XYZ,RST
(1),RST
(2),DET)
PXYZ=0.00
DO25I=1,2
PXYZ=PXYZ+FUN(J)*PR(I)
25CONTINUE
A1=XJAC(MM,2)
A2=-XJAC(MM,1)
30DO60I=1,2
K2=2*J
K1=K2-1
Q=PXYZ*FUN(J)*H(LX)*FACTNUS
RF(K1)=RF(K1)+Q*A1
RF(K2)=RF(K2)+Q*A2
SUBROUTINEASLOAD(R)
DIMENSIONR(*)
DO20I=1,8
L=NN(I)
IF(L.EQ.0)GOTO20
R(L)=R(L)+RF(I)
C***********************************************
SUBROUTINEDECOP(SK,MA)
DIMENSIONSK(*),MA(*)
DO50I=2,N
L=I-MA(I)+MA(I-1)+1
K=I-1
L1=L+1
IF(L1.GT.K)GOTO30
DO20J=L1,K
IJ=MA(I)-I+J
M=J-MA(J)+MA(J-1)+1
IF(L.GT.M)M=L
MP=J-1
IF(M.GT.MP)GOTO20
DO10LP=M,MP
IP=MA(I)-I+LP
JP=MA(J)-J+LP
SK(IJ)=SK(IJ)-SK(IP)*SK(JP)
30IF(L.GT.K)GOTO50
DO40LP=L,K
LPP=MA(LP)
SK(IP)=SK(IP)/SK(LPP)
II=MA(I)
SK(II)=SK(II)-SK(IP)*SK(IP)*SK(LPP)
50CONTINUE
C*************************************************************
SUBROUTINEFOBA(SK,MA,R)
DIMENSIONSK(*),MA(*),R(*)
IF(L.GT.K)GOTO10
DO5LP=L,K
R(I)=R(I)-SK(IP)*R(LP)
5CONTINUE
DO20I=1,N
45R(I)=R(I)/SK(II)
20CONTINUE
DO30J1=2,N
I=2+N-J1
IF(L.GT.K)GOTO30
DO25J=L,K
55R(J)=R(J)-SK(IJ)*R(I)
25CONTINUE
30CONTINUE
C*****************************************************************
SUBROUTINESTRESS(COOR,MEL,JR,AE,R,STRE)
DIMENSIONXYZ(2,4),DNX(2,4),AE(4,*),STRE(3,*),
COOR(2,*),MEL(5,*),JR(2,*),RJAC(2,2),SIG(
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 平面 四边形 节点 单元 Fortran 源程序
![提示](https://static.bdocx.com/images/bang_tan.gif)