DAMASK with grid solvers  Revision: v2.0.3-2204-gdb1f2151
The Düsseldorf Advanced Material Simulation Kit with Grid Solvers
constitutive_plastic_disloUCLA.f90
Go to the documentation of this file.
1 # 1 "/home/damask_user/GitLabCI_Pipeline_4301/DAMASK/src/constitutive_plastic_disloUCLA.f90"
2 # 1 "<built-in>"
3 # 1 "<command-line>"
4 # 1 "/home/damask_user/GitLabCI_Pipeline_4301/DAMASK/src/constitutive_plastic_disloUCLA.f90"
5 !--------------------------------------------------------------------------------------------------
11 !--------------------------------------------------------------------------------------------------
12 submodule(constitutive) plastic_disloucla
13 
14  real(pReal), parameter :: &
15  kB = 1.38e-23_preal
16 
17  type :: tparameters
18  real(pReal) :: &
19  D = 1.0_preal, &
20  mu = 1.0_preal, &
21  d_0 = 1.0_preal, &
22  q_cl = 1.0_preal
23  real(pReal), allocatable, dimension(:) :: &
24  b_sl, & !< magnitude of burgers vector [m]
25  D_a, &
26  i_sl, & !< Adj. parameter for distance between 2 forest dislocations
27  atomicVolume, &
28  tau_0, &
29  !* mobility law parameters
30  delta_f, &
31  v0, &
32  p, &
33  q, &
34  b, &
35  kink_height, &
36  w, &
37  omega
38  real(pReal), allocatable, dimension(:,:) :: &
39  h_sl_sl, & !< slip resistance from slip activity
40  forestProjection
41  real(pReal), allocatable, dimension(:,:,:) :: &
42  P_sl, &
43  nonSchmid_pos, &
44  nonSchmid_neg
45  integer :: &
46  sum_N_sl
47  character(len=pStringLen), allocatable, dimension(:) :: &
48  output
49  logical :: &
50  dipoleFormation
51  end type
52 
53  type :: tdislouclastate
54  real(pReal), dimension(:,:), pointer :: &
55  rho_mob, &
56  rho_dip, &
57  gamma_sl
58  end type tdislouclastate
59 
60  type :: tdisloucladependentstate
61  real(pReal), dimension(:,:), allocatable :: &
62  Lambda_sl, &
63  threshold_stress
64  end type tdisloucladependentstate
65 
66 !--------------------------------------------------------------------------------------------------
67 ! containers for parameters and state
68  type(tParameters), allocatable, dimension(:) :: param
69  type(tDisloUCLAState), allocatable, dimension(:) :: &
70  dotState, &
71  state
72  type(tDisloUCLAdependentState), allocatable, dimension(:) :: dependentState
73 
74 contains
75 
76 
77 !--------------------------------------------------------------------------------------------------
80 !--------------------------------------------------------------------------------------------------
81 module subroutine plastic_disloucla_init
82 
83  integer :: &
84  Ninstance, &
85  p, i, &
86  NipcMyPhase, &
87  sizeState, sizeDotState, &
88  startIndex, endIndex
89  integer, dimension(:), allocatable :: &
90  N_sl
91  real(pReal),dimension(:), allocatable :: &
92  rho_mob_0, & !< initial dislocation density
93  rho_dip_0, & !< initial dipole density
94  a
95  character(len=pStringLen) :: &
96  extmsg = ''
97 
98  write(6,'(/,a)') ' <<<+- plastic_'//plasticity_disloucla_label//' init -+>>>'; flush(6)
99 
100  write(6,'(/,a)') ' Cereceda et al., International Journal of Plasticity 78:242–256, 2016'
101  write(6,'(a)') ' https://dx.doi.org/10.1016/j.ijplas.2015.09.002'
102 
103  ninstance = count(phase_plasticity == plasticity_disloucla_id)
104  if (iand(debug_level(debug_constitutive),debug_levelbasic) /= 0) &
105  write(6,'(a16,1x,i5,/)') '# instances:',ninstance
106 
107  allocate(param(ninstance))
108  allocate(state(ninstance))
109  allocate(dotstate(ninstance))
110  allocate(dependentstate(ninstance))
111 
112  do p = 1, size(phase_plasticity)
113  if (phase_plasticity(p) /= plasticity_disloucla_id) cycle
114  associate(prm => param(phase_plasticityinstance(p)), &
115  dot => dotstate(phase_plasticityinstance(p)), &
116  stt => state(phase_plasticityinstance(p)), &
117  dst => dependentstate(phase_plasticityinstance(p)), &
118  config => config_phase(p))
119 
120  prm%output = config%getStrings('(output)',defaultval=emptystringarray)
121 
122  ! This data is read in already in lattice
123  prm%mu = lattice_mu(p)
124 
125 !--------------------------------------------------------------------------------------------------
126 ! slip related parameters
127  n_sl = config%getInts('nslip',defaultval=emptyintarray)
128  prm%sum_N_sl = sum(abs(n_sl))
129  slipactive: if (prm%sum_N_sl > 0) then
130  prm%P_sl = lattice_schmidmatrix_slip(n_sl,config%getString('lattice_structure'),&
131  config%getFloat('c/a',defaultval=0.0_preal))
132 
133  if(trim(config%getString('lattice_structure')) == 'bcc') then
134  a = config%getFloats('nonschmid_coefficients',defaultval = emptyrealarray)
135  prm%nonSchmid_pos = lattice_nonschmidmatrix(n_sl,a,+1)
136  prm%nonSchmid_neg = lattice_nonschmidmatrix(n_sl,a,-1)
137  else
138  prm%nonSchmid_pos = prm%P_sl
139  prm%nonSchmid_neg = prm%P_sl
140  endif
141 
142  prm%h_sl_sl = lattice_interaction_slipbyslip(n_sl,config%getFloats('interaction_slipslip'), &
143  config%getString('lattice_structure'))
144  prm%forestProjection = lattice_forestprojection_edge(n_sl,config%getString('lattice_structure'),&
145  config%getFloat('c/a',defaultval=0.0_preal))
146  prm%forestProjection = transpose(prm%forestProjection)
147 
148  rho_mob_0 = config%getFloats('rhoedge0', requiredsize=size(n_sl))
149  rho_dip_0 = config%getFloats('rhoedgedip0', requiredsize=size(n_sl))
150  prm%v0 = config%getFloats('v0', requiredsize=size(n_sl))
151  prm%b_sl = config%getFloats('slipburgers', requiredsize=size(n_sl))
152  prm%delta_F = config%getFloats('qedge', requiredsize=size(n_sl))
153 
154  prm%i_sl = config%getFloats('clambdaslip', requiredsize=size(n_sl))
155  prm%tau_0 = config%getFloats('tau_peierls', requiredsize=size(n_sl))
156  prm%p = config%getFloats('p_slip', requiredsize=size(n_sl), &
157  defaultval=[(1.0_preal,i=1,size(n_sl))])
158  prm%q = config%getFloats('q_slip', requiredsize=size(n_sl), &
159  defaultval=[(1.0_preal,i=1,size(n_sl))])
160  prm%kink_height = config%getFloats('kink_height', requiredsize=size(n_sl))
161  prm%w = config%getFloats('kink_width', requiredsize=size(n_sl))
162  prm%omega = config%getFloats('omega', requiredsize=size(n_sl))
163  prm%B = config%getFloats('friction_coeff', requiredsize=size(n_sl))
164 
165  prm%D = config%getFloat('grainsize')
166  prm%D_0 = config%getFloat('d0')
167  prm%Q_cl = config%getFloat('qsd')
168  prm%atomicVolume = config%getFloat('catomicvolume') * prm%b_sl**3.0_preal
169  prm%D_a = config%getFloat('cedgedipmindistance') * prm%b_sl
170  prm%dipoleformation = config%getFloat('dipoleformationfactor') > 0.0_preal !should be on by default, ToDo: change to /key/-type key
171 
172  ! expand: family => system
173  rho_mob_0 = math_expand(rho_mob_0, n_sl)
174  rho_dip_0 = math_expand(rho_dip_0, n_sl)
175  prm%q = math_expand(prm%q, n_sl)
176  prm%p = math_expand(prm%p, n_sl)
177  prm%delta_F = math_expand(prm%delta_F, n_sl)
178  prm%b_sl = math_expand(prm%b_sl, n_sl)
179  prm%kink_height = math_expand(prm%kink_height, n_sl)
180  prm%w = math_expand(prm%w, n_sl)
181  prm%omega = math_expand(prm%omega, n_sl)
182  prm%tau_0 = math_expand(prm%tau_0, n_sl)
183  prm%v0 = math_expand(prm%v0, n_sl)
184  prm%B = math_expand(prm%B, n_sl)
185  prm%i_sl = math_expand(prm%i_sl, n_sl)
186  prm%atomicVolume = math_expand(prm%atomicVolume, n_sl)
187  prm%D_a = math_expand(prm%D_a, n_sl)
188 
189  ! sanity checks
190  if ( prm%D_0 <= 0.0_preal) extmsg = trim(extmsg)//' D_0'
191  if ( prm%Q_cl <= 0.0_preal) extmsg = trim(extmsg)//' Q_cl'
192  if (any(rho_mob_0 < 0.0_preal)) extmsg = trim(extmsg)//' rhoedge0'
193  if (any(rho_dip_0 < 0.0_preal)) extmsg = trim(extmsg)//' rhoedgedip0'
194  if (any(prm%v0 < 0.0_preal)) extmsg = trim(extmsg)//' v0'
195  if (any(prm%b_sl <= 0.0_preal)) extmsg = trim(extmsg)//' b_sl'
196  if (any(prm%delta_F <= 0.0_preal)) extmsg = trim(extmsg)//' qedge'
197  if (any(prm%tau_0 < 0.0_preal)) extmsg = trim(extmsg)//' tau_0'
198  if (any(prm%D_a <= 0.0_preal)) extmsg = trim(extmsg)//' cedgedipmindistance or b_sl'
199  if (any(prm%atomicVolume <= 0.0_preal)) extmsg = trim(extmsg)//' catomicvolume or b_sl'
200 
201  else slipactive
202  rho_mob_0= emptyrealarray; rho_dip_0 = emptyrealarray
203  allocate(prm%b_sl,prm%D_a,prm%i_sl,prm%atomicVolume,prm%tau_0, &
204  prm%delta_F,prm%v0,prm%p,prm%q,prm%B,prm%kink_height,prm%w,prm%omega, &
205  source = emptyrealarray)
206  allocate(prm%forestProjection(0,0))
207  allocate(prm%h_sl_sl (0,0))
208  endif slipactive
209 
210 !--------------------------------------------------------------------------------------------------
211 ! allocate state arrays
212  nipcmyphase = count(material_phaseat == p) * discretization_nip
213  sizedotstate = size(['rho_mob ','rho_dip ','gamma_sl']) * prm%sum_N_sl
214  sizestate = sizedotstate
215 
216  call material_allocateplasticstate(p,nipcmyphase,sizestate,sizedotstate,0)
217 
218 !--------------------------------------------------------------------------------------------------
219 ! state aliases and initialization
220  startindex = 1
221  endindex = prm%sum_N_sl
222  stt%rho_mob => plasticstate(p)%state(startindex:endindex,:)
223  stt%rho_mob = spread(rho_mob_0,2,nipcmyphase)
224  dot%rho_mob => plasticstate(p)%dotState(startindex:endindex,:)
225  plasticstate(p)%atol(startindex:endindex) = config%getFloat('atol_rho',defaultval=1.0_preal)
226  if (any(plasticstate(p)%atol(startindex:endindex) < 0.0_preal)) extmsg = trim(extmsg)//' atol_rho'
227 
228  startindex = endindex + 1
229  endindex = endindex + prm%sum_N_sl
230  stt%rho_dip => plasticstate(p)%state(startindex:endindex,:)
231  stt%rho_dip = spread(rho_dip_0,2,nipcmyphase)
232  dot%rho_dip => plasticstate(p)%dotState(startindex:endindex,:)
233  plasticstate(p)%atol(startindex:endindex) = config%getFloat('atol_rho',defaultval=1.0_preal)
234 
235  startindex = endindex + 1
236  endindex = endindex + prm%sum_N_sl
237  stt%gamma_sl => plasticstate(p)%state(startindex:endindex,:)
238  dot%gamma_sl => plasticstate(p)%dotState(startindex:endindex,:)
239  plasticstate(p)%atol(startindex:endindex) = 1.0e-2_preal
240  ! global alias
241  plasticstate(p)%slipRate => plasticstate(p)%dotState(startindex:endindex,:)
242 
243  allocate(dst%Lambda_sl(prm%sum_N_sl,nipcmyphase), source=0.0_preal)
244  allocate(dst%threshold_stress(prm%sum_N_sl,nipcmyphase), source=0.0_preal)
245 
246  plasticstate(p)%state0 = plasticstate(p)%state ! ToDo: this could be done centrally
247 
248  end associate
249 
250 !--------------------------------------------------------------------------------------------------
251 ! exit if any parameter is out of range
252  if (extmsg /= '') call io_error(211,ext_msg=trim(extmsg)//'('//plasticity_disloucla_label//')')
253 
254  enddo
255 
256 end subroutine plastic_disloucla_init
257 
258 
259 !--------------------------------------------------------------------------------------------------
261 !--------------------------------------------------------------------------------------------------
262 pure module subroutine plastic_disloucla_lpanditstangent(lp,dlp_dmp, &
263  mp,t,instance,of)
264  real(pReal), dimension(3,3), intent(out) :: &
265  Lp
266  real(pReal), dimension(3,3,3,3), intent(out) :: &
267  dLp_dMp
268 
269  real(pReal), dimension(3,3), intent(in) :: &
270  Mp
271  real(pReal), intent(in) :: &
272  T
273  integer, intent(in) :: &
274  instance, &
275  of
276 
277  integer :: &
278  i,k,l,m,n
279  real(pReal), dimension(param(instance)%sum_N_sl) :: &
280  dot_gamma_pos,dot_gamma_neg, &
281  ddot_gamma_dtau_pos,ddot_gamma_dtau_neg
282 
283  lp = 0.0_preal
284  dlp_dmp = 0.0_preal
285 
286  associate(prm => param(instance))
287 
288  call kinetics(mp,t,instance,of,dot_gamma_pos,dot_gamma_neg,ddot_gamma_dtau_pos,ddot_gamma_dtau_neg)
289  do i = 1, prm%sum_N_sl
290  lp = lp + (dot_gamma_pos(i)+dot_gamma_neg(i))*prm%P_sl(1:3,1:3,i)
291  forall (k=1:3,l=1:3,m=1:3,n=1:3) &
292  dlp_dmp(k,l,m,n) = dlp_dmp(k,l,m,n) &
293  + ddot_gamma_dtau_pos(i) * prm%P_sl(k,l,i) * prm%nonSchmid_pos(m,n,i) &
294  + ddot_gamma_dtau_neg(i) * prm%P_sl(k,l,i) * prm%nonSchmid_neg(m,n,i)
295  enddo
296 
297  end associate
298 
299 end subroutine plastic_disloucla_lpanditstangent
300 
301 
302 !--------------------------------------------------------------------------------------------------
304 !--------------------------------------------------------------------------------------------------
305 module subroutine plastic_disloucla_dotstate(mp,t,instance,of)
306 
307  real(pReal), dimension(3,3), intent(in) :: &
308  Mp
309  real(pReal), intent(in) :: &
310  T
311  integer, intent(in) :: &
312  instance, &
313  of
314 
315  real(pReal) :: &
316  VacancyDiffusion
317  real(pReal), dimension(param(instance)%sum_N_sl) :: &
318  gdot_pos, gdot_neg,&
319  tau_pos,&
320  tau_neg, &
321  v_cl, &
322  dot_rho_dip_formation, &
323  dot_rho_dip_climb, &
324  dip_distance
325 
326  associate(prm => param(instance), stt => state(instance),dot => dotstate(instance), dst => dependentstate(instance))
327 
328  call kinetics(mp,t,instance,of,&
329  gdot_pos,gdot_neg, &
330  tau_pos_out = tau_pos,tau_neg_out = tau_neg)
331 
332  dot%gamma_sl(:,of) = (gdot_pos+gdot_neg) ! ToDo: needs to be abs
333  vacancydiffusion = prm%D_0*exp(-prm%Q_cl/(kb*t))
334 
335  where(deq0(tau_pos)) ! ToDo: use avg of pos and neg
336  dot_rho_dip_formation = 0.0_preal
337  dot_rho_dip_climb = 0.0_preal
338  else where
339  dip_distance = math_clip(3.0_preal*prm%mu*prm%b_sl/(16.0_preal*pi*abs(tau_pos)), &
340  prm%D_a, & ! lower limit
341  dst%Lambda_sl(:,of)) ! upper limit
342  dot_rho_dip_formation = merge(2.0_preal*dip_distance* stt%rho_mob(:,of)*abs(dot%gamma_sl(:,of))/prm%b_sl, & ! ToDo: ignore region of spontaneous annihilation
343  0.0_preal, &
344  prm%dipoleformation)
345  v_cl = (3.0_preal*prm%mu*vacancydiffusion*prm%atomicVolume/(2.0_preal*pi*kb*t)) &
346  * (1.0_preal/(dip_distance+prm%D_a))
347  dot_rho_dip_climb = (4.0_preal*v_cl*stt%rho_dip(:,of))/(dip_distance-prm%D_a) ! ToDo: Discuss with Franz: Stress dependency?
348  end where
349 
350  dot%rho_mob(:,of) = abs(dot%gamma_sl(:,of))/(prm%b_sl*dst%Lambda_sl(:,of)) & ! multiplication
351  - dot_rho_dip_formation &
352  - (2.0_preal*prm%D_a)/prm%b_sl*stt%rho_mob(:,of)*abs(dot%gamma_sl(:,of)) ! Spontaneous annihilation of 2 single edge dislocations
353  dot%rho_dip(:,of) = dot_rho_dip_formation &
354  - (2.0_preal*prm%D_a)/prm%b_sl*stt%rho_dip(:,of)*abs(dot%gamma_sl(:,of)) & ! Spontaneous annihilation of a single edge dislocation with a dipole constituent
355  - dot_rho_dip_climb
356 
357  end associate
358 
359 end subroutine plastic_disloucla_dotstate
360 
361 
362 !--------------------------------------------------------------------------------------------------
364 !--------------------------------------------------------------------------------------------------
365 module subroutine plastic_disloucla_dependentstate(instance,of)
366 
367  integer, intent(in) :: &
368  instance, &
369  of
370 
371  real(pReal), dimension(param(instance)%sum_N_sl) :: &
372  dislocationSpacing
373 
374  associate(prm => param(instance), stt => state(instance),dst => dependentstate(instance))
375 
376  dislocationspacing = sqrt(matmul(prm%forestProjection,stt%rho_mob(:,of)+stt%rho_dip(:,of)))
377  dst%threshold_stress(:,of) = prm%mu*prm%b_sl &
378  * sqrt(matmul(prm%h_sl_sl,stt%rho_mob(:,of)+stt%rho_dip(:,of)))
379 
380  dst%Lambda_sl(:,of) = prm%D/(1.0_preal+prm%D*dislocationspacing/prm%i_sl)
381 
382  end associate
383 
384 end subroutine plastic_disloucla_dependentstate
385 
386 
387 !--------------------------------------------------------------------------------------------------
389 !--------------------------------------------------------------------------------------------------
390 module subroutine plastic_disloucla_results(instance,group)
391 
392  integer, intent(in) :: instance
393  character(len=*), intent(in) :: group
394 
395  integer :: o
396 
397  associate(prm => param(instance), stt => state(instance), dst => dependentstate(instance))
398  outputsloop: do o = 1,size(prm%output)
399  select case(trim(prm%output(o)))
400  case('edge_density') ! ToDo: should be rho_mob
401  if(prm%sum_N_sl>0) call results_writedataset(group,stt%rho_mob,'rho_mob',&
402  'mobile dislocation density','1/m²')
403  case('dipole_density') ! ToDo: should be rho_dip
404  if(prm%sum_N_sl>0) call results_writedataset(group,stt%rho_dip,'rho_dip',&
405  'dislocation dipole density''1/m²')
406  case('shear_rate_slip') ! should be gamma
407  if(prm%sum_N_sl>0) call results_writedataset(group,stt%gamma_sl,'dot_gamma_sl',& ! this is not dot!!
408  'plastic shear','1')
409  case('mfp_slip') !ToDo: should be Lambda
410  if(prm%sum_N_sl>0) call results_writedataset(group,dst%Lambda_sl,'Lambda_sl',&
411  'mean free path for slip','m')
412  case('threshold_stress_slip') !ToDo: should be tau_pass
413  if(prm%sum_N_sl>0) call results_writedataset(group,dst%threshold_stress,'tau_pass',&
414  'threshold stress for slip','Pa')
415  end select
416  enddo outputsloop
417  end associate
418 
419 end subroutine plastic_disloucla_results
420 
421 
422 !--------------------------------------------------------------------------------------------------
424 ! stress, and the resolved stress.
426 ! NOTE: Against the common convention, the result (i.e. intent(out)) variables are the last to
427 ! have the optional arguments at the end
428 !--------------------------------------------------------------------------------------------------
429 pure subroutine kinetics(Mp,T,instance,of, &
430  dot_gamma_pos,dot_gamma_neg,ddot_gamma_dtau_pos,ddot_gamma_dtau_neg,tau_pos_out,tau_neg_out)
431 
432  real(pReal), dimension(3,3), intent(in) :: &
433  Mp
434  real(pReal), intent(in) :: &
435  T
436  integer, intent(in) :: &
437  instance, &
438  of
439 
440  real(pReal), intent(out), dimension(param(instance)%sum_N_sl) :: &
441  dot_gamma_pos, &
442  dot_gamma_neg
443  real(pReal), intent(out), optional, dimension(param(instance)%sum_N_sl) :: &
444  ddot_gamma_dtau_pos, &
445  ddot_gamma_dtau_neg, &
446  tau_pos_out, &
447  tau_neg_out
448  real(pReal), dimension(param(instance)%sum_N_sl) :: &
449  StressRatio, &
450  StressRatio_p,StressRatio_pminus1, &
451  dvel, vel, &
452  tau_pos,tau_neg, &
453  t_n, t_k, dtk,dtn, &
454  needsGoodName ! ToDo: @Karo: any idea?
455  integer :: j
456 
457  associate(prm => param(instance), stt => state(instance), dst => dependentstate(instance))
458 
459  do j = 1, prm%sum_N_sl
460  tau_pos(j) = math_tensordot(mp,prm%nonSchmid_pos(1:3,1:3,j))
461  tau_neg(j) = math_tensordot(mp,prm%nonSchmid_neg(1:3,1:3,j))
462  enddo
463 
464 
465  if (present(tau_pos_out)) tau_pos_out = tau_pos
466  if (present(tau_neg_out)) tau_neg_out = tau_neg
467 
468  associate(boltzmannratio => prm%delta_F/(kb*t), &
469  dot_gamma_0 => stt%rho_mob(:,of)*prm%b_sl*prm%v0, &
470  effectivelength => dst%Lambda_sl(:,of) - prm%w)
471 
472  significantpositivetau: where(abs(tau_pos)-dst%threshold_stress(:,of) > tol_math_check)
473  stressratio = (abs(tau_pos)-dst%threshold_stress(:,of))/prm%tau_0
474  stressratio_p = stressratio** prm%p
475  stressratio_pminus1 = stressratio**(prm%p-1.0_preal)
476  needsgoodname = exp(-boltzmannratio*(1-stressratio_p) ** prm%q)
477 
478  t_n = prm%b_sl/(needsgoodname*prm%omega*effectivelength)
479  t_k = effectivelength * prm%B /(2.0_preal*prm%b_sl*tau_pos)
480 
481  vel = prm%kink_height/(t_n + t_k)
482 
483  dot_gamma_pos = dot_gamma_0 * sign(vel,tau_pos) * 0.5_preal
484  else where significantpositivetau
485  dot_gamma_pos = 0.0_preal
486  end where significantpositivetau
487 
488  if (present(ddot_gamma_dtau_pos)) then
489  significantpositivetau2: where(abs(tau_pos)-dst%threshold_stress(:,of) > tol_math_check)
490  dtn = -1.0_preal * t_n * boltzmannratio * prm%p * prm%q * (1.0_preal-stressratio_p)**(prm%q - 1.0_preal) &
491  * (stressratio)**(prm%p - 1.0_preal) / prm%tau_0
492  dtk = -1.0_preal * t_k / tau_pos
493 
494  dvel = -1.0_preal * prm%kink_height * (dtk + dtn) / (t_n + t_k)**2.0_preal
495 
496  ddot_gamma_dtau_pos = dot_gamma_0 * dvel* 0.5_preal
497  else where significantpositivetau2
498  ddot_gamma_dtau_pos = 0.0_preal
499  end where significantpositivetau2
500  endif
501 
502  significantnegativetau: where(abs(tau_neg)-dst%threshold_stress(:,of) > tol_math_check)
503  stressratio = (abs(tau_neg)-dst%threshold_stress(:,of))/prm%tau_0
504  stressratio_p = stressratio** prm%p
505  stressratio_pminus1 = stressratio**(prm%p-1.0_preal)
506  needsgoodname = exp(-boltzmannratio*(1-stressratio_p) ** prm%q)
507 
508  t_n = prm%b_sl/(needsgoodname*prm%omega*effectivelength)
509  t_k = effectivelength * prm%B /(2.0_preal*prm%b_sl*tau_pos)
510 
511  vel = prm%kink_height/(t_n + t_k)
512 
513  dot_gamma_neg = dot_gamma_0 * sign(vel,tau_neg) * 0.5_preal
514  else where significantnegativetau
515  dot_gamma_neg = 0.0_preal
516  end where significantnegativetau
517 
518  if (present(ddot_gamma_dtau_neg)) then
519  significantnegativetau2: where(abs(tau_neg)-dst%threshold_stress(:,of) > tol_math_check)
520  dtn = -1.0_preal * t_n * boltzmannratio * prm%p * prm%q * (1.0_preal-stressratio_p)**(prm%q - 1.0_preal) &
521  * (stressratio)**(prm%p - 1.0_preal) / prm%tau_0
522  dtk = -1.0_preal * t_k / tau_neg
523 
524  dvel = -1.0_preal * prm%kink_height * (dtk + dtn) / (t_n + t_k)**2.0_preal
525 
526  ddot_gamma_dtau_neg = dot_gamma_0 * dvel * 0.5_preal
527  else where significantnegativetau2
528  ddot_gamma_dtau_neg = 0.0_preal
529  end where significantnegativetau2
530  end if
531 
532  end associate
533  end associate
534 
535 end subroutine kinetics
536 
537 end submodule plastic_disloucla
config
Reads in the material configuration from file.
Definition: config.f90:13
constitutive
elasticity, plasticity, internal microstructure state
Definition: constitutive.f90:10