OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
w_ithflux.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!|| w_ithflux ../starter/source/restart/ddsplit/w_ithflux.F
25!||--- called by ------------------------------------------------------
26!|| ddsplit ../starter/source/restart/ddsplit/ddsplit.F
27!||--- calls -----------------------------------------------------
28!||====================================================================
29 SUBROUTINE w_ithflux(IBFFLUX,CEP,PROC,NODLOCAL,NFXFLUX_L,LEN_IA,CEL,IXS,
30 . NUMCONV,NUMRADIA,NFXFLUX,NITFLUX)
31
32C-----------------------------------------------
33C I m p l i c i t T y p e s
34C-----------------------------------------------
35#include "implicit_f.inc"
36C-----------------------------------------------
37C C o m m o n B l o c k s
38C-----------------------------------------------
39#include "com04_c.inc"
40C-----------------------------------------------
41C D u m m y A r g u m e n t s
42C-----------------------------------------------
43 INTEGER ,INTENT(IN) :: NUMCONV
44 INTEGER ,INTENT(IN) :: NUMRADIA
45 INTEGER ,INTENT(IN) :: NFXFLUX
46 INTEGER ,INTENT(IN) :: NITFLUX
47 INTEGER LEN_IA, PROC, NFXFLUX_L, IBFFLUX(NITFLUX,*),CEP(*)
48 INTEGER NODLOCAL(*), CEL(*), IXS(NIXS,*)
49C-----------------------------------------------
50C L o c a l V a r i a b l e s
51C-----------------------------------------------
52 INTEGER I, J, IBTMP(NITFLUX,NFXFLUX_L), N1, N2, N3, N4, OFF, NB_L
53 INTEGER N, NEL, NUSR
54C-----------------------------------------------
55C
56 off = numelc+numeltg+numels+numelq+numelt+numelp+numelr
57 + +numelx+nconld+numconv+numradia
58 nb_l = 0
59C
60 DO i = 1, nfxflux
61 IF(cep(i+off)==proc) THEN
62 nb_l = nb_l + 1
63 IF(ibfflux(10,i) == 0) THEN ! SURFACE FLUX
64 n1 = ibfflux(1,i)
65 n2 = ibfflux(2,i)
66 n3 = ibfflux(3,i)
67 n4 = ibfflux(4,i)
68 ibtmp(1,nb_l) = nodlocal(n1)
69 ibtmp(2,nb_l) = nodlocal(n2)
70 ibtmp(3,nb_l) = nodlocal(n3)
71 ibtmp(4,nb_l) = 0
72 IF(n4 /= 0) ibtmp(4,nb_l) = nodlocal(n4)
73 DO j = 5, nitflux
74 ibtmp(j,nb_l) = ibfflux(j,i)
75 ENDDO
76 ELSEIF(ibfflux(10,i) == 1) THEN ! VOLUMIC FLUX
77 DO j = 1,nitflux
78 ibtmp(j,nb_l) = ibfflux(j,i)
79 ENDDO
80 ibtmp(8,nb_l) = cel(ibtmp(8,nb_l)) ! id local to proc
81 ENDIF
82 ENDIF
83 ENDDO
84C
85 CALL write_i_c(ibtmp,nitflux*nfxflux_l)
86 len_ia = len_ia + nitflux*nfxflux_l
87C
88 RETURN
89 END
90
91
92
93
94!||====================================================================
95!|| applysort2flux ../starter/source/restart/ddsplit/w_ithflux.F
96!||--- called by ------------------------------------------------------
97!|| lectur ../starter/source/starter/lectur.F
98!||====================================================================
99 SUBROUTINE applysort2flux(IBFFLUX,SIZ1,SIZ2,PERMUTATIONS)
100C Apply the new numbering (given in permutations) to the elements IBFFLUX
101C-----------------------------------------------
102C I m p l i c i t T y p e s
103C-----------------------------------------------
104#include "implicit_f.inc"
105C-----------------------------------------------
106C C o m m o n B l o c k s
107C-----------------------------------------------
108
109C-----------------------------------------------
110C D u m m y A r g u m e n t s
111C-----------------------------------------------
112 INTEGER SIZ1,SIZ2
113 INTEGER PERMUTATIONS(*)
114 INTEGER IBFFLUX(SIZ1,SIZ2)
115C-----------------------------------------------
116C L o c a l V a r i a b l e s
117C-----------------------------------------------
118 INTEGER I, J
119C=======================================================================
120 DO i = 1,siz2
121 IF(ibfflux(8,i)<= 0) cycle
122 ibfflux(8,i) = permutations(ibfflux(8,i))
123 END DO
124 RETURN
125 END
subroutine applysort2flux(ibfflux, siz1, siz2, permutations)
Definition w_ithflux.F:100
subroutine w_ithflux(ibfflux, cep, proc, nodlocal, nfxflux_l, len_ia, cel, ixs, numconv, numradia, nfxflux, nitflux)
Definition w_ithflux.F:31
void write_i_c(int *w, int *len)