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

Go to the source code of this file.

Functions/Subroutines

subroutine w_th_surf_loadp (iloadp, nodlocal, proc, len_ia, cep, th_surf, numnod, sizloadp, nloadp, len_cep, off)
 Writing TH/SURF tabs in restart file.

Function/Subroutine Documentation

◆ w_th_surf_loadp()

subroutine w_th_surf_loadp ( integer, dimension(sizloadp,nloadp), intent(in) iloadp,
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) sizloadp,
integer, intent(in) nloadp,
integer, intent(in) len_cep,
integer, intent(in) off )

Writing TH/SURF tabs in restart file.

Load pressures option

Parameters
[in]len_cepParameters for size tables ( number of nodes,number of parameters in ILOADP tab, number of load pressure, size of CEP)
[in]offIndex in table CEP
[in]procProcessor
[in,out]len_iaLength of integer tables written in restart
[in]iloadpInteger tabs for load pressures (/PFLUID, /PBLAST, /LOAD/PRESSURE )
[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_loadp.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 ,SIZLOADP ,NLOADP ,LEN_CEP !< Parameters for size tables ( number of nodes,number of parameters in ILOADP tab, number of load pressure, 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) :: ILOADP(SIZLOADP,NLOADP) !< Integer tabs for load pressures (/PFLUID, /PBLAST, /LOAD/PRESSURE )
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, K, ADCEP
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 /PFLUID , /PBLAST, /LOADP_HYD option
74C-----------------------------------------------
75
76 CALL my_alloc(ksegs_l,th_surf%S_LOADP_KSEGS)
77 CALL my_alloc(segs_l,th_surf%S_LOADP_SEGS)
78 ksegs_l = 0
79 segs_l = 0
80 nsegp = 0
81 nsegpl = 0
82 adcep = 0
83 DO i = 1, nloadp
84 nl = iloadp(1,i)
85 DO j = 1, nl/4
86 nsegp = nsegp + 1
87 IF(cep(j+off+adcep)==proc) THEN
88 nsegpl = nsegpl + 1
89 ns = th_surf%LOADP_KSEGS (nsegp+1) - th_surf%LOADP_KSEGS (nsegp)
90 ksegs_l(nsegpl+1) =ksegs_l(nsegpl)+ ns
91 DO k=1,ns
92 segs_l(ksegs_l(nsegpl)+k)= th_surf%LOADP_SEGS(th_surf%LOADP_KSEGS (nsegp)+k)
93 ENDDO
94 ENDIF
95 ENDDO
96 adcep = adcep + nl/4
97 ENDDO
98
99 CALL write_i_c(nsegpl+1,1)
100 CALL write_i_c(ksegs_l,nsegpl+1)
101 CALL write_i_c(ksegs_l(nsegpl+1),1)
102 CALL write_i_c(segs_l,ksegs_l(nsegpl+1))
103 len_ia = len_ia + nsegpl+3+ ksegs_l(nsegpl+1)
104
105 DEALLOCATE(ksegs_l,segs_l)
106
107 RETURN
OPTION /TH/SURF outputs of Pressure and Area needed Tabs.
Definition th_surf_mod.F:60
character *2 function nl()
Definition message.F:2354
void write_i_c(int *w, int *len)