OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
surface_min_max_computation.F File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine surface_min_max_computation (nsurf, numnod, surface_number, min_max_position, x, igrsurf, inivol)

Function/Subroutine Documentation

◆ surface_min_max_computation()

subroutine surface_min_max_computation ( integer, intent(in) nsurf,
integer, intent(in) numnod,
integer, intent(in) surface_number,
intent(inout) min_max_position,
intent(in) x,
type (surf_), dimension(nsurf), intent(in) igrsurf,
type (inivol_struct_), intent(in) inivol )

Definition at line 30 of file surface_min_max_computation.F.

33
35 USE groupdef_mod , only : surf_
36!$COMMENT
37! SURFACE_MIN_MAX_COMPUTATION description
38! SURFACE_MIN_MAX_COMPUTATION computes the min/max position of surface's nodes
39!
40! SURFACE_MIN_MAX_COMPUTATION organization :
41!$ENDCOMMENT
42C-----------------------------------------------
43C I m p l i c i t T y p e s
44C-----------------------------------------------
45#include "implicit_f.inc"
46C-----------------------------------------------
47C D u m m y A r g u m e n t s
48C-----------------------------------------------
49 INTEGER,INTENT(IN) :: NSURF,NUMNOD
50 INTEGER, INTENT(IN) :: SURFACE_NUMBER ! number of surface
51 my_real, DIMENSION(6), INTENT(INOUT) :: min_max_position ! min/max position
52 my_real, DIMENSION(3,NUMNOD), INTENT(IN) :: x ! position
53 TYPE (SURF_), DIMENSION(NSURF), INTENT(IN) :: IGRSURF ! surface data
54 TYPE (INIVOL_STRUCT_), INTENT(IN) :: INIVOL ! inivol data
55C-----------------------------------------------
56C L o c a l V a r i a b l e s
57C-----------------------------------------------
58 INTEGER :: I,J,K
59 INTEGER :: SURFACE_ID,SURFACE_NODE_NUMBER,SURFACE_TYPE
60 INTEGER :: NODE_ID
61C-----------------------------------------------
62C S o u r c e L i n e s
63C-----------------------------------------------
64 DO i=1,surface_number
65 surface_id = inivol%CONTAINER(i)%SURF_ID ! surface id
66 surface_node_number = igrsurf(surface_id)%NSEG ! number of segment of the surface
67 surface_type = igrsurf(surface_id)%TYPE ! type of surface
68 IF(surface_type /= 200 .AND. surface_type /= 101) THEN
69 DO j=1,4
70 DO k=1,surface_node_number
71 node_id = igrsurf(surface_id)%NODES(k,j)
72 min_max_position(1:3) = min(min_max_position(1:3),x(1:3,node_id))
73 min_max_position(4:6) = max(min_max_position(4:6),x(1:3,node_id))
74 ENDDO
75 ENDDO
76 ENDIF
77 ENDDO
78 ! --------------------------
79
80 RETURN
#define my_real
Definition cppsort.cpp:32
#define min(a, b)
Definition macros.h:20
#define max(a, b)
Definition macros.h:21
type(inivol_struct_), dimension(:), allocatable inivol
Definition inivol_mod.F:84