OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
cderii.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!|| cderii ../starter/source/elements/shell/coque/cderii.F
25!||--- called by ------------------------------------------------------
26!|| cbainit3 ../starter/source/elements/shell/coqueba/cbainit3.F
27!|| cinit3 ../starter/source/elements/shell/coque/cinit3.F
28!|| inirig_mat ../starter/source/elements/initia/inirig_mat.F
29!||====================================================================
30 SUBROUTINE cderii(PX1 ,PX2 ,PY1 ,PY2 ,
31 . X1G ,X2G ,X3G ,X4G ,Y1G ,Y2G ,
32 . Y3G ,Y4G ,Z1G ,Z2G ,Z3G ,Z4G ,
33 . E1X ,E2X ,E3X ,E1Y ,E2Y ,E3Y ,E1Z ,E2Z ,E3Z ,
34 . X2L ,X3L ,X4L ,Y2L ,Y3L ,Y4L)
35C-----------------------------------------------
36C I m p l i c i t T y p e s
37C-----------------------------------------------
38#include "implicit_f.inc"
39C-----------------------------------------------
40C G l o b a l P a r a m e t e r s
41C-----------------------------------------------
42#include "mvsiz_p.inc"
43C-----------------------------------------------
44C D u m m y A r g u m e n t s
45C-----------------------------------------------
46 my_real, DIMENSION(MVSIZ), INTENT(IN) ::
47 . e1x ,e2x ,e3x ,e1y ,e2y ,e3y ,e1z ,e2z ,e3z ,
48 . x1g,x2g,x3g,x4g,y1g,y2g,y3g,y4g,z1g,z2g,z3g,z4g
49c
50 my_real, DIMENSION(MVSIZ), INTENT(OUT) :: px1,px2,py1,py2,
51 . x2l,x3l,x4l,y2l,y3l,y4l
52C-----------------------------------------------
53C C o m m o n B l o c k s
54C-----------------------------------------------
55#include "vect01_c.inc"
56C-----------------------------------------------
57C L o c a l V a r i a b l e s
58C-----------------------------------------------
59 INTEGER I
60 my_real, DIMENSION(MVSIZ) :: X21G,Y21G,Z21G,X31G,Y31G,Z31G,X41G,
61 . Y41G,Z41G,Z2L,Z3L,Z4L
62C=======================================================================
63 DO i=lft,llt
64 x21g(i) = x2g(i)-x1g(i)
65 y21g(i) = y2g(i)-y1g(i)
66 z21g(i) = z2g(i)-z1g(i)
67 x31g(i) = x3g(i)-x1g(i)
68 y31g(i) = y3g(i)-y1g(i)
69 z31g(i) = z3g(i)-z1g(i)
70 x41g(i) = x4g(i)-x1g(i)
71 y41g(i) = y4g(i)-y1g(i)
72 z41g(i) = z4g(i)-z1g(i)
73 ENDDO
74C
75 DO i=lft,llt
76 x2l(i)=e1x(i)*x21g(i)+e1y(i)*y21g(i)+e1z(i)*z21g(i)
77 y2l(i)=e2x(i)*x21g(i)+e2y(i)*y21g(i)+e2z(i)*z21g(i)
78c Z2L(I)=E3X(I)*X21G(I)+E3Y(I)*Y21G(I)+E3Z(I)*Z21G(I)
79 x3l(i)=e1x(i)*x31g(i)+e1y(i)*y31g(i)+e1z(i)*z31g(i)
80 y3l(i)=e2x(i)*x31g(i)+e2y(i)*y31g(i)+e2z(i)*z31g(i)
81c Z3L(I)=E3X(I)*X31G(I)+E3Y(I)*Y31G(I)+E3Z(I)*Z31G(I)
82 x4l(i)=e1x(i)*x41g(i)+e1y(i)*y41g(i)+e1z(i)*z41g(i)
83 y4l(i)=e2x(i)*x41g(i)+e2y(i)*y41g(i)+e2z(i)*z41g(i)
84c Z4L(I)=E3X(I)*X41G(I)+E3Y(I)*Y41G(I)+E3Z(I)*Z41G(I)
85 ENDDO
86c
87 DO i=lft,llt
88 px1(i)= half *(y2l(i)-y4l(i))
89 px2(i)= half * y3l(i)
90 py1(i)=-half *(x2l(i)-x4l(i))
91 py2(i)=-half * x3l(i)
92 ENDDO
93c-----------
94 RETURN
95 END
subroutine cderii(px1, px2, py1, py2, x1g, x2g, x3g, x4g, y1g, y2g, y3g, y4g, z1g, z2g, z3g, z4g, e1x, e2x, e3x, e1y, e2y, e3y, e1z, e2z, e3z, x2l, x3l, x4l, y2l, y3l, y4l)
Definition cderii.F:35
#define my_real
Definition cppsort.cpp:32