OpenRadioss
2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
read_failparam.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
!|| read_failparam ../engine/source/output/restart/read_failparam.F
25
!||--- called by ------------------------------------------------------
26
!|| read_matparam ../engine/source/output/restart/read_matparam.F
27
!||--- calls -----------------------------------------------------
28
!|| read_c_c ../common_source/tools/input_output/write_routtines.c
29
!|| read_db ../common_source/tools/input_output/read_db.F
30
!|| read_i_c ../common_source/tools/input_output/write_routtines.c
31
!||--- uses -----------------------------------------------------
32
!|| fail_param_mod ../common_source/modules/mat_elem/fail_param_mod.f90
33
!|| names_and_titles_mod ../common_source/modules/names_and_titles_mod.F
34
!||====================================================================
35
SUBROUTINE
read_failparam
(FAIL)
36
C-----------------------------------------------
37
C M o d u l e s
38
C-----------------------------------------------
39
USE
fail_param_mod
40
USE
names_and_titles_mod
41
C-----------------------------------------------
42
C I m p l i c i t T y p e s
43
C-----------------------------------------------
44
#include "implicit_f.inc"
45
C-----------------------------------------------
46
C D u m m y A r g u m e n t s
47
C-----------------------------------------------
48
TYPE
(fail_param_) ,
INTENT(OUT)
:: FAIL
49
C-----------------------------------------------
50
C L o c a l V a r i a b l e s
51
C-----------------------------------------------
52
INTEGER
:: I,J,IAD,NUPARAM,NIPARAM,NFUNC,NUMTABL,NMOD,LENI,LENR
53
INTEGER
,
DIMENSION(NCHARTITLE)
:: NAME
54
INTEGER
,
DIMENSION(:)
,
ALLOCATABLE
:: IBUF
55
my_real
,
DIMENSION(:)
,
ALLOCATABLE
:: rbuf
56
C=======================================================================
57
leni = 9
58
ALLOCATE
(ibuf(leni))
59
CALL
read_i_c
(ibuf,leni)
60
c
61
fail%IRUPT = ibuf(1)
62
fail%FAIL_ID = ibuf(2)
63
fail%NUPARAM = ibuf(3)
64
fail%NIPARAM = ibuf(4)
65
fail%NUVAR = ibuf(5)
66
fail%NFUNC = ibuf(6)
67
fail%NTABLE = ibuf(7)
68
fail%NMOD = ibuf(8)
69
fail%FAIL_IP = ibuf(9)
70
c
71
DEALLOCATE
(ibuf)
72
c
73
lenr = 1
74
ALLOCATE
(rbuf(lenr))
75
CALL
read_db
(rbuf,lenr)
76
fail%PTHK = rbuf(1)
77
DEALLOCATE
(rbuf)
78
c
79
nuparam = fail%NUPARAM
80
niparam = fail%NIPARAM
81
nfunc = fail%NFUNC
82
numtabl = fail%NTABLE
83
nmod = fail%NMOD
84
85
c read law keyword and keywords of failure modes
86
87
CALL
read_c_c
(name,
nchartitle
)
88
DO
i=1,
nchartitle
89
fail%KEYWORD(i:i) = char(name(i))
90
END DO
91
c
92
ALLOCATE
(fail%MODE(nmod))
93
IF
(nmod > 0)
THEN
94
DO
j = 1,nmod
95
CALL
read_c_c
(name,
nchartitle
)
96
DO
i = 1,
nchartitle
97
fail%MODE(j)(i:i) = char(name(i))
98
END DO
99
END DO
100
END IF
101
c
102
c read model parameters
103
c
104
ALLOCATE
(fail%UPARAM(nuparam))
105
IF
(nuparam > 0)
THEN
106
CALL
read_db
(fail%UPARAM ,nuparam)
107
END IF
108
ALLOCATE
(fail%IPARAM(niparam))
109
IF
(niparam > 0)
THEN
110
CALL
read_i_c
(fail%IPARAM ,niparam)
111
END IF
112
c
113
c read functions
114
c
115
ALLOCATE
(fail%IFUNC(nfunc))
116
IF
(nfunc > 0)
THEN
117
CALL
read_i_c
(fail%IFUNC,nfunc)
118
END IF
119
c
120
c read function tables
121
c
122
ALLOCATE
(fail%TABLE(numtabl))
123
IF
(numtabl > 0)
THEN
124
CALL
read_i_c
(fail%TABLE,numtabl)
125
END IF
126
c-----------
127
RETURN
128
END
my_real
#define my_real
Definition
cppsort.cpp:32
names_and_titles_mod
Definition
names_and_titles_mod.F:997
names_and_titles_mod::nchartitle
integer, parameter nchartitle
Definition
names_and_titles_mod.F:1003
read_db
subroutine read_db(a, n)
Definition
read_db.F:88
read_failparam
subroutine read_failparam(fail)
Definition
read_failparam.F:36
read_c_c
void read_c_c(int *w, int *len)
Definition
write_routtines.c:857
read_i_c
void read_i_c(int *w, int *len)
Definition
write_routtines.c:805
engine
source
output
restart
read_failparam.F
Generated by
1.15.0