OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
iniboltprel.F File Reference
#include "implicit_f.inc"
#include "com04_c.inc"
#include "boltpr_c.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine iniboltprel (ixs, ipreload, preload, vpreload, iflag_bpreload)

Function/Subroutine Documentation

◆ iniboltprel()

subroutine iniboltprel ( integer, dimension(nixs,*) ixs,
integer, dimension(3,*) ipreload,
preload,
vpreload,
integer, dimension(*) iflag_bpreload )

Definition at line 33 of file iniboltprel.F.

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
#define my_real
Definition cppsort.cpp:32
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
integer function uel2sys(iu, ksysusr, numel)
Definition yctrl.F:407