OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
r1sens3.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!|| r1sens3 ../engine/source/elements/spring/r1sens3.F
25!||--- called by ------------------------------------------------------
26!|| rforc3 ../engine/source/elements/spring/rforc3.F
27!||--- uses -----------------------------------------------------
28!|| sensor_mod ../common_source/modules/sensor_mod.F90
29!||====================================================================
30 SUBROUTINE r1sens3(
31 1 GEO, OFF, SENSOR_TAB,DX,
32 2 X0, IGEO, MGN, NEL, NSENSOR)
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
107 END
#define my_real
Definition cppsort.cpp:32
subroutine r1sens3(geo, off, sensor_tab, dx, x0, igeo, mgn, nel, nsensor)
Definition r1sens3.F:33