OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
cnloc_matini.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!|| cnloc_matini ../starter/source/materials/mat_share/cnloc_matini.F
25!||--- called by ------------------------------------------------------
26!|| c3fint_reg_ini ../starter/source/elements/sh3n/coque3n/c3fint_reg_ini.F
27!|| cbafint_reg_ini ../starter/source/elements/shell/coqueba/cbafint_reg_ini.F
28!|| cdkfint_reg_ini ../starter/source/elements/sh3n/coquedk/cdkfint_reg_ini.F
29!|| cfint_reg_ini ../starter/source/elements/shell/coque/cfint_reg_ini.F
30!||--- calls -----------------------------------------------------
31!|| cnloc_mat104_ini ../starter/source/materials/mat/mat104/cnloc_mat104_ini.F
32!||--- uses -----------------------------------------------------
33!|| message_mod ../starter/share/message_module/message_mod.F
34!||====================================================================
35 SUBROUTINE cnloc_matini(ELBUF_STR,NEL ,IPM ,
36 . BUFMAT ,TIME ,VARNL ,
37 . FAILURE )
38C-----------------------------------------------
39C M o d u l e s
40C-----------------------------------------------
41 USE elbufdef_mod
42 USE message_mod
43C-----------------------------------------------
44C I m p l i c i t T y p e s
45C-----------------------------------------------
46#include "implicit_f.inc"
47C-----------------------------------------------
48C C o m m o n B l o c k s
49C-----------------------------------------------
50#include "param_c.inc"
51C-----------------------------------------------
52C D u m m y A r g u m e n t s
53C-----------------------------------------------
54 INTEGER NEL
55 TYPE(ELBUF_STRUCT_), TARGET :: ELBUF_STR
57 . varnl(nel,*),bufmat(*),time
58 TARGET :: bufmat
59 INTEGER IPM(NPROPMI,*)
60 LOGICAL :: FAILURE
61C-----------------------------------------------
62C L o c a l V a r i a b l e s
63C-----------------------------------------------
64 INTEGER I,K,IR,IS,IT,IADBUF,NPTT,NPTR,NPTS,
65 . IJ(5),IJ1,IJ2,IJ3,IJ4,IJ5,IPG,
66 . ilaw,imat,nuvar,nuparam
67 TYPE(buf_lay_), POINTER :: BUFLY
68 TYPE(L_BUFEL_), POINTER :: LBUF
69 TYPE(buf_mat_), POINTER :: MBUF
70 TYPE(g_bufel_), POINTER :: GBUF
71 my_real,
72 . DIMENSION(:), POINTER :: uparam,uvar,thkn
73C=======================================================================
74 ! buffer of the first layer
75 bufly => elbuf_str%BUFLY(1)
76 ! General buffer of the elements of the group
77 gbuf => elbuf_str%GBUF
78 ! Global thickness of the shell
79 thkn => gbuf%THK(1:nel)
80C
81 ! Number of integration points in the thickness
82 nptr = elbuf_str%NPTR
83 npts = elbuf_str%NPTS
84 nptt = bufly%NPTT
85 ilaw = bufly%ILAW
86 imat = bufly%IMAT
87 nuvar = bufly%NVAR_MAT
88C
89 ! Material properties and parameters
90 iadbuf = max(1,ipm(7,imat))
91 nuparam = ipm(9,imat)
92 uparam => bufmat(iadbuf:iadbuf+nuparam)
93C
94 DO k=1,5
95 ij(k) = nel*(k-1)
96 ENDDO
97 ij1 = ij(1) + 1
98 ij2 = ij(2) + 1
99 ij3 = ij(3) + 1
100 ij4 = ij(4) + 1
101 ij5 = ij(5) + 1
102C
103 ! Loop over integration points in the plane
104 DO ir = 1,nptr
105 DO is = 1,npts
106 ! Current Gauss point
107 ipg = (is-1)*elbuf_str%NPTR + ir
108 ! Loop over thickness integration points
109 DO it = 1,nptt
110 ! Integration point buffer
111 lbuf => bufly%LBUF(ir,is,it)
112 ! Interval variable buffer
113 uvar => bufly%MAT(ir,is,it)%VAR
114 ! Non-local plastic strain update
115 IF (gbuf%G_PLANL > 0) THEN
116 DO i = 1,nel
117 varnl(i,it) = max(varnl(i,it),zero)
118 lbuf%PLANL(i) = lbuf%PLANL(i) + varnl(i,it)
119 ENDDO
120 ENDIF
121 ! Select the material initialization routine
122 SELECT CASE (ilaw)
123 CASE(104)
124 CALL cnloc_mat104_ini(nel ,ipg ,it ,nuparam ,nuvar ,uparam ,
125 . uvar ,lbuf%PLA ,lbuf%OFF ,lbuf%THK ,gbuf%OFF ,lbuf%SIG(ij1),
126 . lbuf%SIG(ij2),lbuf%SIG(ij3) ,lbuf%SIG(ij4) ,lbuf%SIG(ij5),
127 . thkn ,lbuf%DMG ,nptr ,npts ,nptt ,bufly ,
128 . time ,varnl(1,it),failure)
129 END SELECT
130 ! Plastic strain to regularize
131 IF (gbuf%G_PLANL > 0) THEN
132 DO i = 1,nel
133 varnl(i,it) = lbuf%PLA(i)
134 ENDDO
135 ENDIF
136 ENDDO
137 ENDDO
138 ENDDO
139C-----------
140 END
subroutine cnloc_mat104_ini(nel, ipg, ipt, nuparam, nuvar, uparam, uvar, pla, off, thkly, offg, sigoxx, sigoyy, sigoxy, sigoyz, sigozx, thk, dmg, nptr, npts, nptt, bufly, time, varnl, failure)
subroutine cnloc_matini(elbuf_str, nel, ipm, bufmat, time, varnl, failure)
#define my_real
Definition cppsort.cpp:32
end diagonal values have been computed in the(sparse) matrix id.SOL
#define max(a, b)
Definition macros.h:21