OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
update_weight_inter_type11.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!|| update_weight_inter_type11 ../starter/source/spmd/domain_decomposition/update_weight_inter_type11.F
25!||--- called by ------------------------------------------------------
26!|| inint3 ../starter/source/interfaces/inter3d1/inint3.F
27!||--- uses -----------------------------------------------------
28!|| inter_cand_mod ../starter/share/modules1/inter_cand_mod.F
29!||====================================================================
30 SUBROUTINE update_weight_inter_type11(NELEMINT,INTERFACE_ID,NRTS,NRTM,IFIEND,
31 . IRECTM,IRECTS,I_STOK,CAND_E,CAND_N,
32 . INTER_CAND)
33!$COMMENT
34! UPDATE_WEIGHT_INTER_TYPE11 description :
35! save the contact data for interface type 11
36!
37! UPDATE_WEIGHT_INTER_TYPE11 organization :
38! for each contact, save :
39! * 2 main node IDs
40! * 1 secondary node ID
41! * 1 segment ID
42! * type of interface
43!$ENDCOMMENT
45C-----------------------------------------------
46C I m p l i c i t T y p e s
47C-----------------------------------------------
48#include "implicit_f.inc"
49C-----------------------------------------------
50C D u m m y A r g u m e n t s
51C-----------------------------------------------
52 INTEGER, INTENT(inout) :: NELEMINT
53 INTEGER, INTENT(in) :: INTERFACE_ID !< interface id
54 INTEGER, INTENT(in) :: NRTS !< number of S segment
55 INTEGER, INTENT(in) :: NRTM !< number of M segment
56 INTEGER, INTENT(inout) :: IFIEND !< ???
57 INTEGER, DIMENSION(2,NRTM) :: IRECTM !< list of M nodes for the NRTM segments
58 INTEGER, DIMENSION(2,NRTS) :: IRECTS !< list of S nodes for the NRTS segments
59 INTEGER, INTENT(in) :: I_STOK !< total number of pair of candidate
60 INTEGER, DIMENSION(I_STOK), INTENT(in) :: CAND_E !< pointer to M node of the candidate I
61 INTEGER, DIMENSION(I_STOK), INTENT(in) :: CAND_N !< pointer to S node id of the candidate I
62 TYPE(inter_cand_), INTENT(inout) :: INTER_CAND
63C-----------------------------------------------
64C L o c a l V a r i a b l e s
65C-----------------------------------------------
66 INTEGER I
67C-----------------------------------------------
68 ifiend = ifiend + i_stok
69 inter_cand%IXINT(1:inter_cand%S_IXINT_1,nelemint+1:nelemint+i_stok) = 0
70 inter_cand%ADDRESS(interface_id) = nelemint ! save the adress of the first pair
71 ! ---------------------------
72 DO i = 1, i_stok
73 inter_cand%IXINT(1,nelemint+i)=irects(1,cand_n(i))
74 inter_cand%IXINT(2,nelemint+i)=irects(2,cand_n(i))
75 inter_cand%IXINT(3,nelemint+i)=irectm(1,cand_e(i))
76 inter_cand%IXINT(4,nelemint+i)=irectm(2,cand_e(i))
77 inter_cand%IXINT(5,nelemint+i)=irects(1,cand_n(i)) ! choose one S node
78 inter_cand%IXINT(6,nelemint+i)=11
79 inter_cand%IXINT(7,nelemint+i)=cand_e(i)
80 inter_cand%IXINT(8,nelemint+i)=interface_id
81 ENDDO
82 ! ---------------------------
83 nelemint=nelemint+i_stok
84 inter_cand%ADDRESS(interface_id+1) = nelemint ! save the adress of the last pair
85 ! ---------------------------
86
87 RETURN
88 END SUBROUTINE update_weight_inter_type11
subroutine update_weight_inter_type11(nelemint, interface_id, nrts, nrtm, ifiend, irectm, irects, i_stok, cand_e, cand_n, inter_cand)