OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
r3buf3.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/.
23C
24!||====================================================================
25!|| r3buf3 ../starter/source/elements/spring/r3buf3.F
26!||--- called by ------------------------------------------------------
27!|| rinit3 ../starter/source/elements/spring/rinit3.F
28!||--- calls -----------------------------------------------------
29!|| ancmsg ../starter/source/output/message/message.F
30!||--- uses -----------------------------------------------------
31!|| message_mod ../starter/share/message_module/message_mod.F
32!||====================================================================
33 SUBROUTINE r3buf3(OFF ,GEO ,X ,AL ,IX,
34 . IPOS ,IGEO ,ITAB)
35C-----------------------------------------------
36C M o d u l e s
37C-----------------------------------------------
38 USE message_mod
39 use element_mod , only : nixr
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 "vect01_c.inc"
48#include "param_c.inc"
49#include "random_c.inc"
50C-----------------------------------------------
51C D u m m y A r g u m e n t s
52C-----------------------------------------------
53 INTEGER IX(NIXR,*),IGEO(NPROPGI,*),ITAB(*)
54C REAL
56 . off(*), geo(npropg,*), x(3,*), al(*),ipos(5,*),
57 . al1,al2
58C-----------------------------------------------
59C L o c a l V a r i a b l e s
60C-----------------------------------------------
61 INTEGER I, J, I1, I2, I3, USENS
62C REAL
64 . ex, ey, ez, ex2, ey2, ez2
66 . noise
67C-----------------------------------------------
68 noise = two*sqrt(three)*xalea
69 DO i=lft,llt
70 j=i+nft
71 usens=igeo(3,ix(1,j))
72 IF (usens <= 0) THEN
73C no sensor or Isflag=1
74 off(i)=one
75 ELSE
76 off(i)=-ten
77 ENDIF
78 ENDDO
79C
80 DO j=1,5
81 DO i=lft,llt
82 ipos(j,i)=zero
83 ENDDO
84 ENDDO
85C
86 DO i=lft,llt
87 j=i+nft
88 i1=ix(2,j)
89 i2=ix(3,j)
90 i3=ix(4,j)
91 ex=x(1,i2)-x(1,i1)
92 ey=x(2,i2)-x(2,i1)
93 ez=x(3,i2)-x(3,i1)
94 ex2=x(1,i2)-x(1,i3)
95 ey2=x(2,i2)-x(2,i3)
96 ez2=x(3,i2)-x(3,i3)
97 al(i)=sqrt(ex*ex+ey*ey+ez*ez)+sqrt(ex2*ex2+ey2*ey2+ez2*ez2)
98 al1 = sqrt(ex*ex+ey*ey+ez*ez)
99 al2 = sqrt(ex2*ex2+ey2*ey2+ez2*ez2)
100 IF (al1 < em15 .OR. al2 < em15 .OR.
101 . al1 < noise .OR. al2 < noise) THEN
102 CALL ancmsg(msgid=457,
103 . msgtype=msgwarning,
104 . anmode=aninfo_blind_1,
105 . i1=ix(nixr,j),
106 . i2=itab(i1),
107 . i3=itab(i2),
108 . i4=itab(i3))
109 ENDIF
110 ENDDO
111C-----------------------------------------------
112 RETURN
113 END
#define my_real
Definition cppsort.cpp:32
subroutine noise(dt2r, in, j, buf, v, a, ixs, elbuf_tab, iparg, weight, ixq)
Definition noise.F:41
subroutine r3buf3(off, geo, x, al, ix, ipos, igeo, itab)
Definition r3buf3.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:895