OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
create_h3d_shell_vector.F File Reference
#include "implicit_f.inc"
#include "com04_c.inc"
#include "scr17_c.inc"

Go to the source code of this file.

Functions/Subroutines

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)

Function/Subroutine Documentation

◆ create_h3d_shell_vector()

subroutine create_h3d_shell_vector ( type (h3d_database) h3d_data,
integer id_shell_vector,
integer n1,
integer n2,
integer id_input,
character(len=stext1) text1,
integer stext1,
character(len=scomment) comment,
integer scomment,
integer, dimension(lipart1,*) ipart,
character(len=ncharline100) key3_glob,
integer layer,
integer ipt,
integer ply,
integer gauss,
integer iuvar,
type(group_), dimension(ngrpart), intent(in) igrpart )

Definition at line 36 of file create_h3d_shell_vector.F.

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)
integer, parameter ncharline100
subroutine arret(nn)
Definition arret.F:87