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