OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
i12nod3.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!|| i12nod3 ../engine/source/interfaces/interf/i12nod3.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 i12nod3(NRT,ISEG,IRECT,SEGVAR,JCODV,
32 . NODVAR,FCOUNT,NSN)
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 NRT,IRECT(4,*),JCODV(*),ISEG(*),FCOUNT(*),NSN
46 my_real nodvar(*)
47 TYPE(t_segvar),TARGET :: SEGVAR
48C-----------------------------------------------
49C L o c a l V a r i a b l e s
50C-----------------------------------------------
51 INTEGER I,J,KK,KVAR,NODAD,SEGAD
52 my_real,DIMENSION(:),POINTER :: ptr
53C-----------------------------------------------
54 DO i=1,nsn*ale%GLOBAL%NVCONV
55 nodvar(i)=zero
56 ENDDO
57
58
59 DO kvar=1,ale%GLOBAL%NVCONV
60 DO i=1,nrt
61 kk=iseg(i)
62 SELECT CASE(kvar)
63 CASE(1)
64 ptr(1:) => segvar%RHO(1:)
65 CASE(2)
66 ptr(1:) => segvar%EINT(1:)
67 CASE(3)
68 ptr(1:) => segvar%RK(1:)
69 CASE(4)
70 ptr(1:) => segvar%RE(1:)
71 CASE(5)
72 ptr(1:) => segvar%UVAR(1:)
73 END SELECT
74
75 DO j=1,4
76 nodad=ale%GLOBAL%NVCONV*(irect(j,i)-1)+kvar
77 nodvar(nodad)=nodvar(nodad)+ptr(kk)
78 ENDDO
79 ENDDO
80 ENDDO
81
82 DO i=1,nsn
83 DO kvar=1,ale%GLOBAL%NVCONV
84 nodad=ale%GLOBAL%NVCONV*(i-1)+kvar
85 nodvar(nodad)=nodvar(nodad)/float(abs(fcount(i)))
86 ENDDO
87 ENDDO
88
89 RETURN
90 END
91
#define my_real
Definition cppsort.cpp:32
subroutine i12nod3(nrt, iseg, irect, segvar, jcodv, nodvar, fcount, nsn)
Definition i12nod3.F:33
type(ale_) ale
Definition ale_mod.F:249