OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
rkini3.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!|| rkini3 ../starter/source/elements/spring/rkini3.f
25!||--- called by ------------------------------------------------------
26!|| rinit3 ../starter/source/elements/spring/rinit3.F
27!||--- calls -----------------------------------------------------
28!|| ancmsg ../starter/source/output/message/message.F
29!|| fretitl2 ../starter/source/starter/freform.f
30!||--- uses -----------------------------------------------------
31!|| message_mod ../starter/share/message_module/message_mod.F
32!||====================================================================
33 SUBROUTINE rkini3(IFUNCT ,NPC ,PLD ,XK ,ECROU ,
34 . IGEO ,A ,LSCALE ,ID,TITR,NOM_OPT)
35C-----------------------------------------------
36C M o d u l e s
37C-----------------------------------------------
38 USE message_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 "com04_c.inc"
48#include "param_c.inc"
49#include "scr17_c.inc"
50C-----------------------------------------------
51C D u m m y A r g u m e n t s
52C-----------------------------------------------
53 INTEGER IFUNCT,NPC(*),IGEO(NPROPGI)
55 . xk,ecrou,a,lscale
57 . pld(*)
58 INTEGER ID,ID1
59 CHARACTER(LEN=NCHARTITLE)::TITR,TITR1
60 INTEGER NOM_OPT(LNOPT1,*)
61C-----------------------------------------------
62C L o c a l V a r i a b l e s
63C-----------------------------------------------
64 INTEGER NPOINT, J, J1, HARD,NUMPROP
66 . a1, b1, a2, b2, xk_ini
67C=======================================================================
68 numprop=igeo(1)
69 xk_ini=xk
70
71 IF(ifunct==0) RETURN
72 npoint=(npc(ifunct+1)-npc(ifunct))/2
73 DO 50 j=2,npoint
74 j1=2*(j-2)
75 a1=pld(npc(ifunct)+j1)
76 b1=pld(npc(ifunct)+j1+1)
77 a2=pld(npc(ifunct)+j1+2)
78 b2=pld(npc(ifunct)+j1+3)
79 xk= max(xk,lscale*(b2-b1)/(a2-a1))
80 50 CONTINUE
81C
82 hard=ecrou
83 IF(hard/=0)THEN
84 IF(xk_ini<xk)THEN
85 CALL fretitl2(titr1,nom_opt(lnopt1-ltitr+1,ifunct),ltitr)
86 CALL ancmsg(msgid=506,
87 . msgtype=msgwarning,
88 . anmode=aninfo_blind_1,
89 . i1=id,
90 . c1=titr,
91 . r1=xk_ini,
92 . r2=xk,
93 . r3=xk,
94 . i2=npc(nfunct+ifunct+1),
95 . c2=titr1,
96 . prmod=msg_cumu)
97 ENDIF
98 ENDIF
99C
100 RETURN
101 END
#define my_real
Definition cppsort.cpp:32
subroutine freform(irunn, irfl, irfe, h3d_data, flag_cst_ams, dynain_data, sensors, dt, output, glob_therm)
Definition freform.F:88
#define max(a, b)
Definition macros.h:21
integer, parameter nchartitle
subroutine rkini3(ifunct, npc, pld, xk, ecrou, igeo, a, lscale, id, titr, nom_opt)
Definition rkini3.F:35
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
subroutine fretitl2(titr, iasc, l)
Definition freform.F:804
program starter
Definition starter.F:39