OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
q4vis2.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!|| q4vis2 ../engine/source/elements/solid_2d/quad4/q4vis2.F
25!||--- called by ------------------------------------------------------
26!|| q4forc2 ../engine/source/elements/solid_2d/quad4/q4forc2.F
27!||====================================================================
28 SUBROUTINE q4vis2(
29 1 PM, OFF, RHO, Y1,
30 2 Y2, Y3, Y4, Z1,
31 3 Z2, Z3, Z4, VY1,
32 4 VY2, VY3, VY4, VZ1,
33 5 VZ2, VZ3, VZ4, PY1,
34 6 PY2, PZ1, PZ2, T11,
35 7 T12, T13, T14, T21,
36 8 T22, T23, T24, AREA,
37 9 CXX, NEL)
38C-----------------------------------------------
39C I m p l i c i t T y p e s
40C-----------------------------------------------
41#include "implicit_f.inc"
42#include "comlock.inc"
43C-----------------------------------------------
44C G l o b a l P a r a m e t e r s
45C-----------------------------------------------
46#include "mvsiz_p.inc"
47C-----------------------------------------------
48C C o m m o n B l o c k s
49C-----------------------------------------------
50#include "param_c.inc"
51C-----------------------------------------------
52C D u m m y A r g u m e n t s
53C-----------------------------------------------
54 INTEGER, INTENT(IN) :: NEL
55 my_real
56 . PM(NPROPM,*),OFF(*), RHO(*),
57 . Y1(*),Y2(*),Y3(*),Y4(*),Z1(*),Z2(*),Z3(*),Z4(*),
58 . VY1(*), VY2(*), VY3(*), VY4(*), VZ1(*), VZ2(*), VZ3(*),
59 . PY1(*), PY2(*), PZ1(*), PZ2(*),
60 . T11(*), T12(*), T13(*), T14(*), T21(*), T22(*), T23(*), T24(*),
61 . VZ4(*), AREA(*), CXX(*)
62C-----------------------------------------------
63C L o c a l V a r i a b l e s
64C-----------------------------------------------
65 INTEGER I
66 my_real
67 . CAQ(MVSIZ),FCL(MVSIZ) ,
68 . G11(MVSIZ) , G21(MVSIZ) , G31(MVSIZ) , G41(MVSIZ),
69 . HGY(MVSIZ), HGZ(MVSIZ),
70 . HY,HZ,FAC,PX1H1,PX2H1, ARE
71C-----------------------------------------------
72C
73c will use CAQ if necessary CAQ=0.001 (Quad BELYTSCHKO CAQ=0.1)
74C
75 DO i=1,nel
76 fac = em03*off(i)
77 are = max(area(i),em20)
78 fcl(i)=half*fac*rho(i)*sqrt(are)*cxx(i)
79 END DO
80C
81C
82C HOURGLASS BELYTSCHKO
83C
84 DO i=1,nel
85 hy=y1(i)-y2(i)+y3(i)-y4(i)
86 hz=z1(i)-z2(i)+z3(i)-z4(i)
87 fac=one/max(em20,area(i))
88 px1h1=fac*(py1(i)*hy+pz1(i)*hz)
89 px2h1=fac*(py2(i)*hy+pz2(i)*hz)
90 g11(i)= one -px1h1
91 g21(i)=-one -px2h1
92 g31(i)= one +px1h1
93 g41(i)=-one +px2h1
94 END DO
95 DO i=1,nel
96 hgy(i)=fcl(i)*(
97 & g11(i)*vy1(i)+g21(i)*vy2(i)+g31(i)*vy3(i)+g41(i)*vy4(i))
98 hgz(i)=fcl(i)*(
99 & g11(i)*vz1(i)+g21(i)*vz2(i)+g31(i)*vz3(i)+g41(i)*vz4(i))
100 END DO
101 DO i=1,nel
102 t11(i) =t11(i) - g11(i)*hgy(i)
103 t12(i) =t12(i) - g21(i)*hgy(i)
104 t13(i) =t13(i) - g31(i)*hgy(i)
105 t14(i) =t14(i) - g41(i)*hgy(i)
106 t21(i) =t21(i) - g11(i)*hgz(i)
107 t22(i) =t22(i) - g21(i)*hgz(i)
108 t23(i) =t23(i) - g31(i)*hgz(i)
109 t24(i) =t24(i) - g41(i)*hgz(i)
110 END DO
111C
112 RETURN
113 END
#define max(a, b)
Definition macros.h:21
subroutine q4vis2(pm, off, rho, y1, y2, y3, y4, z1, z2, z3, z4, vy1, vy2, vy3, vy4, vz1, vz2, vz3, vz4, py1, py2, pz1, pz2, t11, t12, t13, t14, t21, t22, t23, t24, area, cxx, nel)
Definition q4vis2.F:38