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