|
[Fortran] 纯文本查看 复制代码 02 | common / fem 1 / npoin , nelem , nboun , nprop , nnode , nevab , nsvab , ndofn , ndime , nstre |
03 | common / fem 2 / props ( 5 , 2 ) , coord ( 50 , 2 ) , lnods ( 75 , 2 ) , ifpre ( 100 ) , fixed ( 100 ) , rload ( 50 , 2 ) , eload ( 75 , 4 ) , & |
04 | matno ( 75 ) , stres ( 75 , 1 ) , xdisp ( 100 ) , tdisp ( 50 , 2 ) , treac ( 50 , 2 ) , astif ( 100 , 100 ) , aslod ( 100 ) , react ( 100 ) |
10 | open ( unit = 10 , file = 'input.txt' ) |
11 | open ( unit = 12 , file = 'output.txt' ) |
12 | open ( unit = 11 , file = 'between.txt' ) |
20 | xproj = coord ( node 2 , 1 ) - coord ( node 1 , 1 ) |
21 | yproj = coord ( node 2 , 2 ) - coord ( node 1 , 2 ) |
22 | eleng = sqrt ( xproj * * 2 + yproj * * 2 ) |
25 | fmult = young * xarea / eleng |
26 | estif ( 1 , 1 ) = fmult * costh * * 2 |
27 | estif ( 1 , 2 ) = fmult * sinth * costh |
28 | estif ( 2 , 1 ) = fmult * sinth * costh |
29 | estif ( 2 , 2 ) = fmult * sinth * * 2 |
32 | kount = ( -1 ) * * inode * ( -1 ) * * jnode |
35 | index = ( inode -1 ) * nnode + knode |
36 | jndex = ( jnode -1 ) * nnode + lnode |
37 | 10 estif ( index , jndex ) = kount * estif ( knode , lnode ) |
|
|