OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
i21pwr3.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!|| i21pwr3 ../starter/source/interfaces/inter3d1/i21pwr3.F
25!||--- called by ------------------------------------------------------
26!|| inint3_thkvar ../starter/source/interfaces/inter3d1/inint3_thkvar.F
27!||--- calls -----------------------------------------------------
28!|| ancmsg ../starter/source/output/message/message.F
29!||--- uses -----------------------------------------------------
30!|| format_mod ../starter/share/modules1/format_mod.F90
31!|| message_mod ../starter/share/message_module/message_mod.F
32!||====================================================================
33 SUBROUTINE i21pwr3(ITAB,INACTI,CAND_E,CAND_N,STFN,
34 1 X ,I_STOK,NSV ,IWPENE,PENI,
35 2 NOINT,NTY ,GAP_S ,MSR ,IRTLM ,
36 3 IRECT,XM0 ,GAPMIN,GAPMAX,DEPTH,
37 4 NSN ,ITAG ,DRAD ,ID,TITR)
38 USE message_mod
40 USE format_mod , ONLY : fmw_5i
41C-----------------------------------------------
42C I m p l i c i t T y p e s
43C-----------------------------------------------
44#include "implicit_f.inc"
45C-----------------------------------------------
46C C o m m o n B l o c k s
47C-----------------------------------------------
48#include "scr03_c.inc"
49#include "units_c.inc"
50C-----------------------------------------------
51C D u m m y A r g u m e n t s
52C-----------------------------------------------
53 INTEGER ITAB(*),CAND_E(*),CAND_N(*), IRECT(4,*), IRTLM(2,*),ITAG(*)
54 INTEGER I_STOK,NSV(*),MSR(*),IWPENE,INACTI,NOINT,NTY,NSN
55 my_real STFN(*),X(3,*),PENI(*),GAP_S(*),XM0(3,*),GAPMIN,GAPMAX,DEPTH,DRAD
56 INTEGER ID
57 CHARACTER(LEN=NCHARTITLE) :: TITR
58C-----------------------------------------------
59C L o c a l V a r i a b l e s
60C-----------------------------------------------
61 INTEGER I, J, L,JWARN
62 INTEGER IX1, IX2, IX3, IX4, NSVG
63C-----------------------------------------------
64 JWARN = 0
65 DO 100 i=1,i_stok
66 j=cand_n(i)
67 l=cand_e(i)
68 IF(irtlm(1,j)==cand_e(i))THEN
69
70 ix1=msr(irect(1,l))
71 ix2=msr(irect(2,l))
72 ix3=msr(irect(3,l))
73 ix4=msr(irect(4,l))
74 nsvg=nsv(j)
75 IF(peni(j)>zero)THEN
76 IF(ipri>=1)THEN
77 WRITE(iout,fmt=fmw_5i) itab(nsvg), itab(ix1),itab(ix2), itab(ix3),itab(ix4)
78 END IF
79c IF(PENI(J)>ZERO)THEN
80 WRITE(iout,1000)peni(j)
81c ENDIF
82 IF(inacti/=6)THEN
83 IF(inacti==1) THEN
84C DESACTIVATION DES NOEUDS
85 WRITE(iout,'(A)')'NODE STIFFNESS IS SET TO ZERO'
86 stfn(j) = zero
87 ELSE IF(inacti==2) THEN
88C DESACTIVATION DES ELEMENTS
89 WRITE(iout,'(A)')
90 . 'INACTI=2 IS NOT AVAILABLE FOR INTERFACE TYPE21'
91 ELSE IF(inacti==3) THEN
92C CHANGE LES COORDONNEES DES NOEUDS SECND
93 WRITE(iout,'(A)')
94 . 'INACTI=3 IS NOT AVAILABLE FOR INTERFACE TYPE21'
95 ELSE IF(inacti==4) THEN
96C CHANGE LES COORDONNEES DES NOEUDS MAIN
97 WRITE(iout,'(A)')
98 . 'INACTI=4 IS NOT AVAILABLE FOOR INTERFACE TYPE21'
99 ELSE IF(inacti==5) THEN
100C REDUCTION DU GAP
101 jwarn = 1
102 ENDIF
103 ELSE
104C INACTI==6
105C REDUCTION DU GAP
106 jwarn = 1
107C
108 peni(j)=peni(j)
109 . +zep05*(min(max(gap_s(j),gapmin),gapmax)+depth-peni(j))
110 END IF
111 iwpene=iwpene+1
112 ENDIF
113 ENDIF
114 100 CONTINUE
115 IF (jwarn /= 0) WRITE(iout,'(A)')'REDUCE INITIAL GAP'
116C
117 IF(iwpene/=0) THEN
118 CALL ancmsg(msgid=499,
119 . msgtype=msgwarning,
120 . anmode=aninfo_blind_1,
121 . i1=id,
122 . c1=titr,i2=iwpene)
123 ENDIF
124C
125 1000 FORMAT(2x,'** INITIAL PENETRATION =',1pg20.13)
126 RETURN
127 END
subroutine i21pwr3(itab, inacti, cand_e, cand_n, stfn, x, i_stok, nsv, iwpene, peni, noint, nty, gap_s, msr, irtlm, irect, xm0, gapmin, gapmax, depth, nsn, itag, drad, id, titr)
Definition i21pwr3.F:38
#define min(a, b)
Definition macros.h:20
#define max(a, b)
Definition macros.h:21
integer, parameter nchartitle
subroutine ancmsg(msgid, msgtype, anmode, i1, i2, i3, i4, i5, i6, i7, i8, i9, i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, r1, r2, r3, r4, r5, r6, r7, r8, r9, c1, c2, c3, c4, c5, c6, c7, c8, c9, prmode)
Definition message.F:889