OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
cmatini.F
Go to the documentation of this file.
1Copyright> OpenRadioss
2Copyright> Copyright (C) 1986-2025 Altair Engineering Inc.
3Copyright>
4Copyright> This program is free software: you can redistribute it and/or modify
5Copyright> it under the terms of the GNU Affero General Public License as published by
6Copyright> the Free Software Foundation, either version 3 of the License, or
7Copyright> (at your option) any later version.
8Copyright>
9Copyright> This program is distributed in the hope that it will be useful,
10Copyright> but WITHOUT ANY WARRANTY; without even the implied warranty of
11Copyright> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12Copyright> GNU Affero General Public License for more details.
13Copyright>
14Copyright> You should have received a copy of the GNU Affero General Public License
15Copyright> along with this program. If not, see <https://www.gnu.org/licenses/>.
16Copyright>
17Copyright>
18Copyright> Commercial Alternative: Altair Radioss Software
19Copyright>
20Copyright> As an alternative to this open-source version, Altair also offers Altair Radioss
21Copyright> software under a commercial license. Contact Altair to discuss further if the
22Copyright> commercial version may interest you: https://www.altair.com/radioss/.
23!||====================================================================
24!|| cmatini ../starter/source/materials/mat_share/cmatini.F
25!||--- called by ------------------------------------------------------
26!|| c3init3 ../starter/source/elements/sh3n/coque3n/c3init3.F
27!|| cbainit3 ../starter/source/elements/shell/coqueba/cbainit3.F
28!|| cinit3 ../starter/source/elements/shell/coque/cinit3.F
29!||--- uses -----------------------------------------------------
30!||====================================================================
31 SUBROUTINE cmatini(ELBUF_STR,
32 1 JFT ,JLT ,NFT ,NEL ,NPT ,
33 2 ISTRAIN ,SIGSH ,NUMEL ,IX ,NIX ,
34 3 NSIGSH ,NUMSH ,PTSH ,IR ,IS ,
35 4 NLAY )
36C-----------------------------------------------
37C M o d u l e s
38C-----------------------------------------------
39 USE elbufdef_mod
40C-----------------------------------------------
41C I m p l i c i t T y p e s
42C-----------------------------------------------
43#include "implicit_f.inc"
44C-----------------------------------------------
45C C o m m o n B l o c k s
46C-----------------------------------------------
47#include "com01_c.inc"
48C-----------------------------------------------
49C D u m m y A r g u m e n t s
50C-----------------------------------------------
51 INTEGER JFT,JLT,NUMEL,NIX,NFT,NPT,ISTRAIN,IR,IS,NLAY,NSIGSH,
52 . NEL,NUMSH
53 INTEGER IX(NIX,*),PTSH(*)
54 my_real
55 . sigsh(nsigsh,*)
56 TYPE(elbuf_struct_), TARGET :: ELBUF_STR
57C-----------------------------------------------
58C L o c a l V a r i a b l e s
59C-----------------------------------------------
60 INTEGER I,I1,II,J,JJ,N,NPTI,NU,NIP, NPG,IPT,
61 . IPT_ALL,IT,ILAY,NPTT, PT
62 my_real,
63 . DIMENSION(:), POINTER :: FACYLD
64 TYPE(l_bufel_) ,POINTER :: LBUF
65C=======================================================================
66 !print*, ' dans cmatini '
67 DO i=jft,jlt
68 IF (abs(isigi) /=3 .AND. abs(isigi)/=4 .AND. abs(isigi)/=5)THEN
69 ii = i+nft
70 n = nint(sigsh(nvshell + 1,ii))
71 IF(n == ix(nix,ii))THEN
72 jj = ii
73 ELSE
74 jj = ii
75 DO j = 1,numel
76 ii= j
77 n = nint(sigsh(1,ii))
78 IF(n == 0) GOTO 200
79 IF(n == ix(nix,jj))GOTO 70
80 ENDDO
81 GOTO 200
82 70 CONTINUE
83 ENDIF
84 ELSE
85 jj=nft+i
86 n =ix(nix,jj)
87 ii=ptsh(jj)
88 IF(ii == 0)GOTO 200
89 END IF
90 nip = nint(sigsh(nvshell + 2,ii))
91 npg = nint(sigsh(nvshell + 3,ii))
92!! PT=NVSHELL+3 ! wrong position, overwriting FAIL
93 pt = nvshell+nushell+nortshel+nvshell1+3
94 !print*, 'npg, nip ', npg, nip
95
96
97 IF (npg <= 1) THEN
98 IF (nip == 0) THEN
99!----------------------------------------------------------
100!! ILAY --> not initialised here
101!! SIGSH(PT, II) --> not filled within initia for NIP = 0
102!----------------------------------------------------------
103!! LBUF => ELBUF_STR%BUFLY(ILAY)%LBUF(IR,IS,1)
104!! LBUF%FAC_YLD(I) = SIGSH(PT, II)
105 ELSE
106c
107
108 ipt_all = 0
109 DO ilay=1,nlay
110 nptt = elbuf_str%BUFLY(ilay)%NPTT
111 DO it=1,nptt
112 ipt = ipt_all + it
113 lbuf => elbuf_str%BUFLY(ilay)%LBUF(ir,is,it)
114 lbuf%FAC_YLD(i) = sigsh(pt + ipt , ii)
115 !print*, ' IT, IPT ,indx', IT, IPT,PT+ IPT
116 !print*, ' sig ', sigsh(pt + ipt , ii)
117
118 ENDDO
119 ipt_all = ipt_all + nptt
120 ENDDO ! DO ILAY=1,NPT
121c
122 ENDIF
123 ENDIF
124 200 CONTINUE
125 ENDDO
126C-----------
127 RETURN
128 END
subroutine cmatini(elbuf_str, jft, jlt, nft, nel, npt, istrain, sigsh, numel, ix, nix, nsigsh, numsh, ptsh, ir, is, nlay)
Definition cmatini.F:36