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
subroutine ddsplit(p, cep, cel, igeo, mat_elem, ipm, icode, iskew, iskn, insel, ibcslag, ipart, iparts, ipartq, ipartc, ipartt, ipartp, ipartr, iparttg, detonators, ipartx, npc, ixtg, group_param_tab, ixtg6, ixs, ixs10, ixs20, ixs16, ixq, ixc, ixt, ixp, ixr, itab, itabm1, gjbufi, nale, ale_connectivity, kxx, ixx, ibcl, ibfv, las, laccelm, nnlink, lllink, iparg, igrav, lgrav, ibvel, lbvel, iactiv, factiv, kinet, ipari, nprw, lprw, iexmad, npby, lpby, ixri, nstrf, ljoint, pornod, monvol, icontact, lagbuf, fr_iad, x, d, v, vr, dr, thke, dampr, damp, ms, in, tf, pm, skew, xframe, geo, eani, bufmat, bufgeo, bufsf, brmpc, gjbufr, w, veul, fill, dfill, wb, dsav, asav, msnf, spbuf, fac, vel, fsav, fzero, xlas, accelm, fbvel, gravfac, fr_wave, failwave, parts0, elbuf, rwl, rwsav, rby, rivet, secbuf, rvolu, rconx, nloc_dmg, fvmain, libagale, lenthg, lbufmat, lbufgeo, lbufsf, lenxlas, lnom_opt, lenlas, lenvolu, npts, cne, lcne, addcne, cni2, lcni2g, addcni2, cepi2, celi2, i2nsnt, probint, ddstat, pm1shf, dd_iad, kxsp, ixsp, nod2sp, cepsp, nthwa, nairwa, nmnt, l_mul_lag1, l_mul_lag, lwaspio, ipartsp, ispcond, pm1sph, wma, eigipm, eigibuf, eigrpm, iflow, rflow, memflow, iexlnk, fasolfr, iparth, fxbipm, fxbrpm, fxbnod, fxbmod, fxbglm, fxbcpm, fxbcps, fxblm, fxbfls, fxbdls, fxbdep, fxbvit, fxbacc, fxbelm, fxbsig, fxbgrvi, fxbgrvr, iadll, lll, ibmpc, lambda, lrbagale, iskwp, nskwp, isensp, nsensp, iaccp, naccp, ipart_state, mcp, temp, unitab, intstamp, iframe, clusters, partsav, ibft, fbft, ibcv, fconv, irbe3, lrbe3, frbe3, front_rm, rbym, irbym, lcrbym, inoise, fnoise, ms0, admsms, nom_sect, ispsym, sh4tree, sh3tree, ipadmesh, ibfflux, fbfflux, sh4trim, sh3trim, padmesh, msc, mstg, inc, intg, ptg, mcpc, mcptg, rcontact, acontact, pcontact, mscnd, incnd, mssa, mstr, msp, msrt, ibcr, fradia, dmelc, dmeltg, dmels, dmeltr, dmelp, dmelrt, res_sms, isphio, lprtsph, lonfsph, vsphio, sphveln, alph, ifill, ims, irbe2, lrbe2, ms_ply, zi_ply, inod_pxfem, iel_pxfem, icodply, iskwply, addcne_pxfem, cne_pxfem, cel_pxfem, ithvar, xdp, table, celsph, icfield, lcfield, cfield, msz2, itask, diag_sms, iloadp, lloadp, loadp, inod_crkxfem, iel_crkxfem, addcne_crkxfem, cne_crkxfem, cel_crkxfem, ibufssg_io, intercep, ibordnode, iedgesh, ibordedge, linale, nodedge, iedge, cep_crkxfem, iedge_tmp, crknodiad, elbuf_tab, nom_opt, lgauge, gauge, igaup, ngaup, nodlevxf, frontb_r2r, dflow, vflow, wflow, sph2sol, sol2sph, irst, elcutc, nodenr, kxfenod2elc, enrtag, intbuf_tab, i11flag, xfem_tab, lenthgr, rthbuf, ixig3d, kxig3d, knot, ipartig3d, wige, ncrkpart, indx_crk, crklvset, crkshell, crksky, crkavx, crkedge, sensors, stack, xfem_phantom, t8, tab_ump, poin_ump, sol2sph_typ, addcsrect, csrect, drape, loads, itagnd, icnds10, addcncnd, cepcnd, celcnd, cncnd, nativ_sms, i24maxnsne, multi_fvm, segquadfr, intbuf_fric_tab, subset, igrnod, igrbric, igrquad, igrsh4n, igrsh3n, igrtruss, igrbeam, igrspring, igrpart, igrsurf, igrslin, poin_part_shell, poin_part_tri, poin_part_sol, mid_pid_shell, mid_pid_tri, mid_pid_sol, tag_nm, nindx_nm, indx_nm, tag_scratch, nindx_scrt, indx_scrt, flag_24_25, numnod_l, tag_skn, multiple_skew, igrsurf_proc, knotlocpc, knotlocel, ale_elm, size_ale_elm, pinch_data, tag_skins6, ibcscyc, lbcscyc, t_monvol, indx_s, indx_q, indx_tg, face_elm_s, face_elm_q, face_elm_tg, nbr_th_monvol, ebcs_tab, kloadpinter, loadpinter, dgaploadint, s_loadpinter, len_cep, dynain_data, drapeg, user_windows, output, interfaces, number_load_cyl, loads_per_proc, python, dpl0cld, vel0cld, names_and_titles, bcs_per_proc, constraint_struct, glob_therm, pblast, rwstif_pen, sln_pen)
Definition ddsplit.F:337
OPTION /TH/SURF outputs of Pressure and Area needed Tabs.
Definition th_surf_mod.F:61
program starter
Definition starter.F:39
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)