OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
i12m2s.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!|| i12m2s ../engine/source/interfaces/interf/i12m2s.F
25!||--- called by ------------------------------------------------------
26!|| intti12a ../engine/source/interfaces/interf/intti12.F
27!||--- uses -----------------------------------------------------
28!|| ale_mod ../common_source/modules/ale/ale_mod.F
29!|| segvar_mod ../engine/share/modules/segvar_mod.F
30!||====================================================================
31 SUBROUTINE i12m2s(NSN,IRECTS,IRTL,NODVAR,NRTM,NRTS,
32 . ISEGM,ISEGS,SEGVAR,JCODV)
33C-----------------------------------------------
34C M o d u l e s
35C-----------------------------------------------
36 USE segvar_mod
37 USE ale_mod
38C-----------------------------------------------
39C I m p l i c i t T y p e s
40C-----------------------------------------------
41#include "implicit_f.inc"
42C-----------------------------------------------
43C D u m m y A r g u m e n t s
44C-----------------------------------------------
45 INTEGER NSN,IRECTS(4,*),IRTL(*),NRTM,NRTS,ISEGM(*),ISEGS(*),JCODV(*)
46 my_real nodvar(*)
47 TYPE(t_segvar),TARGET :: SEGVAR
48C-----------------------------------------------
49C C o m m o n B l o c k s
50C-----------------------------------------------
51#include "com01_c.inc"
52C-----------------------------------------------
53C L o c a l V a r i a b l e s
54C-----------------------------------------------
55 INTEGER NIR,KVAR, II,I, ADS,J,NN
56 my_real, DIMENSION(:), POINTER :: ptr
57C-----------------------------------------------
58 nir=2
59 IF(n2d==0)nir=4
60 !-------------------------------------!
61 ! main SEGMENT -> SECND NODES !
62 !-------------------------------------!
63 DO kvar=1,ale%GLOBAL%NVCONV
64
65 SELECT CASE(kvar)
66 CASE(1)
67 ptr(1:) => segvar%RHO(1:)
68 CASE(2)
69 ptr(1:) => segvar%EINT(1:)
70 CASE(3)
71 ptr(1:) => segvar%RK(1:)
72 CASE(4)
73 ptr(1:) => segvar%RE(1:)
74 CASE(5)
75 ptr(1:) => segvar%UVAR(1:)
76 END SELECT
77
78 DO ii=1,nsn
79 i=irtl(ii)
80 ads=ale%GLOBAL%NVCONV*(ii-1)+kvar
81 nodvar(ads)=ptr(isegm(i))
82 ENDDO
83
84 DO i=1,nrtm
85 ptr(isegm(i))=zero
86 ENDDO
87
88 ENDDO
89
90 !-------------------------------------!
91 ! SECND NODE -> SECND SEGMENT !
92 !-------------------------------------!
93 DO kvar=1,ale%GLOBAL%NVCONV
94
95 SELECT CASE(kvar)
96 CASE(1)
97 ptr(1:) => segvar%RHO(1:)
98 CASE(2)
99 ptr(1:) => segvar%EINT(1:)
100 CASE(3)
101 ptr(1:) => segvar%RK(1:)
102 CASE(4)
103 ptr(1:) => segvar%RE(1:)
104 CASE(5)
105 ptr(1:) => segvar%UVAR(1:)
106 END SELECT
107
108 DO i=1,nrts
109 ptr(isegs(i))=zero
110 DO j=1,nir
111 ii=irects(j,i)
112 ads=ale%GLOBAL%NVCONV*(ii-1)+kvar
113 ptr(isegs(i))=ptr(isegs(i))+nodvar(ads)
114 ENDDO
115 ptr(isegs(i))=ptr(isegs(i))/float(nir)
116 ENDDO
117 ENDDO
118
119 RETURN
120 END
121
122
#define my_real
Definition cppsort.cpp:32
subroutine i12m2s(nsn, irects, irtl, nodvar, nrtm, nrts, isegm, isegs, segvar, jcodv)
Definition i12m2s.F:33
type(ale_) ale
Definition ale_mod.F:249