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

Go to the source code of this file.

Functions/Subroutines

subroutine h3d_fld_strain (elbuf_tab, x, ixs, jhbe, mlwi, ilay, kcvt, ior_tsh, icstr, nptr, npts, nel, f_exp, evar)

Function/Subroutine Documentation

◆ h3d_fld_strain()

subroutine h3d_fld_strain ( type (elbuf_struct_), target elbuf_tab,
intent(in) x,
integer, dimension(nixs,numels), intent(in) ixs,
integer, intent(in) jhbe,
integer, intent(in) mlwi,
integer, intent(in) ilay,
integer, intent(in) kcvt,
integer, intent(in) ior_tsh,
integer, intent(in) icstr,
integer, intent(in) nptr,
integer, intent(in) npts,
integer, intent(in) nel,
intent(in) f_exp,
intent(out) evar )

Definition at line 35 of file h3d_fld_strain.F.

38C-----------------------------------------------
39C M o d u l e s
40C-----------------------------------------------
41 USE elbufdef_mod
42 use element_mod , only : nixs
43C-----------------------------------------------
44C I m p l i c i t T y p e s
45C-----------------------------------------------
46#include "implicit_f.inc"
47C-----------------------------------------------
48C C o m m o n B l o c k s
49C-----------------------------------------------
50#include "mvsiz_p.inc"
51#include "com04_c.inc"
52C-----------------------------------------------
53C D u m m y A r g u m e n t s
54C-----------------------------------------------
55 INTEGER , INTENT(IN) :: JHBE,ILAY,MLWI,KCVT,IOR_TSH,
56 . NPTR,NPTS,ICSTR,NEL
57 INTEGER ,DIMENSION(NIXS,NUMELS), INTENT(IN) :: IXS
58 my_real , INTENT(IN) :: f_exp
59 my_real ,DIMENSION(3,MVSIZ), INTENT(OUT) :: evar
60 my_real ,DIMENSION(3,NUMNOD), INTENT(IN) :: x
61 TYPE (ELBUF_STRUCT_), TARGET :: ELBUF_TAB
62C-----------------------------------------------
63C L o c a l V a r i a b l e s
64C-----------------------------------------------
66 . dir(mvsiz,2),dirb(mvsiz,2)
67 INTEGER I,IR,IS,IT,JJ(4)
68
69 TYPE(G_BUFEL_) ,POINTER :: GBUF
70 TYPE(L_BUFEL_) ,POINTER :: LBUF
71C-----------------------------------------------
72 evar(1:3,1:nel) = zero
73 it = 1
74 ir = 0
75 is = 0
76 DO i=1,4
77 jj(i) = nel*(i-1)
78 ENDDO
79 gbuf => elbuf_tab%GBUF
80 IF (jhbe==15) THEN
81 ir = 1
82 is = 1
83 lbuf => elbuf_tab%BUFLY(ilay)%LBUF(ir,is,it)
84 IF (mlwi == 12 .OR. mlwi == 14) THEN
85 DO i=1,nel
86 evar(1:2,i) = lbuf%EPE(jj(1:2) + i)
87 evar(3,i) = half*lbuf%EPE(jj(4) + i)
88 ENDDO
89 ELSEIF (mlwi /= 49 ) THEN
90 DO i=1,nel
91 evar(1:2,i) = lbuf%STRA(jj(1:2) + i)
92 evar(3,i) = half*lbuf%STRA(jj(4) + i)
93 ENDDO
94 END IF
95C------
96 ELSE ! 14,16
97 IF (mlwi == 12 .OR. mlwi == 14) THEN
98 DO ir=1,nptr
99 DO is=1,npts
100 lbuf => elbuf_tab%BUFLY(ilay)%LBUF(ir,is,it)
101 DO i=1,nel
102 evar(1:2,i) = evar(1:2,i)+lbuf%EPE(jj(1:2) + i)
103 evar(3,i) = evar(3,i)+half*lbuf%EPE(jj(4) + i)
104 ENDDO
105 END DO
106 END DO
107 ELSEIF (mlwi /= 49 ) THEN
108 DO ir=1,nptr
109 DO is=1,npts
110 lbuf => elbuf_tab%BUFLY(ilay)%LBUF(ir,is,it)
111 DO i=1,nel
112 evar(1:2,i) = evar(1:2,i)+lbuf%STRA(jj(1:2) + i)
113 evar(3,i) = evar(3,i)+ half*lbuf%STRA(jj(4) + i)
114 ENDDO
115 ENDDO
116 END DO
117 END IF
118 END IF
119 evar(1:3,1:nel) = f_exp*evar(1:3,1:nel)
120C------
121 IF (kcvt==2) THEN
122 IF(ior_tsh==1)THEN
123 DO i=1,nel
124 dir(i,1:2)= gbuf%GAMA(jj(1:2) + i)
125 ENDDO
126 ELSEIF(ior_tsh==2)THEN
127 IF(jhbe==14)THEN
128 ir = 1
129 is = 1
130 END IF
131 lbuf => elbuf_tab%BUFLY(ilay)%LBUF(ir,is,it)
132 DO i=1,nel
133 dir(i,1:2)= lbuf%GAMA(jj(1:2) + i)
134 ENDDO
135 END IF
136 CALL tsh_dir2(x,ixs,dir,dirb,icstr,nel)
137 CALL roto_sig2d(1,nel,evar,dirb)
138 END IF !(KCVT==2) THEN
139C
140 RETURN
#define my_real
Definition cppsort.cpp:32
subroutine tsh_dir2(x, ixs, dir, dirb, icstr, nel)
subroutine roto_sig2d(jft, jlt, sig, dir)