OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
law119_upd.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!|| law119_upd ../starter/source/materials/mat/mat119/law119_upd.F
25!||--- called by ------------------------------------------------------
26!|| updmat ../starter/source/materials/updmat.F
27!||--- calls -----------------------------------------------------
28!|| ancmsg ../starter/source/output/message/message.F
29!|| table_inters ../starter/source/tools/curve/func_inters.F
30!||--- uses -----------------------------------------------------
31!|| message_mod ../starter/share/message_module/message_mod.F
32!|| table_mod ../starter/share/modules1/table_mod.F
33!||====================================================================
34 SUBROUTINE law119_upd(NUPARAM ,NUMTABL ,ITABLE ,TABLE ,TABLE_ID ,
35 . UPARAM ,PM ,TITR ,MAT_ID )
36C-----------------------------------------------
37C M o d u l e s
38C-----------------------------------------------
39 USE table_mod
40 USE message_mod
42C-----------------------------------------------
43C I m p l i c i t T y p e s
44C-----------------------------------------------
45#include "implicit_f.inc"
46C-----------------------------------------------
47C C o m m o n B l o c k s
48C-----------------------------------------------
49#include "param_c.inc"
50#include "com04_c.inc"
51C-----------------------------------------------
52C D u m m y A r g u m e n t s
53C-----------------------------------------------
54 INTEGER :: NUPARAM,NUMTABL,MAT_ID
55 INTEGER ,DIMENSION(NUMTABL) :: ITABLE,TABLE_ID
56 my_real ,DIMENSION(NPROPM) :: pm
57 my_real ,DIMENSION(NUPARAM), INTENT(INOUT) :: uparam
58 TYPE(ttable) ,DIMENSION(NTABLE) :: TABLE
59 CHARACTER(LEN=NCHARTITLE) :: TITR
60C-----------------------------------------------
61C L o c a l V a r i a b l e s
62C-----------------------------------------------
63 INTEGER :: I,J,FUNC,FUND,NDIM,NPOINT
64 my_real :: e11,n12,n21,nu,c1,ssp,kmax,kini,dx,dy,slope,rho,
65 . fscale1,fscale2,fscalet,det,a11,a12,a22,xint,yint
66c=======================================================================
67 func = itable(1)
68 fund = itable(2)
69 n12 = uparam(3)
70 fscale1 = uparam(11)
71 fscale2 = uparam(12)
72 fscalet = uparam(13)
73c
74 IF (func > 0) THEN
75 ndim = table(func)%NDIM
76 npoint = SIZE(table(func)%X(1)%VALUES)
77 dx = table(func)%X(1)%VALUES(2) - table(func)%X(1)%VALUES(1)
78 dy = table(func)%Y%VALUES(2) - table(func)%Y%VALUES(1)
79 kini = fscale1 * dy / dx
80 kmax = kini
81 DO i = 3,npoint
82 j = i-1
83 dx = table(func)%X(1)%VALUES(i) - table(func)%X(1)%VALUES(j)
84 dy = table(func)%Y%VALUES(i) - table(func)%Y%VALUES(j)
85 slope = fscale1 * dy / dx
86 kmax = max(kmax, slope)
87 END DO
88c
89 IF (fund > 0) THEN
90 ndim = table(fund)%NDIM
91 npoint = SIZE(table(fund)%X(1)%VALUES)
92 dx = table(fund)%X(1)%VALUES(2) - table(fund)%X(1)%VALUES(1)
93 dy = table(fund)%Y%VALUES(2) - table(fund)%Y%VALUES(1)
94 kini = fscale2 * dy / dx
95 kmax = max(kmax, kini)
96 DO i = 3,npoint
97 j = i-1
98 dx = table(fund)%X(1)%VALUES(i) - table(fund)%X(1)%VALUES(j)
99 dy = table(fund)%Y%VALUES(i) - table(fund)%Y%VALUES(j)
100 slope = fscale2 * dy / dx
101 kmax = max(kmax, slope)
102 END DO
103c
104c check intersection with loading curve
105 CALL table_inters(table,func,fund,fscale1,fscale2,xint,yint)
106c
107 IF (xint == zero .or. yint == zero) THEN
108 CALL ancmsg(msgid=3081 ,msgtype=msgerror,anmode=aninfo_blind_2,
109 . i1 = mat_id,
110 . i2 = table_id(1),
111 . i3 = table_id(2),
112 . c1 = titr )
113 ENDIF
114 uparam(18) = xint
115 uparam(19) = yint
116 END IF
117C
118 uparam(1) = kini ! E11
119 uparam(22) = kmax
120C other material parameters are recomputed in create_seatbelt when section is available
121C
122 END IF
123c-----------
124 RETURN
125 END
#define my_real
Definition cppsort.cpp:32
subroutine table_inters(table, func1, func2, fac1, fac2, xint, yint)
subroutine law119_upd(nuparam, numtabl, itable, table, table_id, uparam, pm, titr, mat_id)
Definition law119_upd.F:36
#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