OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
r23sens3.F File Reference
#include "implicit_f.inc"
#include "param_c.inc"
#include "com04_c.inc"
#include "com08_c.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine r23sens3 (geo, off, sensor_tab, dx, dy, dz, x0, y0, z0, rx, ry, rz, igeo, pid, nel, nsensor)

Function/Subroutine Documentation

◆ r23sens3()

subroutine r23sens3 ( geo,
off,
type (sensor_str_), dimension(nsensor) sensor_tab,
dx,
dy,
dz,
x0,
y0,
z0,
rx,
ry,
rz,
integer, dimension(npropgi,*) igeo,
integer, dimension(*) pid,
integer, intent(in) nel,
integer, intent(in) nsensor )

Definition at line 32 of file r23sens3.F.

37C-----------------------------------------------
38C M o d u l e s
39C-----------------------------------------------
40 USE sensor_mod
41C-----------------------------------------------
42C I m p l i c i t T y p e s
43C-----------------------------------------------
44#include "implicit_f.inc"
45C-----------------------------------------------
46C C o m m o n B l o c k s
47C-----------------------------------------------
48#include "param_c.inc"
49#include "com04_c.inc"
50#include "com08_c.inc"
51C-----------------------------------------------
52C D u m m y A r g u m e n t s
53C-----------------------------------------------
54 INTEGER, INTENT(IN) :: NEL,NSENSOR
55 INTEGER IGEO(NPROPGI,*),PID(*)
56 my_real :: geo(npropg,*), off(*), dx(*),dy(*),dz(*),x0(*),y0(*),z0(*),rx(*),ry(*),rz(*)
57 TYPE (SENSOR_STR_) ,DIMENSION(NSENSOR) :: SENSOR_TAB
58C-----------------------------------------------
59C L o c a l V a r i a b l e s
60C-----------------------------------------------
61 INTEGER I, ISENS,K,USENS,IFL
62C-----------------------------------------------
63 DO i=1,nel
64 isens=0
65 usens=igeo(3,pid(i))
66 ifl=igeo(5,pid(i))
67 DO k=1,nsensor
68 IF (abs(usens) == sensor_tab(k)%SENS_ID) isens=k
69 ENDDO
70 IF (ifl == 2) THEN
71C
72C _________ _________
73C __________/ \_________/ \______
74C
75C OFF -10. 1. -10. 1.
76C \_ rupture eventuelle du ressort => 0.
77C (pas de reactivation possible)
78C
79 IF (tt > sensor_tab(isens)%TSTART .AND. off(i) == -ten) THEN
80 off(i) = one
81 x0(i) = x0(i) + dx(i)
82 y0(i) = y0(i) + dy(i)
83 z0(i) = z0(i) + dz(i)
84 dx(i) = zero
85 dy(i) = zero
86 dz(i) = zero
87 rx(i) = zero
88 ry(i) = zero
89 rz(i) = zero
90 ELSEIF (tt < sensor_tab(isens)%TSTART .AND. off(i) == one) THEN
91 off(i) = zero
92 ENDIF
93 ELSEIF (usens > 0) THEN
94C
95C _________
96C __________/
97C
98C OFF -10. 1.
99C \_ rupture eventuelle du ressort => 0.
100C (pas de reactivation possible)
101C
102 IF (tt > sensor_tab(isens)%TSTART .AND. off(i) == -ten)
103 . off(i) = one
104 ELSEIF (usens < 0) THEN
105C
106C _________
107C \_________
108C
109C OFF 1.
110C \_ rupture eventuelle du ressort => 0.
111C
112C
113 IF (tt > sensor_tab(isens)%TSTART) off(i) =zero
114 ENDIF
115 ENDDO
116C
117 RETURN
#define my_real
Definition cppsort.cpp:32