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

Go to the source code of this file.

Functions/Subroutines

subroutine w_th_surf_pload (ibcl, nodlocal, proc, len_ia, cep, th_surf, numnod, nibcld, nconld, len_cep, off)
 Writing TH/SURF tabs in restart file.

Function/Subroutine Documentation

◆ w_th_surf_pload()

subroutine w_th_surf_pload ( integer, dimension(nibcld,nconld), intent(in) ibcl,
integer, dimension(numnod), intent(in) nodlocal,
integer, intent(in) proc,
integer, intent(inout) len_ia,
integer, dimension(len_cep), intent(in) cep,
type (th_surf_), intent(inout) th_surf,
integer, intent(in) numnod,
integer, intent(in) nibcld,
integer, intent(in) nconld,
integer, intent(in) len_cep,
integer, intent(in) off )

Writing TH/SURF tabs in restart file.

/PLOAD option

Parameters
[in]len_cepParameters for size tables ( number of nodes,number of parameters in IBCL tab, number of pload, size of CEP)
[in]offIndex in table CEP
[in]procProcessor
[in,out]len_iaLength of integer tables written in restart
[in]ibcllist of segments where pressure /PLOAD is applied
[in]nodlocaltable of local nodes
[in]cepProc to which belong the element
[in,out]th_surfType for /TH/SURF and load pressures output tabs

Definition at line 35 of file w_th_surf_pload.F.

38C-----------------------------------------------
39C M o d u l e s
40C-----------------------------------------------
41 USE my_alloc_mod
42 USE th_surf_mod , ONLY : th_surf_
43 USE message_mod
44C-----------------------------------------------
45C I m p l i c i t T y p e s
46C-----------------------------------------------
47#include "implicit_f.inc"
48C-----------------------------------------------
49C C o m m o n B l o c k s
50C-----------------------------------------------
51C-----------------------------------------------
52C D u m m y A r g u m e n t s
53C-----------------------------------------------
54 INTEGER , INTENT(IN) :: NUMNOD ,NIBCLD ,NCONLD ,LEN_CEP !< Parameters for size tables ( number of nodes,number of parameters in IBCL tab, number of pload, size of CEP)
55 INTEGER , INTENT(IN) :: OFF !< Index in table CEP
56 INTEGER , INTENT(IN) :: PROC !< Processor
57 INTEGER , INTENT(INOUT) :: LEN_IA !< Length of integer tables written in restart
58 INTEGER , INTENT(IN) :: IBCL(NIBCLD,NCONLD) !< list of segments where pressure /PLOAD is applied
59 INTEGER , INTENT(IN) :: NODLOCAL(NUMNOD) !< table of local nodes
60 INTEGER , INTENT(IN) :: CEP(LEN_CEP) !< Proc to which belong the element
61 TYPE (TH_SURF_) , INTENT(INOUT) :: TH_SURF !< Type for /TH/SURF and load pressures output tabs
62C-----------------------------------------------
63C L o c a l V a r i a b l e s
64C-----------------------------------------------
65 INTEGER I, J, NSEGP, NSEGPL, NL, NS, N4
66 INTEGER, DIMENSION(:),ALLOCATABLE :: KSEGS_L, SEGS_L
67C-----------------------------------------------
68C S o u r c e L i n e s
69C-----------------------------------------------
70
71C-----------------------------------------------
72C Writing TH/SURF tabs in restart file
73C /PLOAD option
74C-----------------------------------------------
75
76 CALL my_alloc(ksegs_l,th_surf%S_PLOAD_KSEGS)
77 CALL my_alloc(segs_l,th_surf%S_PLOAD_SEGS)
78 ksegs_l = 0
79 segs_l = 0
80 nsegp = 0
81 nsegpl = 0
82 DO i = 1, nconld
83 n4 = ibcl(4,i)
84 IF(n4/=-1) THEN
85 nsegp = nsegp + 1
86 IF(cep(i+off)==proc) THEN
87 nsegpl = nsegpl + 1
88 ns = th_surf%PLOAD_KSEGS (nsegp+1) - th_surf%PLOAD_KSEGS (nsegp)
89 ksegs_l(nsegpl+1) =ksegs_l(nsegpl)+ ns
90 DO j=1,ns
91 segs_l(ksegs_l(nsegpl)+j)= th_surf%PLOAD_SEGS(th_surf%PLOAD_KSEGS (nsegp)+j)
92 ENDDO
93 ENDIF
94 ENDIF
95 ENDDO
96
97 CALL write_i_c(nsegpl+1,1)
98 CALL write_i_c(ksegs_l,nsegpl+1)
99 CALL write_i_c(ksegs_l(nsegpl+1),1)
100 CALL write_i_c(segs_l,ksegs_l(nsegpl+1))
101 len_ia = len_ia + nsegpl+3+ ksegs_l(nsegpl+1)
102
103 DEALLOCATE(ksegs_l,segs_l)
104
105 RETURN
OPTION /TH/SURF outputs of Pressure and Area needed Tabs.
Definition th_surf_mod.F:60
void write_i_c(int *w, int *len)