OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
a3invdp_v.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!|| a3invdp_v ../engine/source/elements/shell/coquez/a3invdp_v.F
25!||--- called by ------------------------------------------------------
26!|| czcorp5 ../engine/source/elements/shell/coquez/czcorp5.F
27!||====================================================================
28 SUBROUTINE a3invdp_v(D,DI,NEL,PLAT)
29C-----------------------------------------------
30C I m p l i c i t T y p e s
31C-----------------------------------------------
32#include "implicit_f.inc"
33
34#include "mvsiz_p.inc"
35C-----------------------------------------------
36C D u m m y A r g u m e n t s
37C-----------------------------------------------
38 INTEGER, INTENT(IN) :: NEL !< number of element of the group
39 LOGICAL, DIMENSION(NEL), INTENT(INOUT) :: PLAT
40 my_real, DIMENSION(MVSIZ,6), INTENT(IN) :: d(mvsiz,6)
41 my_real, DIMENSION(MVSIZ,6), INTENT(INOUT) :: di(mvsiz,6)
42C-----------------------------------------------
43C L o c a l V a r i a b l e s
44C-----------------------------------------------
45 INTEGER :: I
46 DOUBLE PRECISION :: ABC,XXYZ2,YYXZ2,ZZXY2,DETA
47C-----------------------------------------------
48 DO i=1,nel
49 IF(.NOT.plat(i)) THEN
50 abc = d(i,1)*d(i,2)*d(i,3)
51 xxyz2 = d(i,1)*d(i,6)*d(i,6)
52 yyxz2 = d(i,2)*d(i,5)*d(i,5)
53 zzxy2 = d(i,3)*d(i,4)*d(i,4)
54 deta = abs(abc+two*d(i,4)*d(i,5)*d(i,6)-xxyz2-yyxz2-zzxy2)
55 deta = one/max(deta,em20)
56 di(i,1) = (abc-xxyz2)*deta/max(d(i,1),em20)
57 di(i,2) = (abc-yyxz2)*deta/max(d(i,2),em20)
58 di(i,3) = (abc-zzxy2)*deta/max(d(i,3),em20)
59 di(i,4) = (d(i,5)*d(i,6)-d(i,4)*d(i,3))*deta
60 di(i,5) = (d(i,6)*d(i,4)-d(i,5)*d(i,2))*deta
61 di(i,6) = (d(i,4)*d(i,5)-d(i,6)*d(i,1))*deta
62 ENDIF
63 ENDDO
64C
65 RETURN
66 END SUBROUTINE a3invdp_v
subroutine a3invdp_v(d, di, nel, plat)
Definition a3invdp_v.F:29
#define my_real
Definition cppsort.cpp:32
#define max(a, b)
Definition macros.h:21