OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
r2buf3.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!|| r2buf3 ../starter/source/elements/spring/r2buf3.F
26!||--- called by ------------------------------------------------------
27!|| rinit3 ../starter/source/elements/spring/rinit3.F
28!||--- uses -----------------------------------------------------
29!||====================================================================
30 SUBROUTINE r2buf3(OFF ,GEO ,X ,X0 ,Y0 ,
31 2 Z0 ,IX ,SKEW ,IPOSX ,IPOSY,
32 3 IPOSZ,IPOSXX,IPOSYY,IPOSZZ,IGEO,
33 4 SKEW_ID)
34 use element_mod , only : nixr
35C-----------------------------------------------
36C I m p l i c i t T y p e s
37C-----------------------------------------------
38#include "implicit_f.inc"
39C-----------------------------------------------
40C C o m m o n B l o c k s
41C-----------------------------------------------
42#include "vect01_c.inc"
43#include "param_c.inc"
44C-----------------------------------------------
45C D u m m y A r g u m e n t s
46C-----------------------------------------------
47 INTEGER IX(NIXR,*),IGEO(NPROPGI,*),SKEW_ID(*)
48C REAL
49 my_real
50 . off(*), geo(npropg,*), x(3,*), x0(*), y0(*), z0(*),
51 . skew(lskew,*),iposx(5,*) ,iposy(5,*),
52 . iposz(5,*),iposxx(5,*),iposyy(5,*),iposzz(5,*)
53C-----------------------------------------------
54C L o c a l V a r i a b l e s
55C-----------------------------------------------
56 INTEGER I, J, NG, I1, I2, ISK, USENS
57C REAL
58 my_real
59 . x1, y1, z1, ex, ey, ez
60C-----------------------------------------------
61 DO i=lft,llt
62 j=i+nft
63 usens=igeo(3,ix(1,j))
64 IF(usens<=0)THEN
65C no sensor or Isflag=1
66 off(i)=one
67 ELSE
68 off(i)=-ten
69 END IF
70 ENDDO
71C
72 DO j=1,5
73 DO i=lft,llt
74 iposx(j,i)=zero
75 iposy(j,i)=zero
76 iposz(j,i)=zero
77 iposxx(j,i)=zero
78 iposyy(j,i)=zero
79 iposzz(j,i)=zero
80 ENDDO
81 ENDDO
82C
83 DO i=lft,llt
84 j=i+nft
85 ng=ix(1,j)
86 isk=skew_id(i)
87 i1=ix(2,j)
88 i2=ix(3,j)
89 x1=x(1,i2)-x(1,i1)
90 y1=x(2,i2)-x(2,i1)
91 z1=x(3,i2)-x(3,i1)
92 ex=skew(1,isk)
93 ey=skew(2,isk)
94 ez=skew(3,isk)
95 x0(i)=ex*x1+ey*y1+ez*z1
96 ex=skew(4,isk)
97 ey=skew(5,isk)
98 ez=skew(6,isk)
99 y0(i)=ex*x1+ey*y1+ez*z1
100 ex=skew(7,isk)
101 ey=skew(8,isk)
102 ez=skew(9,isk)
103 z0(i)=ex*x1+ey*y1+ez*z1
104 ENDDO
105C-----------------------------------------------
106 RETURN
107 END
subroutine r2buf3(off, geo, x, x0, y0, z0, ix, skew, iposx, iposy, iposz, iposxx, iposyy, iposzz, igeo, skew_id)
Definition r2buf3.F:34