OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
compute_bfrac.F File Reference
#include "implicit_f.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine compute_bfrac (time, xl, tburn, uparam, v1, rho1, rho10, bfrac)

Function/Subroutine Documentation

◆ compute_bfrac()

subroutine compute_bfrac ( time,
xl,
tburn,
uparam,
v1,
rho1,
rho10,
bfrac )

Definition at line 28 of file compute_bfrac.F.

29C-----------------------------------------------
30C I m p l i c i t T y p e s
31C-----------------------------------------------
32#include "implicit_f.inc"
33C-----------------------------------------------
34C I N P U T O U T P U T A r g u m e n t s
35C-----------------------------------------------
36 my_real time,xl,tburn,v1,rho1,rho10,uparam(*),bfrac
37C-----------------------------------------------
38C L o c a l V a r i a b l e s
39C-----------------------------------------------
40 INTEGER ibug, IBFRAC
41 my_real vdet,bhe
42C-----------------------------------------------
43 vdet = uparam(42)
44 bhe = uparam(44)
45 ibfrac= uparam(68)
46
47 !--------------------------------!
48 ! Calculation of BFRAC in [0,1] !
49 !--------------------------------!
50 IF(bfrac < one) THEN
51 bfrac = zero
52 IF(ibfrac/=1 .AND. time > -tburn)THEN
53 xl = v1**third
54 bfrac = vdet*(time+tburn)*two_third/xl
55 ENDIF
56 IF(ibfrac/=2) bfrac = max( bfrac , bhe * (one - rho10/rho1) )
57 IF(bfrac < em03) THEN
58 bfrac = zero
59 ELSEIF(bfrac > one) THEN
60 bfrac = one
61 ENDIF
62 ENDIF
63 RETURN
#define my_real
Definition cppsort.cpp:32
#define max(a, b)
Definition macros.h:21