OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
insurfigeo.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!|| insurfigeo ../starter/source/interfaces/interf1/insurfigeo.F
25!||--- called by ------------------------------------------------------
26!|| lecins ../starter/source/interfaces/interf1/lecins.F
27!|| lecint ../starter/source/interfaces/interf1/lecint.F
28!||--- calls -----------------------------------------------------
29!|| countigeo ../starter/source/interfaces/interf1/countigeo.F
30!||--- uses -----------------------------------------------------
31!|| format_mod ../starter/share/modules1/format_mod.F90
32!|| message_mod ../starter/share/message_module/message_mod.F
33!||====================================================================
34 SUBROUTINE insurfigeo(NRT_IGE ,OFFSET_SEG ,MSN_IGE,OFFSET_NODE,IADTABIGE,IR ,IRECT ,NOINT ,
35 . SURF_NODES_IGE,ITAB ,MSV ,ID,TITR,
36 . NIGE,RIGE,XIGE,VIGE,NIGE_TMP,RIGE_TMP,XIGE_TMP,VIGE_TMP)
37C-----------------------------------------------
38C M o d u l e s
39C-----------------------------------------------
40 USE message_mod
42 USE format_mod , ONLY : fmw_4i
43C-----------------------------------------------------------------------
44C READING SURFACES AND COUNTING SEGMENTS
45C ENTREE :
46C NRT_IGE NUMBER OF ITEMS TO READ
47C SORTIE :
48C IRECT
49C-----------------------------------------------
50C I m p l i c i t T y p e s
51C-----------------------------------------------
52#include "implicit_f.inc"
53C-----------------------------------------------
54C C o m m o n B l o c k s
55C-----------------------------------------------
56#include "units_c.inc"
57#include "scr03_c.inc"
58C-----------------------------------------------
59C D u m m y A r g u m e n t s
60C-----------------------------------------------
61 INTEGER NRT_IGE,OFFSET_SEG,NOINT,IR,MSN_IGE,OFFSET_NODE,IADTABIGE
62 INTEGER IRECT(4,*),
63 . itab(*), msv(*),nige_tmp(*),nige(*),surf_nodes_ige(nrt_ige,4)
64 INTEGER ID
65 CHARACTER(LEN=NCHARTITLE) :: TITR
67 . rige(3,*),xige(3,*),vige(3,*),
68 . rige_tmp(3,*),xige_tmp(3,*),vige_tmp(3,*)
69C-----------------------------------------------
70C L o c a l V a r i a b l e s
71C-----------------------------------------------
72 INTEGER I, N23, J, K, IR1, K4
73C-----------------------------------------------
74C E x t e r n a l F u n c t i o n s
75C-----------------------------------------------
76C=======================================================================
77CC in intbuf_tab%nige, we write all the fictitious points second then the fictitious points main
78c NIGE is offset at the routine call
79
80 DO j=1,msn_ige
81 nige(j)=nige_tmp(j+iadtabige)
82 rige(:,j)=rige_tmp(:,j+iadtabige)
83 xige(:,j)=xige_tmp(:,j+iadtabige)
84 vige(:,j)=vige_tmp(:,j+iadtabige)
85 xige(:,j)=xige_tmp(:,j+iadtabige)
86 ENDDO
87 DO j=offset_seg+1,offset_seg+nrt_ige
88 DO k=1,4
89 irect(k,j)=surf_nodes_ige(j,k)+offset_node
90 ENDDO
91 ENDDO
92C-------
93 IF(ir/=0.AND.ir/=2)THEN
94 DO j=offset_seg+1,offset_seg+nrt_ige
95 ir1=irect(1,j)
96 irect(1,j)=irect(2,j)
97 irect(2,j)=ir1
98 ir1=irect(3,j)
99 irect(3,j)=irect(4,j)
100 irect(4,j)=ir1
101 ENDDO
102 ENDIF
103 n23=4
104C-------
105 IF(ipri>=1) THEN
106 WRITE(iout,'(/,A,/)')' SEGMENTS USED FOR ISOGEOMETRIC SURFACE DEFINITION'
107 k=1
108 k4=4
109 DO i=offset_seg+1,offset_seg+nrt_ige
110 WRITE(iout,fmt=fmw_4i)(irect(k,i),k=1,k4) ! ECRITURE NON DEFINITIVE
111 ENDDO
112 ENDIF
113 IF (nrt_ige/=0) CALL countigeo(irect,msv,msn_ige,nrt_ige,offset_seg)
114C------------------------------------------------------------
115 RETURN
116 END
subroutine countigeo(irect, mnn, n, nrt_ige, nrt_fe)
Definition countigeo.F:29
#define my_real
Definition cppsort.cpp:32
subroutine insurfigeo(nrt_ige, offset_seg, msn_ige, offset_node, iadtabige, ir, irect, noint, surf_nodes_ige, itab, msv, id, titr, nige, rige, xige, vige, nige_tmp, rige_tmp, xige_tmp, vige_tmp)
Definition insurfigeo.F:37
integer, parameter nchartitle