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

Go to the source code of this file.

Functions/Subroutines

subroutine law92_upd (iout, titr, mat_id, uparam, nfunc, nfunct, ifunc, func_id, npc, pld, pm, ipm)

Function/Subroutine Documentation

◆ law92_upd()

subroutine law92_upd ( integer iout,
character(len=nchartitle) titr,
integer mat_id,
uparam,
integer, intent(in) nfunc,
integer, intent(in) nfunct,
integer, dimension(nfunc) ifunc,
integer, dimension(nfunct) func_id,
integer, dimension(*) npc,
pld,
pm,
integer, dimension(npropmi) ipm )

Definition at line 35 of file law92_upd.F.

37C-----------------------------------------------
38C M o d u l e s
39C-----------------------------------------------
40 USE law92_nlsqf_mod
41 USE message_mod
42 USE table_mod
44C-----------------------------------------------
45C I m p l i c i t T y p e s
46C-----------------------------------------------
47#include "implicit_f.inc"
48C-----------------------------------------------
49C C o m m o n B l o c k s
50C-----------------------------------------------
51#include "param_c.inc"
52C-----------------------------------------------
53C D u m m y A r g u m e n t s
54C-----------------------------------------------
55 CHARACTER(LEN=NCHARTITLE) :: TITR
56 INTEGER MAT_ID,IOUT
57 INTEGER ,INTENT(IN) :: NFUNC
58 INTEGER ,INTENT(IN) :: NFUNCT
59 INTEGER NPC(*), FUNC_ID(NFUNCT), IPM(NPROPMI)
60 my_real uparam(*),pld(*),pm(npropm)
61 INTEGER, DIMENSION(NFUNC):: IFUNC
62C-----------------------------------------------
63C L o c a l V a r i a b l e s
64C-----------------------------------------------
65 INTEGER K,ITEST,II,JJ,NSTART,IC1,IC2,NOGD,NDATA,NMULA,IFC
66 my_real nu,gs,rbulk,d,young,errtol,ave_slope,mu,mu_max,mu_min,dx,
67 . lam,beta,lam_max,lam_min,scalefac,amula(2)
68 my_real , DIMENSION(:), ALLOCATABLE :: stress,stretch!
69 LOGICAL IS_ENCRYPTED
70C====================================================================
71! IDENTIFICATION
72!====================================================================
73 is_encrypted = .false.
74 CALL hm_option_is_encrypted(is_encrypted)
75 !!
76 nstart = 2
77 errtol = fiveem3
78 ifc = ifunc(1)
79 ic1 = npc(ifc)
80 ic2 = npc(ifc+1)
81 scalefac = uparam(14)
82 nogd=(ic2-ic1)/2
83 ndata=nogd
84c
85 ALLOCATE (stretch(nogd))
86 ALLOCATE (stress(nogd))
87c
88 ave_slope = zero
89 jj=0
90 stretch=zero
91 stress=zero
92 mu=zero
93 rbulk=zero
94 gs=zero
95 lam_max= zero
96 lam_min= zero
97c
98 DO ii = ic1,ic2-2,2
99 jj=jj+1
100 stretch(jj) = pld(ii) + one
101 stress(jj) = scalefac * pld(ii+1)
102 lam_max = max(lam_max, abs(stretch(jj)))
103 ENDDO
104c
105 nogd = jj
106 mu_max = zero
107 mu_min = 1e20
108 DO k = 1, ndata
109 dx = stretch(k) - one
110c avolid dx to be too small
111 IF (dx >= zero) THEN
112 dx = max(dx, em6)
113 ELSE
114 dx = abs(dx)
115 ENDIF
116 mu_max = max(mu_max, stress(k) / dx)
117 ave_slope = ave_slope + abs(stress(k)) / dx
118 ENDDO
119c
120 ave_slope = ave_slope / (one * ndata)
121 mu= ave_slope
122c initial value
123 lam = max(seven,three*lam_max)
124C
125 nmula = 2
126 amula(1) = max(mu,mu_max)
127 amula(2) = lam
128 itest = uparam(12)
129 !----------------
130 IF(is_encrypted)THEN
131 WRITE(iout,'(5X,A,//)')'CONFIDENTIAL DATA'
132 ELSE
133 WRITE(iout,1000)
134 WRITE(iout,1001)trim(titr),mat_id
135 ENDIF
136 !----
137c------------------------------------------------------
138 CALL law92_nlsqf(stretch,stress,nmula,nogd,amula,
139 . nstart, errtol,mat_id,titr,itest)
140c------------------------------------------------------
141 DEALLOCATE (stretch)
142 DEALLOCATE (stress)
143 nu = uparam(11)
144 mu = amula(1)
145 lam = amula(2)
146 beta = one/lam/lam
147 gs = mu*(one + three*beta /five + eighty19*beta*beta/175.
148 . + 513.*beta**3/875. + 42039.*beta**4/67375.)
149 rbulk=two*gs*(one+nu)
150 . /max(em30,three*(one-two*nu))
151 d= two/rbulk
152 uparam(1)=mu
153 uparam(2)=d
154 uparam(3)=lam
155 uparam(4)=gs
156 uparam(5)=rbulk
157c parameters
158 young = two*gs*(one + nu)
159 pm(20) = young
160 pm(21) = nu
161 pm(22) = gs
162 pm(24) = young/(one - nu**2)
163 pm(32) = rbulk
164 pm(100) = rbulk !PARMAT(1)
165C-----------
166C Formulation for solid elements time step computation.
167 ipm(252)= 2
168 pm(105) = two*gs/(rbulk + four_over_3*gs)
169C
170 IF(.NOT.is_encrypted) WRITE(iout,1100)mu,d,lam,gs,rbulk
171c----------------
172c end of optimization loop
173c----------------
174 RETURN
175c----------------
176 1000 FORMAT
177 & (//5x, 'FITTED PARAMETERS FOR HYPERELASTIC_MATERIAL LAW92 ' ,/,
178 & 5x, ' --------------------------------------------------')
179 1001 FORMAT(
180 & 5x,a,/,
181 & 5x, 'MATERIAL NUMBER =',i10,//)
182 1100 FORMAT(
183C
184 & 5x,'ARRUDA-BOYCE LAW',/,
185 & 5x,'MU . . . . . . . . . . . . . . . . . . . .=',1pg20.13/
186 & 5x,'D. . . . . . . . . . . . . . . . . . . . .=',1pg20.13/
187 & 5x,'LAM. . . . . . . . . . . . . . . . . . . .=',1pg20.13/
188 & 5x,'INITIAL SHEAR MODULUS. . . . . . . . . . .=',1pg20.13/
189 & 5x,'BULK MODULUS . . . . . . . . . . . . . . .=',1pg20.13//)
190c-----------
191 RETURN
#define my_real
Definition cppsort.cpp:32
subroutine hm_option_is_encrypted(is_encrypted)
#define max(a, b)
Definition macros.h:21
integer, parameter nchartitle