OpenRadioss
2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
unused_mat_detonator.F
Go to the documentation of this file.
1
Copyright> OpenRadioss
2
Copyright> Copyright (C) 1986-2025 Altair Engineering Inc.
3
Copyright>
4
Copyright> This program is free software: you can redistribute it and/or modify
5
Copyright> it under the terms of the GNU Affero General Public License as published by
6
Copyright> the Free Software Foundation, either version 3 of the License, or
7
Copyright> (at your option) any later version.
8
Copyright>
9
Copyright> This program is distributed in the hope that it will be useful,
10
Copyright> but WITHOUT ANY WARRANTY; without even the implied warranty of
11
Copyright> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
Copyright> GNU Affero General Public License for more details.
13
Copyright>
14
Copyright> You should have received a copy of the GNU Affero General Public License
15
Copyright> along with this program. If not, see <https://www.gnu.org/licenses/>.
16
Copyright>
17
Copyright>
18
Copyright> Commercial Alternative: Altair Radioss Software
19
Copyright>
20
Copyright> As an alternative to this open-source version, Altair also offers Altair Radioss
21
Copyright> software under a commercial license. Contact Altair to discuss further if the
22
Copyright> commercial version may interest you: https://www.altair.com/radioss/.
23
!||====================================================================
24
!|| unused_mat_detonator ../starter/source/initial_conditions/detonation/unused_mat_detonator.F
25
!||--- called by ------------------------------------------------------
26
!|| read_dfs_detcord ../starter/source/initial_conditions/detonation/read_dfs_detcord.F
27
!|| read_dfs_detline ../starter/source/initial_conditions/detonation/read_dfs_detline.F
28
!|| read_dfs_detplan ../starter/source/initial_conditions/detonation/read_dfs_detplan.F
29
!|| read_dfs_detpoint ../starter/source/initial_conditions/detonation/read_dfs_detpoint.F
30
!|| read_dfs_wave_shaper ../starter/source/initial_conditions/detonation/read_dfs_wave_shaper.F
31
!||====================================================================
32
FUNCTION
unused_mat_detonator
(MDET,NUMMAT,LISTMAT)
33
C-----------------------------------------------
34
C D e s c r i p t i o n
35
C-----------------------------------------------
36
C This subroutine is checking that detonator material id
37
C does exist in input file
38
C-----------------------------------------------
39
C I m p l i c i t T y p e s
40
C-----------------------------------------------
41
#include "implicit_f.inc"
42
C-----------------------------------------------
43
C C o m m o n B l o c k s
44
C-----------------------------------------------
45
#include "param_c.inc"
46
C-----------------------------------------------
47
C D u m m y A r g u m e n t s
48
C-----------------------------------------------
49
INTEGER
::
unused_mat_detonator
50
INTEGER
,
intent(in)
:: listmat(npropmi,*)
!material used in the model : {LISTMAT(1,I)},I=1..NUMMAT
51
INTEGER
,
intent(inout)
:: mdet
!detonator flag
52
INTEGER
,
intent(in)
:: nummat
!Number of Material cards defined in user file
53
C-----------------------------------------------
54
C L o c a l V a r i a b l e s
55
C-----------------------------------------------
56
INTEGER
jj, i, mid, mln
57
C-----------------------------------------------
58
unused_mat_detonator
=0
59
jj=0
60
IF
(mdet /= 0)
THEN
61
DO
i=1,nummat
62
mid= listmat(1,i)
63
mln= listmat(2,i)
64
IF
(mdet == mid)
THEN
!MDET refer to an used material
65
IF
(mln /= 5 .AND. mln /= 51 .AND. mln /= 97 .AND. mln /= 151)
THEN
66
unused_mat_detonator
=2
67
RETURN
68
ENDIF
69
mdet=i
!Internal ID
70
EXIT
71
ELSEIF
(mid == 0)
THEN
!end of list reached
72
jj=jj+1
73
EXIT
74
ELSE
!MDET does not correspond to this current material
75
jj=jj+1
76
END IF
77
END DO
78
!!JJ=I => All material were compared to Mdet and do not correspond to it.
79
IF
(jj==i)
THEN
80
unused_mat_detonator
=1
81
END IF
82
END IF
83
END FUNCTION
84
C-----------------------------------------------
unused_mat_detonator
integer function unused_mat_detonator(mdet, nummat, listmat)
Definition
unused_mat_detonator.F:33
starter
source
initial_conditions
detonation
unused_mat_detonator.F
Generated by
1.15.0