OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
law112_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!|| law112_upd ../starter/source/materials/mat/mat112/law112_upd.F
25!||--- called by ------------------------------------------------------
26!|| updmat ../starter/source/materials/updmat.F
27!||--- calls -----------------------------------------------------
28!|| ancmsg ../starter/source/output/message/message.F
29!||--- uses -----------------------------------------------------
30!|| message_mod ../starter/share/message_module/message_mod.F
31!|| table_mod ../starter/share/modules1/table_mod.F
32!||====================================================================
33 SUBROUTINE law112_upd(TITR ,UPARAM ,NPC ,PLD ,
34 . NUMTABL,ITABLE ,TABLE ,MAT_ID )
35C-----------------------------------------------
36C M o d u l e s
37C-----------------------------------------------
38 USE message_mod
39 USE table_mod
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 "com04_c.inc"
49C-----------------------------------------------
50C D u m m y A r g u m e n t s
51C-----------------------------------------------
52 CHARACTER(LEN=NCHARTITLE) :: TITR
53 INTEGER MAT_ID,NUMTABL,ITABLE(NUMTABL)
54 INTEGER NPC(*)
55 my_real uparam(*),pld(*)
56 TYPE(ttable), DIMENSION(NTABLE) :: TABLE
57C-----------------------------------------------
58C L o c a l V a r i a b l e s
59C-----------------------------------------------
60 INTEGER I,K,ITAB
61 my_real slopemin,dx,dy
62C=======================================================================
63 ! Recovering tabulated flag
64 itab = nint(uparam(14))
65c
66 ! Checking yield stress functions slope
67 IF (itab > 0) THEN
68 DO i = 1,numtabl
69 slopemin = infinity
70 DO k = 2,SIZE(table(itable(i))%X(1)%VALUES)
71 dx = table(itable(i))%X(1)%VALUES(k) - table(itable(i))%X(1)%VALUES(k-1)
72 dy = table(itable(i))%Y%VALUES(k) - table(itable(i))%Y%VALUES(k-1)
73 slopemin = min(slopemin,dy/dx)
74 ENDDO
75 IF (slopemin < zero) THEN
76 CALL ancmsg(msgid=2059 ,
77 . msgtype=msgerror,
78 . anmode=aninfo_blind_2,
79 . i1=mat_id,
80 . i2=table(itable(i))%NOTABLE,
81 . c1=titr)
82 ENDIF
83 ENDDO
84 ENDIF
85c-----------
86 RETURN
87 END
#define my_real
Definition cppsort.cpp:32
subroutine law112_upd(titr, uparam, npc, pld, numtabl, itable, table, mat_id)
Definition law112_upd.F:35
#define min(a, b)
Definition macros.h:20
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