OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
iniboltprel.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!|| iniboltprel ../starter/source/loads/bolt/iniboltprel.F
25!||--- called by ------------------------------------------------------
26!|| initia ../starter/source/elements/initia/initia.F
27!||--- calls -----------------------------------------------------
28!|| ancmsg ../starter/source/output/message/message.F
29!|| uel2sys ../starter/source/initial_conditions/inista/yctrl.F
30!||--- uses -----------------------------------------------------
31!|| message_mod ../starter/share/message_module/message_mod.F
32!||====================================================================
33 SUBROUTINE iniboltprel(IXS, IPRELOAD ,PRELOAD ,VPRELOAD, IFLAG_BPRELOAD)
34C-----------------------------------------------
35C M o d u l e s
36C-----------------------------------------------
37! USE R2R_MOD
38 USE message_mod
39 use element_mod , only : nixs
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 "boltpr_c.inc"
49C-----------------------------------------------
50C D u m m y A r g u m e n t s
51C-----------------------------------------------
52 INTEGER IXS(NIXS,*), IPRELOAD(3,*), IFLAG_BPRELOAD(*)
54 . preload(6,*), vpreload(7,*)
55C-----------------------------------------------
56C L o c a l V a r i a b l e s
57C-----------------------------------------------
58 INTEGER IE, STAT, IPL, NE, J
59 INTEGER WORKS(70000)
60 INTEGER, DIMENSION(:), ALLOCATABLE ::ITRIS
61 INTEGER, DIMENSION(:), ALLOCATABLE ::INDEXS
62 INTEGER, DIMENSION(:), ALLOCATABLE ::KSYSUSRS
63C-----------------------------------------------
64C E x t e r n a l F u n c t i o n s
65C-----------------------------------------------
66 INTEGER UEL2SYS
67 EXTERNAL uel2sys
68C=======================================================================
69 ALLOCATE (itris(numels) ,stat=stat)
70 IF (stat /= 0) THEN
71 CALL ancmsg(msgid=268,anmode=aninfo,
72 . msgtype=msgerror,
73 . c1='ITRIS')
74 RETURN
75 END IF
76 ALLOCATE (indexs(2*numels) ,stat=stat)
77 IF (stat /= 0) THEN
78 CALL ancmsg(msgid=268,anmode=aninfo,
79 . msgtype=msgerror,
80 . c1='INDEXS')
81 RETURN
82 END IF
83 ALLOCATE (ksysusrs(2*numels),stat=stat)
84 IF (stat /= 0) THEN
85 CALL ancmsg(msgid=268,anmode=aninfo,
86 . msgtype=msgerror,
87 . c1='KSYSUSRS')
88 RETURN
89 END IF
90 itris = 0
91 indexs = 0
92 ksysusrs = 0
93c
94 vpreload(1:6,1:numels) = zero
95c
96 DO ie = 1, numels
97 itris(ie) = ixs(nixs,ie)
98 END DO
99 CALL my_orders(0,works,itris,indexs,numels,1)
100 DO j = 1, numels
101 ie=indexs(j)
102 ksysusrs(j) =ixs(nixs,ie)
103 ksysusrs(numels+j)=ie
104 END DO
105c
106 DO ipl = 1,numpreload
107 ne = ipreload(3,ipl)
108C No system in the D00, of the element:
109 ie=uel2sys(ne,ksysusrs,numels)
110 IF(ie/=0)THEN
111 vpreload(1,ie) = preload(1,ipl)
112 vpreload(2,ie) = preload(2,ipl)
113 vpreload(3,ie) = preload(3,ipl)
114 vpreload(4,ie) = preload(4,ipl)
115 vpreload(5,ie) = preload(5,ipl)
116 vpreload(6,ie) = preload(6,ipl)
117 vpreload(7,ie) = ipreload(2,ipl)
118 ENDIF
119 ENDDO
120!Create the equivalent of ptsol for BPREL
121 DO ie=1,numels
122 ne = ixs(nixs,ie)
123 j=uel2sys(ne,ksysusrs,numels)
124 iflag_bpreload(ie) =j
125 END DO
126!:::
127C-----------
128 DEALLOCATE(ksysusrs,indexs,itris)
129 RETURN
130 END
131
#define my_real
Definition cppsort.cpp:32
subroutine iniboltprel(ixs, ipreload, preload, vpreload, iflag_bpreload)
Definition iniboltprel.F:34
void my_orders(int *mode, int *iwork, int *data, int *index, int *n, int *irecl)
Definition my_orders.c:82
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:895