#include "implicit_f.inc"
Go to the source code of this file.
|
| subroutine | visc_et (nel, visc, rho, nu, cxx, et) |
◆ visc_et()
| subroutine visc_et |
( |
integer, intent(in) | nel, |
|
|
type(visc_param_), intent(in) | visc, |
|
|
intent(in) | rho, |
|
|
intent(in) | nu, |
|
|
dimension(nel), intent(in) | cxx, |
|
|
dimension(nel), intent(out) | et ) |
Definition at line 30 of file visc_et.F.
31
32
33
34 USE visc_param_mod
35
36
37
38#include "implicit_f.inc"
39
40
41
42 INTEGER ,INTENT(IN) :: NEL
46 TYPE(VISC_PARAM_) ,INTENT(IN) :: VISC
47
48
49
50 INTEGER :: I,NPRONY
52
53 nprony = visc%IPARAM(1)
54 et(:) = zero
55 gv = zero
56 DO i= 1,nprony
57 gv = gv + visc%UPARAM(1 + i)
58 ENDDO
59
60 gv_max = third*(one+nu)/(one -two*nu)
61 nu1 = rho * (one -two*nu)/(one-nu)
62
63 DO i=1,nel
64 gg = cxx(i)*cxx(i)*nu1
65 et(i)= et(i) +
min(gv_max,gv/gg)
66 ENDDO
67
68 RETURN