OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
update_weight_inter_type11.F File Reference
#include "implicit_f.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine update_weight_inter_type11 (nelemint, interface_id, nrts, nrtm, ifiend, irectm, irects, i_stok, cand_e, cand_n, inter_cand)

Function/Subroutine Documentation

◆ update_weight_inter_type11()

subroutine update_weight_inter_type11 ( integer, intent(inout) nelemint,
integer, intent(in) interface_id,
integer, intent(in) nrts,
integer, intent(in) nrtm,
integer, intent(inout) ifiend,
integer, dimension(2,nrtm) irectm,
integer, dimension(2,nrts) irects,
integer, intent(in) i_stok,
integer, dimension(i_stok), intent(in) cand_e,
integer, dimension(i_stok), intent(in) cand_n,
type(inter_cand_), intent(inout) inter_cand )
Parameters
[in]interface_idinterface id
[in]nrtsnumber of S segment
[in]nrtmnumber of M segment
[in,out]ifiend???
irectmlist of M nodes for the NRTM segments
irectslist of S nodes for the NRTS segments
[in]i_stoktotal number of pair of candidate
[in]cand_epointer to M node of the candidate I
[in]cand_npointer to S node id of the candidate I

Definition at line 30 of file update_weight_inter_type11.F.

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