OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
sdef43.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/.
23!||====================================================================
24!|| sdef43 ../engine/source/elements/solid/sconnect/sdef43.F
25!||--- called by ------------------------------------------------------
26!|| suser43 ../engine/source/elements/solid/sconnect/suser43.F
27!||====================================================================
28 SUBROUTINE sdef43(NEL ,NPG ,HH ,
29 . DZX ,DYZ ,DZZ ,
30 . VXLOC ,VYLOC ,VZLOC )
31C-----------------------------------------------
32C I m p l i c i t T y p e s
33C-----------------------------------------------
34#include "implicit_f.inc"
35CC-----------------------------------------------
36C C o m m o n B l o c k s
37C-----------------------------------------------
38#include "mvsiz_p.inc"
39C-----------------------------------------------
40C D u m m y A r g u m e n t s
41C-----------------------------------------------
42 INTEGER NEL,NPG
43C REAL
44 my_real
45 . vxloc(mvsiz,8),vyloc(mvsiz,8),vzloc(mvsiz,8),hh(4,npg),
46 . dzx(mvsiz,npg),dyz(mvsiz,npg),dzz(mvsiz,npg)
47C-----------------------------------------------
48C L o c a l V a r i a b l e s
49C-----------------------------------------------
50 INTEGER IEL,IPG
51C REAL
53 . pg,p1,p2,p3,dxinf,dyinf,dzinf,dxsup,dysup,dzsup
54 DATA pg/0.5773502691896257645091488/
55C=======================================================================
56 p1 = (one + pg)*(one - pg) * fourth
57 p2 = (one + pg)*(one + pg) * fourth
58 p3 = (one - pg)*(one - pg) * fourth
59C
60 hh(1,1) = p2
61 hh(2,1) = p1
62 hh(3,1) = p3
63 hh(4,1) = p1
64C
65 hh(1,2) = p1
66 hh(2,2) = p2
67 hh(3,2) = p1
68 hh(4,2) = p3
69C
70 hh(1,3) = p3
71 hh(2,3) = p1
72 hh(3,3) = p2
73 hh(4,3) = p1
74C
75 hh(1,4) = p1
76 hh(2,4) = p3
77 hh(3,4) = p1
78 hh(4,4) = p2
79C
80 DO ipg = 1,npg
81 DO iel = 1,nel
82 dxsup = hh(1,ipg)*vxloc(iel,5)+hh(2,ipg)*vxloc(iel,6)
83 . + hh(3,ipg)*vxloc(iel,7)+hh(4,ipg)*vxloc(iel,8)
84 dxinf = hh(1,ipg)*vxloc(iel,1)+hh(2,ipg)*vxloc(iel,2)
85 . + hh(3,ipg)*vxloc(iel,3)+hh(4,ipg)*vxloc(iel,4)
86 dysup = hh(1,ipg)*vyloc(iel,5)+hh(2,ipg)*vyloc(iel,6)
87 . + hh(3,ipg)*vyloc(iel,7)+hh(4,ipg)*vyloc(iel,8)
88 dyinf = hh(1,ipg)*vyloc(iel,1)+hh(2,ipg)*vyloc(iel,2)
89 . + hh(3,ipg)*vyloc(iel,3)+hh(4,ipg)*vyloc(iel,4)
90 dzsup = hh(1,ipg)*vzloc(iel,5)+hh(2,ipg)*vzloc(iel,6)
91 . + hh(3,ipg)*vzloc(iel,7)+hh(4,ipg)*vzloc(iel,8)
92 dzinf = hh(1,ipg)*vzloc(iel,1)+hh(2,ipg)*vzloc(iel,2)
93 . + hh(3,ipg)*vzloc(iel,3)+hh(4,ipg)*vzloc(iel,4)
94C
95 dzz(iel,ipg) = dzsup - dzinf
96 dyz(iel,ipg) = dysup - dyinf
97 dzx(iel,ipg) = dxsup - dxinf
98 ENDDO
99 ENDDO
100C-----------
101 RETURN
102 END
103
104
#define my_real
Definition cppsort.cpp:32
subroutine sdef43(nel, npg, hh, dzx, dyz, dzz, vxloc, vyloc, vzloc)
Definition sdef43.F:31