OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
w_th_surf_loadp.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!> \brief Writing TH/SURF tabs in restart file
25!! \details Load pressures option
26
27!||====================================================================
28!|| w_th_surf_loadp ../starter/source/restart/ddsplit/w_th_surf_loadp.F
29!||--- called by ------------------------------------------------------
30!|| ddsplit ../starter/source/restart/ddsplit/ddsplit.F
31!||--- calls -----------------------------------------------------
32!||--- uses -----------------------------------------------------
33!|| message_mod ../starter/share/message_module/message_mod.F
34!||====================================================================
35 SUBROUTINE w_th_surf_loadp(ILOADP ,NODLOCAL ,PROC ,LEN_IA ,CEP ,
36 . TH_SURF,NUMNOD ,SIZLOADP ,NLOADP ,LEN_CEP,
37 . OFF )
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
108 END
OPTION /TH/SURF outputs of Pressure and Area needed Tabs.
Definition th_surf_mod.F:60
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.
void write_i_c(int *w, int *len)