OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
w_th_surf_pload.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 /PLOAD option
26
27!||====================================================================
28!|| w_th_surf_pload ../starter/source/restart/ddsplit/w_th_surf_pload.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_pload(IBCL ,NODLOCAL ,PROC ,LEN_IA ,CEP ,
36 . TH_SURF,NUMNOD ,NIBCLD ,NCONLD ,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 ,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
106 END
OPTION /TH/SURF outputs of Pressure and Area needed Tabs.
Definition th_surf_mod.F:60
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.
void write_i_c(int *w, int *len)