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

Go to the source code of this file.

Functions/Subroutines

subroutine a3invdp_v (d, di, nel, plat)

Function/Subroutine Documentation

◆ a3invdp_v()

subroutine a3invdp_v ( dimension(mvsiz,6), intent(in) d,
dimension(mvsiz,6), intent(inout) di,
integer, intent(in) nel,
logical, dimension(nel), intent(inout) plat )
Parameters
[in]nelnumber of element of the group

Definition at line 28 of file a3invdp_v.F.

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
#define my_real
Definition cppsort.cpp:32
#define max(a, b)
Definition macros.h:21