OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
pblast.F File Reference
#include "implicit_f.inc"
#include "comlock.inc"
#include "param_c.inc"
#include "com04_c.inc"
#include "com06_c.inc"
#include "com08_c.inc"
#include "mvsiz_p.inc"
#include "tabsiz_c.inc"
#include "lockon.inc"
#include "lockoff.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine pblast_load_computation (pblast, iloadp, fac, a, v, x, iadc, fsky, lloadp, fext, noda_surf, noda_pext, itab, h3d_data, th_surf, wfext)

Function/Subroutine Documentation

◆ pblast_load_computation()

subroutine pblast_load_computation ( type(pblast_), intent(inout) pblast,
integer, dimension(sizloadp,nloadp), intent(inout) iloadp,
dimension(lfacload,nloadp), intent(inout) fac,
dimension(3,numnod), intent(inout) a,
dimension(3,numnod), intent(in) v,
dimension(3,numnod), intent(in) x,
integer, dimension(*), intent(in) iadc,
dimension(8,sfsky/8), intent(inout) fsky,
integer, dimension(slloadp), intent(in) lloadp,
dimension(3,numnod), intent(inout) fext,
dimension(numnod), intent(inout) noda_surf,
dimension(numnod), intent(inout) noda_pext,
integer, dimension(numnod), intent(in) itab,
type(h3d_database), intent(in) h3d_data,
type (th_surf_), intent(inout) th_surf,
double precision, intent(inout) wfext )

Definition at line 38 of file pblast.F.

41C-----------------------------------------------
42C M o d u l e s
43C-----------------------------------------------
44 USE h3d_mod
45 USE pblast_mod
46 USE groupdef_mod
47 USE th_surf_mod , ONLY : th_surf_
48C-----------------------------------------------
49C I m p l i c i t T y p e s
50C-----------------------------------------------
51#include "implicit_f.inc"
52#include "comlock.inc"
53#include "param_c.inc"
54C-----------------------------------------------
55C C o m m o n B l o c k s
56C-----------------------------------------------
57#include "com04_c.inc"
58#include "com06_c.inc"
59#include "com08_c.inc"
60#include "mvsiz_p.inc"
61#include "tabsiz_c.inc"
62C-----------------------------------------------
63C D u m m y A r g u m e n t s
64C-----------------------------------------------
65 TYPE(PBLAST_),INTENT(INOUT) :: PBLAST
66 INTEGER,INTENT(IN) :: LLOADP(SLLOADP)
67 INTEGER,INTENT(INOUT) :: ILOADP(SIZLOADP,NLOADP)
68 INTEGER,INTENT(IN) :: IADC(*)
69 INTEGER, INTENT(IN) :: ITAB(NUMNOD)
70 my_real,INTENT(INOUT) :: fac(lfacload,nloadp)
71 my_real,INTENT(IN) :: v(3,numnod),x(3,numnod)
72 my_real,INTENT(INOUT) :: a(3,numnod),fsky(8,sfsky/8), fext(3,numnod)
73 my_real,INTENT(INOUT) :: noda_surf(numnod)
74 my_real,INTENT(INOUT) :: noda_pext(numnod)
75 TYPE(H3D_DATABASE),INTENT(IN) :: H3D_DATA
76 TYPE (TH_SURF_) , INTENT(INOUT) :: TH_SURF
77 DOUBLE PRECISION,INTENT(INOUT) :: WFEXT
78C-----------------------------------------------
79C L o c a l V a r i a b l e s
80C-----------------------------------------------
81 INTEGER :: NL, ABAC_ID, ID, II, IJK, NN(4), NNOD, IAD , IL, NSEGPL
82 my_real :: dtmin_loc, t_stop, ta_first
83 DOUBLE PRECISION :: WFEXT_LOC
84 LOGICAL :: IS_RESET
85
86C-----------------------------------------------
87C D e s c r i p t i o n
88C-----------------------------------------------
89C this subroutines is applying pressure load to
90C a segment submitted to a blast wave.
91C Preussre time histories are built from "UFC 3-340-02, Dec. 5th 2008" tables which are hardcoded in unit system {g, cm, mus}
92C 3 different models are available to build the pressure time history :
93C FREE AIR (ABAC_ID = 1)
94C SURFACE BURST (ABAC_ID = 2)
95C AIR BURST (ABAC_ID = 3)
96C-----------------------------------------------
97C P r e - C o n d i t i o n
98C-----------------------------------------------
99 pblast%PBLAST_DT%DT = ep20
100 pblast%PBLAST_DT%IDT = 0
101
102 IF(pblast%NLOADP_B==0)THEN
103 RETURN
104 ENDIF
105 nsegpl = th_surf%NSEGLOADPF
106C-----------------------------------------------,
107C S o u r c e C o d e
108C-----------------------------------------------
109!$OMP PARALLEL
110!$OMP+ SHARED(FAC,A,V,X,WFEXT,IADC,FSKY,LLOADP,FEXT,ITAB,H3D_DATA,TT,ILOADP)
111!$OMP+ PRIVATE(ABAC_ID,ID,DTMIN_LOC,NL,WFEXT_LOC,TA_FIRST,IJK)
112
113 !-----------------------------------------------
114 ! LOOP OVER all /LOAD/PBLAST options
115 !-----------------------------------------------
116
117 DO nl=nloadp_f+1, nloadp_f+pblast%NLOADP_B
118
119 abac_id = iloadp(07,nl)
120 id = iloadp(08,nl) !user_id
121 ta_first = fac(07,nl)
122 t_stop = fac(13,nl)
123 il = nl-nloadp_f
124 is_reset = pblast%PBLAST_TAB(il)%IS_RESET
125 wfext_loc = zero
126 dtmin_loc = ep20
127
128 IF(tt <= t_stop)THEN
129 SELECT CASE(abac_id)
130 CASE(1)
131 !--- LOADING MODEL : FREE AIR, SPHERICAL CHARGE
132 CALL pblast_1(pblast,
133 1 iloadp ,fac ,a ,v ,x ,
134 2 iadc ,fsky ,lloadp ,fext ,noda_surf, noda_pext,
135 3 itab ,h3d_data ,nl ,dtmin_loc ,wfext_loc,
136 4 th_surf ,nsegpl )
137
138 CASE(2)
139 !--- LOADING MODEL : GROUND REFLECTION, HEMISPHERICAL CHARGE
140 CALL pblast_2(pblast,
141 1 iloadp ,fac ,a ,v ,x ,
142 2 iadc ,fsky ,lloadp ,fext ,noda_surf, noda_pext,
143 3 itab ,h3d_data ,nl ,dtmin_loc ,wfext_loc,
144 4 th_surf ,nsegpl )
145 CASE(3)
146 !--- LOADING MODEL : SURFACE BURST, SPHERICAL CHARGE
147 CALL pblast_3(pblast,
148 1 iloadp ,fac ,a ,v ,x ,
149 2 iadc ,fsky ,lloadp ,fext ,noda_surf, noda_pext,
150 3 itab ,h3d_data ,nl ,dtmin_loc ,wfext_loc,
151 4 th_surf ,nsegpl )
152
153 END SELECT
154
155 ELSEIF(tt > t_stop)THEN
156 dtmin_loc = ep20
157 IF(.NOT. is_reset)THEN
158 ! FLUSH fsky array to 0.
159!$OMP DO SCHEDULE(GUIDED,MVSIZ)
160 DO ii = 1,iloadp(1,nl)/4
161 !nodes of structural face : N1,N2,N3,N4
162 nn(1)=lloadp(iloadp(4,nl)+4*(ii-1))
163 nn(2)=lloadp(iloadp(4,nl)+4*(ii-1)+1)
164 nn(3)=lloadp(iloadp(4,nl)+4*(ii-1)+2)
165 nn(4)=lloadp(iloadp(4,nl)+4*(ii-1)+3)
166 IF(nn(4) /= 0 .AND.nn(1) /= nn(2) .AND. nn(1) /= nn(3) .AND. nn(1) /= nn(4) .AND.
167 . nn(2) /= nn(3) .AND. nn(2) /= nn(4) .AND. nn(3) /= nn(4) )THEN
168 nnod=4
169 ELSE
170 nnod=3
171 ENDIF
172 DO ijk=1,nnod
173 iad = iadc(iloadp(4,nl)+4*(ii-1)+(ijk-1)) ! node indexes in FSKY related to current option /LOAD/PBLAST
174 fsky(1:3,iad) = zero
175 ENDDO
176 pblast%PBLAST_TAB(il)%IS_RESET = .true.
177 enddo! next II
178!$OMP END DO
179 endif!(.NOT. IS_RESET)
180
181 ENDIF
182
183#include "lockon.inc"
184 wfext = wfext + wfext_loc
185 ! Time Step (DT_PBLAST) and corresponding option id (IDT_PBLAST)
186 ! if nothing was loaded : set time step to go on arrival time (no CPU time wasted in nothing happen elsewhere)
187 ! if load has started, use positive impulse to determine a time step for this current option
188
189 IF(dtmin_loc < pblast%PBLAST_DT%DT)THEN
190 pblast%PBLAST_DT%IDT = id
191 pblast%PBLAST_DT%DT = dtmin_loc
192 ENDIF
193
194#include "lockoff.inc"
195
196 CALL my_barrier()
197
198 ENDDO !next NL
199
200!$OMP END PARALLEL
201
202
#define my_real
Definition cppsort.cpp:32
initmumps id
OPTION /TH/SURF outputs of Pressure and Area needed Tabs.
Definition th_surf_mod.F:60
subroutine pblast_1(pblast, iloadp, fac, a, v, x, iadc, fsky, lloadp, fext, noda_surf, noda_pext, itab, h3d_data, nl, dtmin_loc, wfext_loc, th_surf, nsegpl)
Definition pblast_1.F:46
subroutine pblast_2(pblast, iloadp, fac, a, v, x, iadc, fsky, lloadp, fext, noda_surf, noda_pext, itab, h3d_data, nl, dtmin_loc, wfext_loc, th_surf, nsegpl)
Definition pblast_2.F:46
subroutine pblast_3(pblast, iloadp, fac, a, v, x, iadc, fsky, lloadp, fext, noda_surf, noda_pext, itab, h3d_data, nl, dtmin_loc, wfext_loc, th_surf, nsegpl)
Definition pblast_3.F:46
character *2 function nl()
Definition message.F:2354
subroutine my_barrier
Definition machine.F:31