OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
w_tabmat_prop.F File Reference
#include "implicit_f.inc"
#include "param_c.inc"
#include "com01_c.inc"
#include "com04_c.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine w_tabmat_prop (iparg, ixc, ixtg, ixs, proc, ngroup_l, poin_part_shell, poin_part_tri, poin_part_sol, mid_pid_shell, mid_pid_tri, mid_pid_sol, ipartc, ipartg, iparts)

Function/Subroutine Documentation

◆ w_tabmat_prop()

subroutine w_tabmat_prop ( integer, dimension(nparg,*) iparg,
integer, dimension(nixc,numelc) ixc,
integer, dimension(nixtg,numeltg) ixtg,
integer, dimension(nixs,numels) ixs,
integer proc,
integer ngroup_l,
integer, dimension(2,npart), intent(in) poin_part_shell,
integer, dimension(2,npart), intent(in) poin_part_tri,
integer, dimension(2,npart,7), intent(in) poin_part_sol,
type(mid_pid_type), dimension(nummat), intent(in) mid_pid_shell,
type(mid_pid_type), dimension(nummat), intent(in) mid_pid_tri,
type(mid_pid_type), dimension(nummat,7), intent(in) mid_pid_sol,
integer, dimension(*), intent(in) ipartc,
integer, dimension(*), intent(in) ipartg,
integer, dimension(*), intent(in) iparts )

Definition at line 32 of file w_tabmat_prop.F.

36 USE mid_pid_mod
37 use element_mod , only : nixs,nixc,nixtg
38C-----------------------------------------------
39C I m p l i c i t T y p e s
40C-----------------------------------------------
41#include "implicit_f.inc"
42C-----------------------------------------------
43C C o m m o n B l o c k s
44C-----------------------------------------------
45#include "param_c.inc"
46#include "com01_c.inc"
47#include "com04_c.inc"
48C-----------------------------------------------
49C D u m m y A r g u m e n t s
50C-----------------------------------------------
51 INTEGER, DIMENSION(*), INTENT(IN) :: IPARTC,IPARTG,IPARTS
52 INTEGER, DIMENSION(2,NPART), INTENT(IN) :: POIN_PART_SHELL,POIN_PART_TRI
53 INTEGER, DIMENSION(2,NPART,7), INTENT(IN) :: POIN_PART_SOL
54 TYPE(MID_PID_TYPE), DIMENSION(NUMMAT), INTENT(IN) :: MID_PID_SHELL,MID_PID_TRI
55 TYPE(MID_PID_TYPE), DIMENSION(NUMMAT,7), INTENT(IN) :: MID_PID_SOL
56 INTEGER IPARG(NPARG,*)
57 INTEGER IXC(NIXC,NUMELC),IXTG(NIXTG,NUMELTG),IXS(NIXS,NUMELS)
58 INTEGER NGROUP_L,PROC
59C-----------------------------------------------
60C L o c a l V a r i a b l e s
61C-----------------------------------------------
62 my_real tab_mat(ngroup_l)
63 INTEGER NG_L,NG,P,MID,PID,NFT,ISOL,INDI,ITY,ILAW
64 INTEGER :: POIN_ELM_TYP,POIN_MID,POIN_PID,POIN_PART
65C-----------------------------------------------
66! write the element cost
67! for LAW = 0, write ZERO (because the array MID_PID_[X] does not exist)
68 ng_l=0
69 tab_mat(1:ngroup_l)=zero
70 DO ng=1,ngroup
71 p = iparg(32,ng)
72
73 IF(p==proc)THEN
74 ng_l = ng_l+1
75 nft = iparg(3,ng)+1
76 ity = iparg(5,ng)
77 ilaw = iparg(1,ng)
78
79 IF(ity==1) THEN
80 mid = ixs(1,nft)
81 pid = ixs(10,nft)
82 isol = iparg(28,ng)
83
84 IF(isol==4) THEN
85 indi = 6
86 poin_elm_typ = 6
87 ELSEIF(isol==6) THEN
88 indi = 5
89 poin_elm_typ = 5
90 ELSEIF(isol==8) THEN
91 indi = 1
92 poin_elm_typ = 7
93 ELSEIF(isol==10) THEN
94 indi = 2
95 poin_elm_typ = 2
96 ELSEIF(isol==16) THEN
97 indi = 3
98 poin_elm_typ = 3
99 ELSEIF(isol==20) THEN
100 indi = 4
101 poin_elm_typ = 4
102 ELSE
103 indi = 7
104 poin_elm_typ = 1
105 ENDIF
106
107 indi = indi+2
108 poin_part = iparts(nft)
109 poin_mid = poin_part_sol(1,poin_part,poin_elm_typ)
110 poin_pid = poin_part_sol(2,poin_part,poin_elm_typ)
111 IF(ilaw/=0) THEN
112 tab_mat(ng_l) = mid_pid_sol(poin_mid,poin_elm_typ)%COST1D(poin_pid)
113 ELSE
114 tab_mat(ng_l) = zero
115 ENDIF
116
117 ELSEIF(ity==3) THEN
118 mid = ixc(1,nft)
119 pid = ixc(6,nft)
120 poin_part = ipartc(nft)
121 poin_mid = poin_part_shell(1,poin_part)
122 poin_pid = poin_part_shell(2,poin_part)
123 IF(ilaw/=0) THEN
124 tab_mat(ng_l)= mid_pid_shell(poin_mid)%COST1D(poin_pid)
125 ELSE
126 tab_mat(ng_l) = zero
127 ENDIF
128
129 ELSEIF(ity==7) THEN
130 mid = ixtg(1,nft)
131 pid = ixtg(5,nft)
132 poin_part = ipartg(nft)
133 poin_mid = poin_part_tri(1,poin_part)
134 poin_pid = poin_part_tri(2,poin_part)
135 IF(ilaw/=0) THEN
136 tab_mat(ng_l)= mid_pid_tri(poin_mid)%COST1D(poin_pid)
137 ELSE
138 tab_mat(ng_l) = zero
139 ENDIF
140 ENDIF
141 ENDIF
142 ENDDO
143
144 CALL write_db(tab_mat,ngroup_l)
145C-----------------------------------------------
#define my_real
Definition cppsort.cpp:32
subroutine write_db(a, n)
Definition write_db.F:142