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

Go to the source code of this file.

Functions/Subroutines

subroutine q4coor2 (x, ncp, y1, y2, y3, y4, z1, z2, z3, z4, nc1, nc2, nc3, nc4, ngl, mat, ngeo, vd2, vis, v, vy1, vy2, vy3, vy4, vz1, vz2, vz3, vz4, yavg, ay, exx, nel, jhbe)

Function/Subroutine Documentation

◆ q4coor2()

subroutine q4coor2 ( x,
integer, dimension(7,*) ncp,
y1,
y2,
y3,
y4,
z1,
z2,
z3,
z4,
integer, dimension(*) nc1,
integer, dimension(*) nc2,
integer, dimension(*) nc3,
integer, dimension(*) nc4,
integer, dimension(*) ngl,
integer, dimension(*) mat,
integer, dimension(*) ngeo,
vd2,
vis,
v,
vy1,
vy2,
vy3,
vy4,
vz1,
vz2,
vz3,
vz4,
yavg,
ay,
exx,
integer, intent(in) nel,
integer, intent(in) jhbe )

Definition at line 28 of file q4coor2.F.

38C-----------------------------------------------
39C I m p l i c i t T y p e s
40C-----------------------------------------------
41#include "implicit_f.inc"
42C-----------------------------------------------
43C G l o b a l P a r a m e t e r s
44C-----------------------------------------------
45#include "mvsiz_p.inc"
46C-----------------------------------------------
47C D u m m y A r g u m e n t s
48C-----------------------------------------------
49 INTEGER, INTENT(IN) :: NEL
50 INTEGER, INTENT(IN) :: JHBE
51 INTEGER NC1(*), NC2(*), NC3(*), NC4(*), MAT(*), NGL(*), NGEO(*),
52 . NCP(7,*)
53C REAL
55 . x(3,*),y1(*),y2(*),y3(*),y4(*),z1(*),z2(*),z3(*),z4(*),vd2(*),
56 . vy1(*),vy2(*),vy3(*),vy4(*),
57 . vz1(*),vz2(*),vz3(*),vz4(*),
58 . v(3,*),yavg(*),exx(*),ay(*),vis(*)
59C-----------------------------------------------
60C C o m m o n B l o c k s
61C-----------------------------------------------
62#include "com01_c.inc"
63C-----------------------------------------------
64C L o c a l V a r i a b l e s
65C-----------------------------------------------
66 INTEGER I,II,IV
68 . vyg(mvsiz)
69C-----------------------------------------------
70 DO i=1,nel
71 ngeo(i)=ncp(6,i)
72 ngl(i)=ncp(7,i)
73 mat(i)=ncp(1,i)
74 nc1(i)=ncp(2,i)
75 nc2(i)=ncp(3,i)
76 nc3(i)=ncp(4,i)
77 nc4(i)=ncp(5,i)
78 END DO
79C
80C----------------------------
81C COORDONNEES NODALES
82C----------------------------
83 DO i=1,nel
84 y1(i)=x(2,nc1(i))
85 z1(i)=x(3,nc1(i))
86 y2(i)=x(2,nc2(i))
87 z2(i)=x(3,nc2(i))
88 y3(i)=x(2,nc3(i))
89 z3(i)=x(3,nc3(i))
90 y4(i)=x(2,nc4(i))
91 z4(i)=x(3,nc4(i))
92 END DO
93C
94 DO i=1,nel
95 vy1(i)=v(2,nc1(i))
96 vz1(i)=v(3,nc1(i))
97 vy2(i)=v(2,nc2(i))
98 vz2(i)=v(3,nc2(i))
99 vy3(i)=v(2,nc3(i))
100 vz3(i)=v(3,nc3(i))
101 vy4(i)=v(2,nc4(i))
102 vz4(i)=v(3,nc4(i))
103 END DO
104C-----Exx ia calculated anyway in global system
105 IF(n2d==1) THEN
106 DO i=1,nel
107 yavg(i) = y1(i)+y2(i)+y3(i)+y4(i)
108 vyg(i) = vy1(i)+vy2(i)+vy3(i)+vy4(i)
109 ENDDO
110C-----JHBE=17 -> petrov G, constant Exx, JHBE=22-> Bubnov
111 DO i=1,nel
112 ay(i) =one/max(em20,yavg(i))
113 exx(i) = vyg(i)*ay(i)
114 ENDDO
115 ENDIF
116 DO i=1,nel
117 vd2(i)=zero
118 vis(i)=zero
119 ENDDO
120C
121 RETURN
#define my_real
Definition cppsort.cpp:32
#define max(a, b)
Definition macros.h:21