OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
fill_buffer_51_0.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/.
23!||====================================================================
24!|| fill_buffer_51_0 ../starter/source/materials/mat/mat051/fill_buffer_51_0.F
25!||--- called by ------------------------------------------------------
26!|| read_material_models ../starter/source/materials/read_material_models.F
27!||--- calls -----------------------------------------------------
28!|| fill_buffer_51 ../starter/source/materials/mat/mat051/fill_buffer_51.F
29!||--- uses -----------------------------------------------------
30!|| elbuftag_mod ../starter/share/modules1/elbuftag_mod.F
31!|| message_mod ../starter/share/message_module/message_mod.F
32!||====================================================================
33 SUBROUTINE fill_buffer_51_0(MATPARAM_TAB, IPM, PM, BUFMAT, MAT_PARAM, MLAW_TAG)
34C-----------------------------------------------
35C M o d u l e s
36C-----------------------------------------------
37 USE message_mod
38 USE matparam_def_mod
40 USE matparam_def_mod, ONLY : matparam_struct_
41 USE elbuftag_mod , ONLY : mlaw_tag_
42C-----------------------------------------------
43C D e s c r i p t i o n
44C-----------------------------------------------
45C This subroutine is filling multimaterial law51 buffer UPARAM(:)
46C
47C It is done here and not in lecm51 because we need all material cards and eos card to be read for each submaterial
48C-----------------------------------------------
49C I m p l i c i t T y p e s
50C-----------------------------------------------
51#include "implicit_f.inc"
52C-----------------------------------------------
53C C o m m o n B l o c k s
54C-----------------------------------------------
55#include "param_c.inc"
56#include "com04_c.inc"
57#include "tabsiz_c.inc"
58C-----------------------------------------------
59C D u m m y A r g u m e n t s
60C-----------------------------------------------
61 TYPE(matparam_struct_) ,DIMENSION(NUMMAT), INTENT(INOUT) :: MATPARAM_TAB
62 INTEGER,TARGET,INTENT(INOUT) :: IPM(NPROPMI,NUMMAT)
63 my_real,TARGET,INTENT(INOUT) :: pm(npropm,nummat),bufmat(sbufmat)
64 TYPE(matparam_struct_) ,DIMENSION(NUMMAT) ,INTENT(INOUT) :: MAT_PARAM
65 TYPE(mlaw_tag_) , DIMENSION(NUMMAT) , INTENT(INOUT) :: MLAW_TAG
66C-----------------------------------------------
67C L o c a l V a r i a b l e s
68C-----------------------------------------------
69 INTEGER II,ILAW,IFORM,IADBUF,MAT_ID,NPAR
70 CHARACTER(LEN=NCHARTITLE) :: TITR
71 my_real, DIMENSION(:), POINTER :: uparam
72C-----------------------------------------------
73C S o u r c e L i n e s
74C-----------------------------------------------
75 DO ii=1,nummat-1
76 titr = matparam_tab(ii)%TITLE
77 ilaw = ipm(2,ii)
78 IF(ilaw/=51)cycle
79 iadbuf = ipm(7,ii)
80 npar = ipm(9,ii)
81 iadbuf = max(1,iadbuf)
82 uparam => bufmat(iadbuf:iadbuf+npar-1)
83 iform = nint(uparam(31))
84 ipm(62, ii) = iform
85 mat_id = ipm(1,ii)
86 IF(iform == 12)THEN
87 CALL fill_buffer_51( ipm, pm, uparam, bufmat, mat_id, titr, ii, mat_param, mlaw_tag)
88 pm(38,ii) = uparam(42)
89 ENDIF
90 ENDDO
91C-----------------------------------------------
92
93 RETURN
94 END SUBROUTINE fill_buffer_51_0
#define my_real
Definition cppsort.cpp:32
subroutine fill_buffer_51(ipm, pm, uparam, bufmat, user_id, titr, internal_id, mat_param, mlaw_tag)
subroutine fill_buffer_51_0(matparam_tab, ipm, pm, bufmat, mat_param, mlaw_tag)
#define max(a, b)
Definition macros.h:21
integer, parameter nchartitle