OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
edefo2.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!|| edefo2 ../engine/source/ale/euler2d/edefo2.F
25!||--- called by ------------------------------------------------------
26!|| bforc2 ../engine/source/ale/bimat/bforc2.F
27!|| qforc2 ../engine/source/elements/solid_2d/quad/qforc2.F
28!||====================================================================
29 SUBROUTINE edefo2(VOL,V,VEUL,
30 . Y1,Y2,Y3,Y4,Z1,Z2,Z3,Z4,
31 . VY1,VY2,VY3,VY4,VZ1,VZ2,VZ3,VZ4,
32 . PY1,PY2,PZ1,PZ2,
33 . WYZ,DYZ,DZY,EYY,EZZ,ETT,EYZ,EYT,EZT,
34 . VOLN,AIRE,DELTAX,VDY,VDZ,VD2,
35 . NC1,NC2,NC3,NC4)
36C-----------------------------------------------
37C I m p l i c i t T y p e s
38C-----------------------------------------------
39#include "implicit_f.inc"
40C-----------------------------------------------
41C G l o b a l P a r a m e t e r s
42C-----------------------------------------------
43#include "mvsiz_p.inc"
44#include "com04_c.inc"
45C-----------------------------------------------
46C D u m m y A r g u m e n t s
47C-----------------------------------------------
49 . vol(*), v(3,numnod), veul(10,*),
50 . y1(*),y2(*),y3(*),y4(*),z1(*),z2(*),z3(*),z4(*),
51 . vy1(*),vy2(*),vy3(*),vy4(*),vz1(*),vz2(*),vz3(*),vz4(*),
52 . py1(*), py2(*), pz1(*), pz2(*),
53 . wyz(*), dyz(*), dzy(*),
54 . eyy(*),ezz(*), ett(*), eyz(*), eyt(*), ezt(*),
55 . voln(*),aire(*),deltax(*),vdy(*),vdz(*),vd2(*)
56 INTEGER NC1(*), NC2(*), NC3(*), NC4(*)
57C-----------------------------------------------
58C C o m m o n B l o c k s
59C-----------------------------------------------
60#include "com01_c.inc"
61#include "com08_c.inc"
62#include "vect01_c.inc"
63C-----------------------------------------------
64C L o c a l V a r i a b l e s
65C-----------------------------------------------
66 INTEGER I, II
67 my_real VY13(MVSIZ), VY24(MVSIZ), VZ13(MVSIZ),VZ24(MVSIZ),YAVG(MVSIZ)
68C-----------------------------------------------
69 DO I=lft,llt
70 ii=i+nft
71 py1(i)=half*(z2(i)-z4(i))
72 py2(i)=half*(z3(i)-z1(i))
73 pz1(i)=half*(y4(i)-y2(i))
74 pz2(i)=half*(y1(i)-y3(i))
75 aire(i)=veul(1,ii)
76 deltax(i)=veul(2,ii)
77 ENDDO !next I
78
79 IF(n2d == 1) THEN
80 DO i=lft,llt
81 voln(i)=vol(i)
82 ENDDO
83 ELSE
84 DO i=lft,llt
85 voln(i)=aire(i)
86 ENDDO
87 ENDIF
88
89 DO i=lft,llt
90 vy1(i)=v(2,nc1(i))
91 vz1(i)=v(3,nc1(i))
92 vy2(i)=v(2,nc2(i))
93 vz2(i)=v(3,nc2(i))
94 vy3(i)=v(2,nc3(i))
95 vz3(i)=v(3,nc3(i))
96 vy4(i)=v(2,nc4(i))
97 vz4(i)=v(3,nc4(i))
98 ENDDO
99
100 IF(mtn /= 11)THEN
101 DO i=lft,llt
102 yavg(i) =y1(i)+y2(i)+y3(i)+y4(i)
103 vy13(i)=vy1(i)-vy3(i)
104 vy24(i)=vy2(i)-vy4(i)
105 vz13(i)=vz1(i)-vz3(i)
106 vz24(i)=vz2(i)-vz4(i)
107 vdy(i)=fourth*(vy1(i)+vy2(i)+vy3(i)+vy4(i))
108 vdz(i)=fourth*(vz1(i)+vz2(i)+vz3(i)+vz4(i))
109 vd2(i)=vdy(i)**2+vdz(i)**2
110 ENDDO
111
112 DO i=lft,llt
113 eyy(i)=(py1(i)*vy13(i)+py2(i)*vy24(i))/aire(i)
114 ezz(i)=(pz1(i)*vz13(i)+pz2(i)*vz24(i))/aire(i)
115 ett(i)=zero
116 dzy(i)=(py1(i)*vz13(i)+py2(i)*vz24(i))/aire(i)
117 dyz(i)=(pz1(i)*vy13(i)+pz2(i)*vy24(i))/aire(i)
118 eyt(i)=zero
119 ezt(i)=zero
120 ENDDO
121
122 IF(n2d == 1) THEN
123 DO i=lft,llt
124 ett(i)=(vy1(i)+vy2(i)+vy3(i)+vy4(i))/yavg(i)
125 ENDDO
126 ENDIF
127
128 DO i=lft,llt
129 eyz(i)= dzy(i)+dyz(i)
130 wyz(i)=half*dt1*(dzy(i)-dyz(i))
131 ENDDO
132 ENDIF
133C-----------------------------------------------
134 RETURN
135 END
#define my_real
Definition cppsort.cpp:32
subroutine edefo2(vol, v, veul, y1, y2, y3, y4, z1, z2, z3, z4, vy1, vy2, vy3, vy4, vz1, vz2, vz3, vz4, py1, py2, pz1, pz2, wyz, dyz, dzy, eyy, ezz, ett, eyz, eyt, ezt, voln, aire, deltax, vdy, vdz, vd2, nc1, nc2, nc3, nc4)
Definition edefo2.F:36