OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
surface_min_max_computation.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!|| surface_min_max_computation ../starter/source/initial_conditions/inivol/surface_min_max_computation.F
25!||--- called by ------------------------------------------------------
26!|| init_inivol ../starter/source/initial_conditions/inivol/init_inivol.F90
27!||--- uses -----------------------------------------------------
28!|| inivol_def_mod ../starter/share/modules1/inivol_mod.F
29!||====================================================================
31 . NSURF, NUMNOD,
32 . SURFACE_NUMBER,MIN_MAX_POSITION,X,IGRSURF,INIVOL)
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
81 END SUBROUTINE surface_min_max_computation
#define my_real
Definition cppsort.cpp:32
#define min(a, b)
Definition macros.h:20
#define max(a, b)
Definition macros.h:21
subroutine surface_min_max_computation(nsurf, numnod, surface_number, min_max_position, x, igrsurf, inivol)