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

Go to the source code of this file.

Functions/Subroutines

subroutine sensor_energy_total (sensors, enint, encin)

Function/Subroutine Documentation

◆ sensor_energy_total()

subroutine sensor_energy_total ( type (sensors_), intent(inout) sensors,
intent(in) enint,
intent(in) encin )

Definition at line 30 of file sensor_energy_total.F.

31C-----------------------------------------------
32C M o d u l e s
33C-----------------------------------------------
34 USE sensor_mod
35C-----------------------------------------------
36C I m p l i c i t T y p e s
37C-----------------------------------------------
38#include "implicit_f.inc"
39C-----------------------------------------------
40C C o m m o n B l o c k s
41C-----------------------------------------------
42#include "task_c.inc"
43C-----------------------------------------------
44C D u m m y A r g u m e n t s
45C-----------------------------------------------
46 my_real ,INTENT(IN) :: enint
47 my_real ,INTENT(IN) :: encin
48 TYPE (SENSORS_) ,INTENT(INOUT) :: SENSORS
49C-----------------------------------------------
50C L o c a l V a r i a b l e s
51C-----------------------------------------------
52 INTEGER TYP,ISENS,ISELECT
53C-----------------------------------------------
54C D e s c r i p t i o n
55C-----------------------------------------------
56C this routine saves the total internal and kinematic system energy for
57C /SENSOR/ENERGY
58C=======================================================================
59 IF (ispmd==0) THEN
60 DO isens = 1,sensors%NSENSOR
61 typ = sensors%SENSOR_TAB(isens)%TYPE
62 IF (typ == 14) THEN
63 iselect = sensors%SENSOR_TAB(isens)%IPARAM(4)
64 IF (iselect == 2) THEN ! total system energy option is activated
65 sensors%SENSOR_TAB(isens)%VAR(9) = enint
66 sensors%SENSOR_TAB(isens)%VAR(10) = encin
67 ENDIF
68 ENDIF
69 END DO ! ISENS
70 ENDIF
71c-----------
72 RETURN
#define my_real
Definition cppsort.cpp:32