OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
insurf23.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!|| insurf23 ../starter/source/interfaces/interf1/insurf23.F
25!||--- called by ------------------------------------------------------
26!|| lecins ../starter/source/interfaces/interf1/lecins.F
27!|| lecint ../starter/source/interfaces/interf1/lecint.F
28!||--- calls -----------------------------------------------------
29!|| count3 ../starter/source/interfaces/interf1/count3.F
30!||--- uses -----------------------------------------------------
31!|| format_mod ../starter/share/modules1/format_mod.F90
32!||====================================================================
33 SUBROUTINE insurf23(NRT ,MSN ,IR ,IRECT ,NOINT ,
34 . SURF_NODES,ITAB ,MSV ,NRTNEW,X ,
35 . NTAG )
36C-----------------------------------------------
37C M o d u l e s
38C-----------------------------------------------
39 USE format_mod , ONLY : fmw_4i
40C-----------------------------------------------
41C D e s c r i p t i o n
42C-----------------------------------------------
43C READING SURFACE AND NUMBERING SEGMENTS
44C IN : NRT NOMBRE DE RENSEIGNEMENTS A LIRE
45C OUT : IRECT
46C-----------------------------------------------
47C I m p l i c i t T y p e s
48C-----------------------------------------------
49#include "implicit_f.inc"
50C-----------------------------------------------
51C C o m m o n B l o c k s
52C-----------------------------------------------
53#include "units_c.inc"
54#include "com01_c.inc"
55#include "com04_c.inc"
56#include "scr03_c.inc"
57C-----------------------------------------------
58C D u m m y A r g u m e n t s
59C-----------------------------------------------
60 INTEGER NRT, NOINT, IR, MSN, NRTNEW
61 INTEGER IRECT(4,*), ITAB(*), MSV(*),SURF_NODES(NRT,4)
62 INTEGER, DIMENSION(2*NUMNOD+1), INTENT(INOUT) :: NTAG
63 my_real x(3,*)
64C-----------------------------------------------
65C L o c a l V a r i a b l e s
66C-----------------------------------------------
67 INTEGER I, N23, IT, J, NSGOLD,ITG,K,IR1,K4,N1,N2,N3,N4
68 my_real X13,Y13,Z13,X24,Y24,Z24,D1,D2
69C=======================================================================
70 nrtnew=0
71
72 i=1
73 DO j=1,nrt
74 n1=surf_nodes(j,1)
75 n2=surf_nodes(j,2)
76 n3=surf_nodes(j,3)
77 n4=surf_nodes(j,4)
78 nrtnew=nrtnew+1
79 irect(1,nrtnew)=n1
80 irect(2,nrtnew)=n2
81 irect(3,nrtnew)=n3
82 irect(4,nrtnew)=n4
83 ENDDO
84C-------
85 IF(ipri>=1) THEN
86 WRITE(iout,'(/,A,/)')' SEGMENTS USED FOR SURFACE DEFINITION'
87 k=1
88 k4=4
89 IF(n2d/=0)k4=2
90 DO i=1,nrtnew
91 WRITE(iout,fmt=fmw_4i)(itab(irect(k,i)),k=1,k4)
92 ENDDO
93 ENDIF
94 IF (nrtnew/=0) CALL count3(irect,msv,msn,nrtnew,ntag)
95C------------------------------------------------------------
96 RETURN
97 END
subroutine count3(irect, mnn, n, nrt, ntag)
Definition count3.F:33
#define my_real
Definition cppsort.cpp:32
subroutine insurf23(nrt, msn, ir, irect, noint, surf_nodes, itab, msv, nrtnew, x, ntag)
Definition insurf23.F:36