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

Go to the source code of this file.

Functions/Subroutines

subroutine visc_et (nel, visc, rho, nu, cxx, et)

Function/Subroutine Documentation

◆ 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.

31C-----------------------------------------------
32C M o d u l e s
33C-----------------------------------------------
34 USE visc_param_mod
35C-----------------------------------------------
36C I m p l i c i t T y p e s
37C-----------------------------------------------
38#include "implicit_f.inc"
39C-----------------------------------------------
40C D u m m y A r g u m e n t s
41C-----------------------------------------------
42 INTEGER ,INTENT(IN) :: NEL
43 my_real ,INTENT(IN) :: rho,nu
44 my_real ,INTENT(IN) :: cxx(nel)
45 my_real ,INTENT(OUT) :: et(nel)
46 TYPE(VISC_PARAM_) ,INTENT(IN) :: VISC
47C-----------------------------------------------
48C L o c a l V a r i a b l e s
49C-----------------------------------------------
50 INTEGER :: I,NPRONY
51 my_real :: gg,gv,gv_max,nu1
52C=======================================================================
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
59C
60 gv_max = third*(one+nu)/(one -two*nu)
61 nu1 = rho * (one -two*nu)/(one-nu)
62C
63 DO i=1,nel
64 gg = cxx(i)*cxx(i)*nu1
65 et(i)= et(i) + min(gv_max,gv/gg)
66 ENDDO
67C------------
68 RETURN
#define my_real
Definition cppsort.cpp:32
#define min(a, b)
Definition macros.h:20