OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
create_h3d_shell_vector.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!|| create_h3d_shell_vector ../engine/source/output/h3d/h3d_build_fortran/create_h3d_shell_vector.F
25!||--- called by ------------------------------------------------------
26!|| lech3d ../engine/source/output/h3d/h3d_build_fortran/lech3d.F
27!||--- calls -----------------------------------------------------
28!|| arret ../engine/source/system/arret.F
29!|| create_h3d_output_per_part ../engine/source/output/h3d/h3d_build_fortran/create_h3d_output_per_part.F90
30!||--- uses -----------------------------------------------------
31!|| create_h3d_output_per_part_mod ../engine/source/output/h3d/h3d_build_fortran/create_h3d_output_per_part.F90
32!|| groupdef_mod ../common_source/modules/groupdef_mod.F
33!|| h3d_mod ../engine/share/modules/h3d_mod.F
34!|| names_and_titles_mod ../common_source/modules/names_and_titles_mod.F
35!||====================================================================
36 SUBROUTINE create_h3d_shell_vector(H3D_DATA,ID_SHELL_VECTOR ,N1 ,N2 ,ID_INPUT ,TEXT1 ,
37 . STEXT1 ,COMMENT ,SCOMMENT ,IPART ,KEY3_GLOB ,
38 . LAYER ,IPT ,PLY ,GAUSS ,IUVAR,IGRPART)
39C-----------------------------------------------
40C M o d u l e s
41C-----------------------------------------------
42 USE h3d_mod
44 USE groupdef_mod
45 USE create_h3d_output_per_part_mod
46C-----------------------------------------------
47C I m p l i c i t T y p e s
48C-----------------------------------------------
49#include "implicit_f.inc"
50C-----------------------------------------------
51C D u m m y A r g u m e n t s
52C-----------------------------------------------
53 TYPE (H3D_DATABASE) :: H3D_DATA
54 INTEGER ID_SHELL_VECTOR,ID_INPUT,STEXT1,N1,N2,SCOMMENT,
55 . layer,ipt,ply,iuvar,gauss
56 INTEGER IPART(LIPART1,*)
57 CHARACTER(LEN=STEXT1) :: TEXT1
58 CHARACTER(LEN=SCOMMENT) :: COMMENT
59 CHARACTER(LEN=NCHARLINE100) :: KEY3_GLOB
60 TYPE(group_) ,DIMENSION(NGRPART) ,INTENT(IN) :: IGRPART
61C-----------------------------------------------
62C C o m m o n B l o c k s
63C-----------------------------------------------
64#include "com04_c.inc"
65#include "scr17_c.inc"
66C-----------------------------------------------
67C E x t e r n a l F u n c t i o n s
68C-----------------------------------------------
69 INTEGER NVAR
70C-----------------------------------------------
71C L o c a l V a r i a b l e s
72C-----------------------------------------------
73 CHARACTER(LEN=NCHARLINE100) :: CARTE,CARTE1,TEXT
74 INTEGER I,J,L,N_H3D_PART,STEXT
75C=========================================================================
76 text = ''
77 stext = 0
78
79 h3d_data%N_OUTP_H3D = h3d_data%N_OUTP_H3D + 1
80 h3d_data%OUTPUT_LIST(h3d_data%N_OUTP_H3D)%OK = 1
81 h3d_data%OUTPUT_LIST(h3d_data%N_OUTP_H3D)%KEYWORD = key3_glob
82 h3d_data%OUTPUT_LIST(h3d_data%N_OUTP_H3D)%N_OUTP = h3d_data%N_OUTP_H3D + 3
83 h3d_data%OUTPUT_LIST(h3d_data%N_OUTP_H3D)%ETYPE = 2
84 h3d_data%OUTPUT_LIST(h3d_data%N_OUTP_H3D)%OUTP_TYPE = 2
85 h3d_data%OUTPUT_LIST(h3d_data%N_OUTP_H3D)%LAYER = layer
86 h3d_data%OUTPUT_LIST(h3d_data%N_OUTP_H3D)%IPT = ipt
87 h3d_data%OUTPUT_LIST(h3d_data%N_OUTP_H3D)%PLY = ply
88 h3d_data%OUTPUT_LIST(h3d_data%N_OUTP_H3D)%IUVAR = iuvar
89 h3d_data%OUTPUT_LIST(h3d_data%N_OUTP_H3D)%GAUSS = gauss
90 h3d_data%OUTPUT_LIST(h3d_data%N_OUTP_H3D)%S_STRING1 = stext1
91 h3d_data%OUTPUT_LIST(h3d_data%N_OUTP_H3D)%STRING1(1:stext1) = text1(1:stext1)
92 h3d_data%OUTPUT_LIST(h3d_data%N_OUTP_H3D)%S_STRING2 = 0
93 h3d_data%OUTPUT_LIST(h3d_data%N_OUTP_H3D)%S_COMMENT = scomment
94 h3d_data%OUTPUT_LIST(h3d_data%N_OUTP_H3D)%COMMENT(1:scomment) = comment(1:scomment)
95
96 n_h3d_part = h3d_data%INPUT_LIST(id_input)%NB_PART
97 h3d_data%OUTPUT_LIST(h3d_data%N_OUTP_H3D)%N_H3D_PART_LIST = n_h3d_part
98
99 IF (n_h3d_part /= 0 )
100 . ALLOCATE(h3d_data%OUTPUT_LIST(h3d_data%N_OUTP_H3D)%PART_LIST(n_h3d_part))
101 ALLOCATE(h3d_data%OUTPUT_LIST(h3d_data%N_OUTP_H3D)%PART(npart))
102c
103c DO I=1,N_H3D_PART
104c H3D_DATA%OUTPUT_LIST(H3D_DATA%N_OUTP_H3D)%PART_LIST(I) =
105c . H3D_DATA%INPUT_LIST(ID_INPUT)%PART_LIST(I)
106c
107c ENDDO
108 IF (n_h3d_part /= 0 ) THEN
109 DO i=1,npart
110 h3d_data%OUTPUT_LIST(h3d_data%N_OUTP_H3D)%PART(i) = 0
111 ENDDO
112 ELSE
113 DO i=1,npart
114 h3d_data%OUTPUT_LIST(h3d_data%N_OUTP_H3D)%PART(i) = 1
115 ENDDO
116 ENDIF
117
118c DO J=1,N_H3D_PART
119c print *,'ds la construct_lect',H3D_DATA%INPUT_LIST(ID_INPUT)%PART_LIST(J)
120c ENDDO
121
122 CALL create_h3d_output_per_part(n_h3d_part,h3d_data,id_input,lipart1,npart,ipart,ngrpart,igrpart)
123
124c DO J=1,NPART
125c print *,'ds la construct',H3D_DATA%OUTPUT_LIST(H3D_DATA%N_OUTP_H3D)%PART(J)
126c ENDDO
127
128 RETURN
129 999 print *,'error lecture'
130 CALL arret(0)
131 END
subroutine create_h3d_shell_vector(h3d_data, id_shell_vector, n1, n2, id_input, text1, stext1, comment, scomment, ipart, key3_glob, layer, ipt, ply, gauss, iuvar, igrpart)
integer, parameter ncharline100
subroutine arret(nn)
Definition arret.F:87