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 30 of file shell_loc_cor.F.

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