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

Go to the source code of this file.

Functions/Subroutines

subroutine viscbb (nel, fp, tbnorm, a1, expc, expm, ksi, tauref, dgamma)

Function/Subroutine Documentation

◆ viscbb()

subroutine viscbb ( integer, intent(in) nel,
intent(in) fp,
intent(in) tbnorm,
intent(in) a1,
intent(in) expc,
intent(in) expm,
intent(in) ksi,
intent(in) tauref,
intent(out) dgamma )

Definition at line 32 of file viscbb.F.

33C-----------------------------------------------
34C I M P L I C I T T Y P E S
35C-----------------------------------------------
36#include "implicit_f.inc"
37C----------------------------------------------------------------
38C I N P U T A R G U M E N T S
39C----------------------------------------------------------------
40 INTEGER, INTENT(IN) :: NEL
41C
42 my_real, INTENT(IN) :: a1,expc, expm , ksi ,tauref
43C
44 my_real, DIMENSION(NEL), INTENT(IN) :: tbnorm
45C
46 my_real, DIMENSION(NEL, 3,3) , INTENT(IN) :: fp
47C----------------------------------------------------------------
48C O U T P U T A R G U M E N T S
49C----------------------------------------------------------------
50 my_real, DIMENSION(NEL), INTENT(OUT) :: dgamma
51C----------------------------------------------------------------
52C I N P U T O U T P U T A R G U M E N T S
53C----------------------------------------------------------------
54C----------------------------------------------------------------
55C L O C A L V A R I B L E S
56C----------------------------------------------------------------
57 INTEGER I
58
59 my_real
60 . temp, lpchain(nel), ip1(nel)
61C----------------------------------------------------------------
62C----------------------------------------------------------------
63 DO i=1,nel
64 ip1(i) = fp(i,1,1)**2 +
65 . fp(i,2,2)**2 +
66 . fp(i,3,3)**2
67 lpchain(i) = sqrt(max(zero,third*ip1(i)))
68 !MAXL = MAX(MAXL, LPCHAIN (I))
69 temp = max(em20,lpchain(i) - one +ksi)
70 dgamma(i) = a1* exp(expc*log(temp))* ((tbnorm(i)**expm)/max(em20, tauref**expm))
71 ENDDO
72
73 RETURN
#define my_real
Definition cppsort.cpp:32
#define max(a, b)
Definition macros.h:21