OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
agaug3t.F File Reference
#include "implicit_f.inc"
#include "comlock.inc"
#include "com04_c.inc"
#include "vect01_c.inc"
#include "param_c.inc"
#include "tabsiz_c.inc"
#include "lockon.inc"
#include "lockoff.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine agaug3t (lgauge, gauge, phi, ixtg, x, ale_connect)

Function/Subroutine Documentation

◆ agaug3t()

subroutine agaug3t ( integer, dimension(3,nbgauge), intent(inout) lgauge,
dimension(llgauge,nbgauge), intent(inout) gauge,
dimension(sphi), intent(in) phi,
integer, dimension(nixtg,numeltg), intent(in) ixtg,
dimension(3,numnod), intent(in) x,
type(t_ale_connectivity), intent(in) ale_connect )

Definition at line 30 of file agaug3t.F.

32C-----------------------------------------------
33C I m p l i c i t T y p e s
34C-----------------------------------------------
35#include "implicit_f.inc"
36#include "comlock.inc"
37C-----------------------------------------------
38C C o m m o n B l o c k s
39C-----------------------------------------------
40#include "com04_c.inc"
41#include "vect01_c.inc"
42#include "param_c.inc"
43#include "tabsiz_c.inc"
44C-----------------------------------------------
45C D u m m y A r g u m e n t s
46C-----------------------------------------------
47 INTEGER ,INTENT (IN) :: IXTG(NIXTG,NUMELTG)
48 INTEGER ,INTENT (INOUT) :: LGAUGE(3,NBGAUGE)
49 my_real, INTENT(IN) :: phi(sphi),x(3,numnod)
50 my_real, INTENT(INOUT) :: gauge(llgauge,nbgauge)
51 TYPE(t_ale_connectivity), INTENT(IN) :: ALE_CONNECT
52C-----------------------------------------------
53C L o c a l V a r i a b l e s
54C-----------------------------------------------
55 INTEGER I,II,J,N,IG,IAD2
56 my_real alpha,xg,yg,zg,
57 . det_12_1p,det_23_2p,det_31_3p,y1,z1,y2,z2,y3,z3
58C-----------------------------------------------
59C S o u r c e L i n e s
60C-----------------------------------------------
61c--------------------------------------------------------------
62c Searching for the new element associated to the gauge
63c--------------------------------------------------------------
64 DO i=1,llt
65 ii=i+nft
66 iad2 = ale_connect%ee_connect%iad_connect(ii)
67 DO j=1,3
68 n= ale_connect%ee_connect%connected(iad2 + j - 1)
69 IF(n<=0)cycle
70 ig=nint(phi(n))
71 IF(ig==0)cycle
72
73!
74 xg = gauge(2,ig)
75 yg = gauge(3,ig)
76 zg = gauge(4,ig)
77!
78! check if gauge is changing of element
79 ! TRIA 2D
80 !
81 y1 = x(2,ixtg(2,ii))
82 z1 = x(3,ixtg(2,ii))
83 y2 = x(2,ixtg(3,ii))
84 z2 = x(3,ixtg(3,ii))
85 y3 = x(2,ixtg(4,ii))
86 z3 = x(3,ixtg(4,ii))
87!
88 det_12_1p = (y2-y1)*(zg-z1)-(z2-z1)*(yg-y1)
89 det_23_2p = (y3-y2)*(zg-z2)-(z3-z2)*(yg-y2)
90 det_31_3p = (y1-y3)*(zg-z3)-(z1-z3)*(yg-y3)
91!
92 alpha = zero
93 IF ( (det_12_1p >=0 .AND. det_23_2p >=0 .AND.
94 . det_31_3p >=0) .OR.
95 . (det_12_1p <=0 .AND. det_23_2p <=0 .AND.
96 . det_31_3p <=0) ) alpha = one
97
98#include "lockon.inc"
99 IF(alpha == one .AND. alpha >= gauge(5,ig))THEN
100c the gauge is changing of element
101c element associated to the gauge
102 lgauge(1,ig)=-ii
103 gauge(5,ig)=alpha
104 ENDIF
105#include "lockoff.inc"
106 ENDDO
107 ENDDO
108
109
110 RETURN
#define my_real
Definition cppsort.cpp:32
#define alpha
Definition eval.h:35