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

Go to the source code of this file.

Functions/Subroutines

subroutine shell_loc_cor (x, ixc, j, xl2, yl2, xl3, yl3, xl4, yl4, irep, nn1, nn2, n_dir2)

Function/Subroutine Documentation

◆ shell_loc_cor()

subroutine shell_loc_cor ( dimension(3,numnod), intent(in) x,
integer, dimension(nixc,numelc), intent(in) ixc,
integer, intent(in) j,
intent(inout) xl2,
intent(inout) yl2,
intent(inout) xl3,
intent(inout) yl3,
intent(inout) xl4,
intent(inout) yl4,
integer, intent(in) irep,
integer, intent(in) nn1,
integer, intent(in) nn2,
dimension(2), intent(inout) n_dir2 )

Definition at line 32 of file shell_loc_cor.F.

33 use element_mod , only : nixc
34C-----------------------------------------------
35C I m p l i c i t T y p e s
36C-----------------------------------------------
37#include "implicit_f.inc"
38C-----------------------------------------------
39C C o m m o n B l o c k s
40C-----------------------------------------------
41#include "com04_c.inc"
42C-----------------------------------------------
43C D u m m y A r g u m e n t s
44C-----------------------------------------------
45 INTEGER, INTENT(IN) :: IXC(NIXC,NUMELC),J,IREP,NN1,NN2
46 my_real, INTENT(IN) :: x(3,numnod)
47 my_real, INTENT(INOUT) :: xl2,yl2,xl3,yl3,xl4,yl4,n_dir2(2)
48C-----------------------------------------------
49C L o c a l V a r i a b l e s
50C-----------------------------------------------
51 my_real
52 . rxl,ryl,rzl,sxl,syl,sszl,r11l,r12l,r13l,
53 . r21l,r22l,r23l,r31l,r32l,r33l,xx,yy,zz,offbl,deta1l
54C---------------------------------------------------------
55C
56C---------------------------------------------------------
57C Computation of new reference configuration
58C---------------------------------------------------------
59C
60 rxl=x(1,ixc(3,j))+x(1,ixc(4,j))-x(1,ixc(2,j))-x(1,ixc(5,j))
61 sxl=x(1,ixc(4,j))+x(1,ixc(5,j))-x(1,ixc(2,j))-x(1,ixc(3,j))
62 ryl=x(2,ixc(3,j))+x(2,ixc(4,j))-x(2,ixc(2,j))-x(2,ixc(5,j))
63 syl=x(2,ixc(4,j))+x(2,ixc(5,j))-x(2,ixc(2,j))-x(2,ixc(3,j))
64 rzl=x(3,ixc(3,j))+x(3,ixc(4,j))-x(3,ixc(2,j))-x(3,ixc(5,j))
65 sszl=x(3,ixc(4,j))+x(3,ixc(5,j))-x(3,ixc(2,j))-x(3,ixc(3,j))
66C
67 offbl = one
68 CALL clskew3(1,1,irep,
69 . rxl, ryl, rzl,
70 . sxl, syl, sszl,
71 . r11l,r12l,r13l,r21l,r22l,r23l,r31l,r32l,r33l,deta1l,offbl)
72C
73 xx=x(1,ixc(3,j))-x(1,ixc(2,j))
74 yy=x(2,ixc(3,j))-x(2,ixc(2,j))
75 zz=x(3,ixc(3,j))-x(3,ixc(2,j))
76 xl2=r11l*xx+r21l*yy+r31l*zz
77 yl2=r12l*xx+r22l*yy+r32l*zz
78 xx=x(1,ixc(4,j))-x(1,ixc(2,j))
79 yy=x(2,ixc(4,j))-x(2,ixc(2,j))
80 zz=x(3,ixc(4,j))-x(3,ixc(2,j))
81 xl3=r11l*xx+r21l*yy+r31l*zz
82 yl3=r12l*xx+r22l*yy+r32l*zz
83 xx=x(1,ixc(5,j))-x(1,ixc(2,j))
84 yy=x(2,ixc(5,j))-x(2,ixc(2,j))
85 zz=x(3,ixc(5,j))-x(3,ixc(2,j))
86 xl4=r11l*xx+r21l*yy+r31l*zz
87 yl4=r12l*xx+r22l*yy+r32l*zz
88C
89 IF ((nn1 > 0).AND.(nn2 > 0)) THEN
90 xx=x(1,nn2)-x(1,nn1)
91 yy=x(2,nn2)-x(2,nn1)
92 zz=x(3,nn2)-x(3,nn1)
93 n_dir2(1)=r11l*xx+r21l*yy+r31l*zz
94 n_dir2(2)=r12l*xx+r22l*yy+r32l*zz
95 ENDIF
96C
97 RETURN
subroutine clskew3(jft, jlt, irep, rx, ry, rz, sx, sy, sz, e1x, e2x, e3x, e1y, e2y, e3y, e1z, e2z, e3z, det)
Definition clskew.F:34
#define my_real
Definition cppsort.cpp:32