OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
r1sens3.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 r1sens3 (geo, off, sensor_tab, dx, x0, igeo, mgn, nel, nsensor)

Function/Subroutine Documentation

◆ r1sens3()

subroutine r1sens3 ( geo,
off,
type (sensor_str_), dimension(nsensor), intent(in) sensor_tab,
dx,
x0,
integer, dimension(npropgi,*) igeo,
integer, dimension(*) mgn,
integer, intent(in) nel,
integer, intent(in) nsensor )

Definition at line 30 of file r1sens3.F.

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