OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
blero2.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!|| blero2 ../engine/source/ale/bimat/blero2.F
25!||--- called by ------------------------------------------------------
26!|| bforc2 ../engine/source/ale/bimat/bforc2.f
27!||--- calls -----------------------------------------------------
28!|| ancmsg ../engine/source/output/message/message.F
29!|| arret ../engine/source/system/arret.F
30!||--- uses -----------------------------------------------------
31!|| message_mod ../engine/share/message_module/message_mod.f
32!||====================================================================
33 SUBROUTINE blero2(ALPH,VOLO,RHON,FLUX,FLU1,OFF,PM,NGL,VOLN,
34 . AIRE, D1, D2, D3, D4, D5, D6, VD2, DVOL,
35 . VY1, VY2, VY3, VY4,
36 . VZ1, VZ2, VZ3, VZ4,
37 . MAT)
38 USE message_mod
39C-----------------------------------------------
40C I m p l i c i t T y p e s
41C-----------------------------------------------
42#include "implicit_f.inc"
43#include "comlock.inc"
44C-----------------------------------------------
45C G l o b a l P a r a m e t e r s
46C-----------------------------------------------
47#include "mvsiz_p.inc"
48C-----------------------------------------------
49C C o m m o n B l o c k s
50C-----------------------------------------------
51#include "param_c.inc"
52#include "com08_c.inc"
53#include "vect01_c.inc"
54#include "scr17_c.inc"
55C-----------------------------------------------
56C D u m m y A r g u m e n t s
57C-----------------------------------------------
59 . alph(*), volo(*), rhon(*), flux(4,*), flu1(*),
60 . off(*), pm(npropm,*),voln(mvsiz),
61 . aire(*), d1(*), d2(*), d3(*), d4(*), d5(*), d6(*), vd2(*), dvol(*),
62 . vy1(*), vy2(*), vy3(*), vy4(*),
63 . vz1(*), vz2(*), vz3(*), vz4(*)
64 INTEGER MAT(*)
65C-----------------------------------------------
66C L o c a l V a r i a b l e s
67C-----------------------------------------------
68 INTEGER I, II, NGL(*)
69 my_real
70 . VY, VZ, SCAL
71C-----------------------------------------------
72
73 DO i=lft,llt
74 voln(i)=voln(i)*alph(i)
75 aire(i)=aire(i)*alph(i)
76 rhon(i) = rhon(i) / max(em30,voln(i))
77 dvol(i) = voln(i)-volo(i)+dt1*half*(flu1(i)
78 . +flux(1,i)+flux(2,i)+flux(3,i)+flux(4,i))
79 volo(i)=voln(i)
80 ENDDO
81
82 DO i=lft,llt
83 IF(alph(i)==zero)THEN
84 rhon(i) =pm( 1,mat(i))
85 dvol(i) =zero
86 off(i) =zero
87 idel7nok = 1
88 ENDIF
89 ENDDO
90
91 DO i=lft,llt
92 vy=vy1(i)+vy2(i)+vy3(i)+vy4(i)
93 vz=vz1(i)+vz2(i)+vz3(i)+vz4(i)
94 vd2(i)=(vy**2+vz**2)/sixteen
95 ENDDO
96
97 DO i=lft,llt
98 IF((mtn==11).OR.(rhon(i)>zero))THEN
99 IF(alph(i)<one)THEN
100 scal=abs(dvol(i))/
101 . max(em15,voln(i)*dt1*abs(d1(i)+d2(i)+d3(i)))
102 scal= min(one,scal)
103 d1(i)=d1(i)*scal
104 d2(i)=d2(i)*scal
105 d3(i)=d3(i)*scal
106 d4(i)=d4(i)*scal
107 d5(i)=d5(i)*scal
108 d6(i)=d6(i)*scal
109 ENDIF
110 ELSE
111 ii = nft+i
112 CALL ancmsg(msgid=12,anmode=aninfo,
113 . i1=ngl(i),r1=rhon(i))
114 CALL arret(2)
115 ENDIF
116 ENDDO !next I
117
118 RETURN
119 END
subroutine bforc2(timers, elbuf_tab, ng, pm, geo, ic, x, a, v, ms, w, flux, flu1, veul, ale_connect, iparg, jparg, fill, dfill, ims, nloc_dmg, tf, npf, bufmat, partsav, dt2t, neltst, ityptst, stifn, offset, eani, ipartq, nel, iadq, fsky, ipm, bufvois, gresav, grth, igrth, table, igeo, voln, itask, ms_2d, fskym, mat_elem, h3d_strain, output, sz_bufvois, snpc, stf, sbufmat, svis, nsvois, iresp, idel7nok, idtmin, maxfunc, imon_mat, userl_avail, impl_s, idyna, dt, glob_therm, sensors)
Definition bforc2.F:87
subroutine blero2(alph, volo, rhon, flux, flu1, off, pm, ngl, voln, aire, d1, d2, d3, d4, d5, d6, vd2, dvol, vy1, vy2, vy3, vy4, vz1, vz2, vz3, vz4, mat)
Definition blero2.F:38
#define my_real
Definition cppsort.cpp:32
#define min(a, b)
Definition macros.h:20
#define max(a, b)
Definition macros.h:21
subroutine ancmsg(msgid, msgtype, anmode, i1, i2, i3, i4, i5, i6, i7, i8, i9, i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, r1, r2, r3, r4, r5, r6, r7, r8, r9, c1, c2, c3, c4, c5, c6, c7, c8, c9, prmode)
Definition message.F:889
subroutine arret(nn)
Definition arret.F:87