OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
w_tabmat_prop.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/.
23C
24!||====================================================================
25!|| w_tabmat_prop ../starter/source/restart/ddsplit/w_tabmat_prop.F
26!||--- called by ------------------------------------------------------
27!|| ddsplit ../starter/source/restart/ddsplit/ddsplit.F
28!||--- calls -----------------------------------------------------
29!||--- uses -----------------------------------------------------
30!|| mid_pid_mod ../starter/share/modules1/mid_pid_mod.F
31!||====================================================================
32 SUBROUTINE w_tabmat_prop(IPARG,IXC,IXTG,IXS,PROC,NGROUP_L,
33 . POIN_PART_SHELL,POIN_PART_TRI,POIN_PART_SOL,
34 . MID_PID_SHELL,MID_PID_TRI,MID_PID_SOL,
35 . IPARTC,IPARTG,IPARTS)
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-----------------------------------------------
146 END
#define my_real
Definition cppsort.cpp:32
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)
subroutine write_db(a, n)
Definition write_db.F:142