cleaning/adjusting names to paper

This commit is contained in:
Martin Diehl 2018-12-21 16:01:16 +01:00
parent da3f105875
commit 939cd0e5bf
1 changed files with 71 additions and 62 deletions

View File

@ -42,21 +42,21 @@ module plastic_disloUCLA
D0, & !< prefactor for self-diffusion coefficient D0, & !< prefactor for self-diffusion coefficient
Qsd !< activation energy for dislocation climb Qsd !< activation energy for dislocation climb
real(pReal), allocatable, dimension(:) :: & real(pReal), allocatable, dimension(:) :: &
rho0, & !< initial edge dislocation density per slip system for each family and instance rho0, & !< initial edge dislocation density
rhoDip0, & !< initial edge dipole density per slip system for each family and instance rhoDip0, & !< initial edge dipole density
burgers, & !< absolute length of burgers vector [m] for each slip system and instance burgers, & !< absolute length of burgers vector [m]
nonSchmidCoeff, & nonSchmidCoeff, &
minDipDistance, & minDipDistance, &
CLambda, & !< Adj. parameter for distance between 2 forest dislocations for each slip system and instance CLambda, & !< Adj. parameter for distance between 2 forest dislocations
atomicVolume, & atomicVolume, &
!* mobility law parameters !* mobility law parameters
H0kp, & !< activation energy for glide [J] for each slip system and instance H0kp, & !< activation energy for glide [J]
v0, & !< dislocation velocity prefactor [m/s] for each family and instance v0, & !< dislocation velocity prefactor [m/s]
p, & !< p-exponent in glide velocity p, & !< p-exponent in glide velocity
q, & !< q-exponent in glide velocity q, & !< q-exponent in glide velocity
B, & !< friction coefficient B, & !< friction coefficient
kink_height, & !< height of the kink pair kink_height, & !< height of the kink pair
kink_width, & !< width of the kink pair w, & !< width of the kink pair
omega, & !< attempt frequency for kink pair nucleation omega, & !< attempt frequency for kink pair nucleation
tau_Peierls tau_Peierls
real(pReal), allocatable, dimension(:,:) :: & real(pReal), allocatable, dimension(:,:) :: &
@ -113,7 +113,6 @@ module plastic_disloUCLA
contains contains
!-------------------------------------------------------------------------------------------------- !--------------------------------------------------------------------------------------------------
!> @brief module initialization !> @brief module initialization
!> @details reads in material parameters, allocates arrays, and does sanity checks !> @details reads in material parameters, allocates arrays, and does sanity checks
@ -233,7 +232,7 @@ subroutine plastic_disloUCLA_init()
prm%q = config_phase(p)%getFloats('q_slip', requiredShape=shape(prm%Nslip), & prm%q = config_phase(p)%getFloats('q_slip', requiredShape=shape(prm%Nslip), &
defaultVal=[(1.0_pReal,i=1_pInt,size(prm%Nslip))]) defaultVal=[(1.0_pReal,i=1_pInt,size(prm%Nslip))])
prm%kink_height = config_phase(p)%getFloats('kink_height', requiredShape=shape(prm%Nslip)) prm%kink_height = config_phase(p)%getFloats('kink_height', requiredShape=shape(prm%Nslip))
prm%kink_width = config_phase(p)%getFloats('kink_width', requiredShape=shape(prm%Nslip)) prm%w = config_phase(p)%getFloats('kink_width', requiredShape=shape(prm%Nslip))
prm%omega = config_phase(p)%getFloats('omega', requiredShape=shape(prm%Nslip)) prm%omega = config_phase(p)%getFloats('omega', requiredShape=shape(prm%Nslip))
prm%B = config_phase(p)%getFloats('friction_coeff', requiredShape=shape(prm%Nslip)) prm%B = config_phase(p)%getFloats('friction_coeff', requiredShape=shape(prm%Nslip))
@ -253,7 +252,7 @@ subroutine plastic_disloUCLA_init()
prm%H0kp = math_expand(prm%H0kp, prm%Nslip) prm%H0kp = math_expand(prm%H0kp, prm%Nslip)
prm%burgers = math_expand(prm%burgers, prm%Nslip) prm%burgers = math_expand(prm%burgers, prm%Nslip)
prm%kink_height = math_expand(prm%kink_height, prm%Nslip) prm%kink_height = math_expand(prm%kink_height, prm%Nslip)
prm%kink_width = math_expand(prm%kink_width, prm%Nslip) prm%w = math_expand(prm%w, prm%Nslip)
prm%omega = math_expand(prm%omega, prm%Nslip) prm%omega = math_expand(prm%omega, prm%Nslip)
prm%tau_Peierls = math_expand(prm%tau_Peierls, prm%Nslip) prm%tau_Peierls = math_expand(prm%tau_Peierls, prm%Nslip)
prm%v0 = math_expand(prm%v0, prm%Nslip) prm%v0 = math_expand(prm%v0, prm%Nslip)
@ -386,7 +385,6 @@ subroutine plastic_disloUCLA_init()
allocate(dst%dislocationSpacing(prm%totalNslip,NipcMyPhase),source=0.0_pReal) allocate(dst%dislocationSpacing(prm%totalNslip,NipcMyPhase),source=0.0_pReal)
allocate(dst%threshold_stress(prm%totalNslip,NipcMyPhase),source=0.0_pReal) allocate(dst%threshold_stress(prm%totalNslip,NipcMyPhase),source=0.0_pReal)
plasticState(p)%state0 = plasticState(p)%state ! ToDo: this could be done centrally plasticState(p)%state0 = plasticState(p)%state ! ToDo: this could be done centrally
end associate end associate
enddo enddo
@ -416,6 +414,8 @@ subroutine plastic_disloUCLA_dependentState(instance,of)
end forall end forall
dst%mfp(:,of) = prm%grainSize/(1.0_pReal+prm%grainSize*dst%dislocationSpacing(:,of)/prm%Clambda) dst%mfp(:,of) = prm%grainSize/(1.0_pReal+prm%grainSize*dst%dislocationSpacing(:,of)/prm%Clambda)
dst%dislocationSpacing(:,of) = dst%mfp(:,of) ! ToDo: Hack to recover wrong behavior for the moment
end associate end associate
@ -428,18 +428,23 @@ end subroutine plastic_disloUCLA_dependentState
pure subroutine plastic_disloUCLA_LpAndItsTangent(Lp,dLp_dMp,Mp,Temperature,instance,of) pure subroutine plastic_disloUCLA_LpAndItsTangent(Lp,dLp_dMp,Mp,Temperature,instance,of)
implicit none implicit none
integer(pInt), intent(in) :: instance, of real(pReal), dimension(3,3), intent(out) :: &
real(pReal), intent(in) :: Temperature Lp
real(pReal), dimension(3,3), intent(in) :: Mp real(pReal), dimension(3,3,3,3), intent(out) :: &
real(pReal), dimension(3,3), intent(out) :: Lp dLp_dMp
real(pReal), dimension(3,3,3,3), intent(out) :: dLp_dMp
real(pReal), dimension(3,3), intent(in):: &
Mp !< Mandel stress
real(pReal), intent(in) :: &
temperature !< temperature
integer(pInt), intent(in) :: &
instance, of
integer(pInt) :: i,k,l,m,n integer(pInt) :: i,k,l,m,n
real(pReal), dimension(param(instance)%totalNslip) :: & real(pReal), dimension(param(instance)%totalNslip) :: &
gdot_slip_pos,gdot_slip_neg,dgdot_dtauslip_pos,dgdot_dtauslip_neg gdot_slip_pos,gdot_slip_neg,dgdot_dtauslip_pos,dgdot_dtauslip_neg
associate(prm => param(instance), stt => state(instance), dst => dependentState(instance)) associate(prm => param(instance))
Lp = 0.0_pReal Lp = 0.0_pReal
dLp_dMp = 0.0_pReal dLp_dMp = 0.0_pReal
@ -453,6 +458,7 @@ pure subroutine plastic_disloUCLA_LpAndItsTangent(Lp,dLp_dMp,Mp,Temperature,inst
+ dgdot_dtauslip_pos(i) * prm%Schmid_slip(k,l,i) * prm%nonSchmid_pos(m,n,i) & + dgdot_dtauslip_pos(i) * prm%Schmid_slip(k,l,i) * prm%nonSchmid_pos(m,n,i) &
+ dgdot_dtauslip_neg(i) * prm%Schmid_slip(k,l,i) * prm%nonSchmid_neg(m,n,i) + dgdot_dtauslip_neg(i) * prm%Schmid_slip(k,l,i) * prm%nonSchmid_neg(m,n,i)
enddo slipSystems enddo slipSystems
end associate end associate
end subroutine plastic_disloUCLA_LpAndItsTangent end subroutine plastic_disloUCLA_LpAndItsTangent
@ -473,7 +479,7 @@ subroutine plastic_disloUCLA_dotState(Mp,Temperature,instance,of)
real(pReal), dimension(3,3), intent(in):: & real(pReal), dimension(3,3), intent(in):: &
Mp !< Mandel stress Mp !< Mandel stress
real(pReal), intent(in) :: & real(pReal), intent(in) :: &
temperature !< temperature at integration point temperature !< temperature
integer(pInt), intent(in) :: & integer(pInt), intent(in) :: &
instance, of instance, of
@ -483,38 +489,37 @@ subroutine plastic_disloUCLA_dotState(Mp,Temperature,instance,of)
gdot_slip_pos, gdot_slip_neg,& gdot_slip_pos, gdot_slip_neg,&
tau_slip_pos,& tau_slip_pos,&
tau_slip_neg, & tau_slip_neg, &
dgdot_dtauslip_neg,dgdot_dtauslip_pos,DotRhoDipFormation, ClimbVelocity, EdgeDipDistance, & DotRhoDipFormation, ClimbVelocity, EdgeDipDistance, &
DotRhoEdgeDipClimb DotRhoEdgeDipClimb
associate(prm => param(instance), stt => state(instance),dot => dotState(instance), dst => dependentState(instance)) associate(prm => param(instance), stt => state(instance),dot => dotState(instance), dst => dependentState(instance))
call kinetics(Mp,Temperature,instance,of,& call kinetics(Mp,Temperature,instance,of,&
gdot_slip_pos,gdot_slip_neg,dgdot_dtauslip_pos,dgdot_dtauslip_neg,tau_slip_pos,tau_slip_neg) gdot_slip_pos,gdot_slip_neg, &
tau_slip_pos1 = tau_slip_pos,tau_slip_neg1 = tau_slip_neg)
dot%whole(:,of) = 0.0_pReal dot%whole(:,of) = 0.0_pReal
dot%accshear_slip(:,of) = (gdot_slip_pos+gdot_slip_neg) ! ToDo: needs to be abs dot%accshear_slip(:,of) = (gdot_slip_pos+gdot_slip_neg) ! ToDo: needs to be abs
VacancyDiffusion = prm%D0*exp(-prm%Qsd/(kB*Temperature)) VacancyDiffusion = prm%D0*exp(-prm%Qsd/(kB*Temperature))
where(dEq0(tau_slip_pos)) where(dEq0(tau_slip_pos)) ! ToDo: use avg of pos and neg
DotRhoDipFormation = 0.0_pReal DotRhoDipFormation = 0.0_pReal
DotRhoEdgeDipClimb = 0.0_pReal DotRhoEdgeDipClimb = 0.0_pReal
else where else where
EdgeDipDistance = math_clip((3.0_pReal*prm%mu*prm%burgers)/(16.0_pReal*PI*abs(tau_slip_pos)), & EdgeDipDistance = math_clip((3.0_pReal*prm%mu*prm%burgers)/(16.0_pReal*PI*abs(tau_slip_pos)), &
prm%minDipDistance, & ! lower limit prm%minDipDistance, & ! lower limit
dst%mfp(:,of)) ! upper limit dst%mfp(:,of)) ! upper limit
DotRhoDipFormation = merge(((2.0_pReal*EdgeDipDistance)/prm%burgers)* stt%rhoEdge(:,of)*abs(dot%accshear_slip(:,of)), & DotRhoDipFormation = merge(((2.0_pReal*EdgeDipDistance)/prm%burgers)* stt%rhoEdge(:,of)*abs(dot%accshear_slip(:,of)), & ! ToDo: ignore region of spontaneous annihilation
0.0_pReal, & 0.0_pReal, &
prm%dipoleformation) prm%dipoleformation)
ClimbVelocity = (3.0_pReal*prm%mu*VacancyDiffusion*prm%atomicVolume/(2.0_pReal*pi*kB*Temperature)) & ClimbVelocity = (3.0_pReal*prm%mu*VacancyDiffusion*prm%atomicVolume/(2.0_pReal*pi*kB*Temperature)) &
* (1.0_pReal/(EdgeDipDistance+prm%minDipDistance)) * (1.0_pReal/(EdgeDipDistance+prm%minDipDistance))
DotRhoEdgeDipClimb = (4.0_pReal*ClimbVelocity*stt%rhoEdgeDip(:,of))/(EdgeDipDistance-prm%minDipDistance) DotRhoEdgeDipClimb = (4.0_pReal*ClimbVelocity*stt%rhoEdgeDip(:,of))/(EdgeDipDistance-prm%minDipDistance) ! ToDo: Discuss with Franz: Stress dependency?
end where end where
dot%rhoEdge(:,of) = abs(dot%accshear_slip(:,of))/(prm%burgers*dst%mfp(:,of)) & ! multiplication dot%rhoEdge(:,of) = abs(dot%accshear_slip(:,of))/(prm%burgers*dst%mfp(:,of)) & ! multiplication
- DotRhoDipFormation & - DotRhoDipFormation &
- (2.0_pReal*prm%minDipDistance)/prm%burgers*stt%rhoEdge(:,of)*abs(dot%accshear_slip(:,of)) !* Spontaneous annihilation of 2 single edge dislocations - (2.0_pReal*prm%minDipDistance)/prm%burgers*stt%rhoEdge(:,of)*abs(dot%accshear_slip(:,of)) !* Spontaneous annihilation of 2 single edge dislocations
dot%rhoEdgeDip(:,of) = DotRhoDipFormation & dot%rhoEdgeDip(:,of) = DotRhoDipFormation &
- (2.0_pReal*prm%minDipDistance)/prm%burgers*stt%rhoEdgeDip(:,of)*abs(dot%accshear_slip(:,of)) & !* Spontaneous annihilation of a single edge dislocation with a dipole constituent - (2.0_pReal*prm%minDipDistance)/prm%burgers*stt%rhoEdgeDip(:,of)*abs(dot%accshear_slip(:,of)) & !* Spontaneous annihilation of a single edge dislocation with a dipole constituent
- DotRhoEdgeDipClimb - DotRhoEdgeDipClimb
@ -538,7 +543,7 @@ function plastic_disloUCLA_postResults(Mp,Temperature,instance,of) result(postRe
real(pReal), dimension(3,3), intent(in) :: & real(pReal), dimension(3,3), intent(in) :: &
Mp !< Mandel stress Mp !< Mandel stress
real(pReal), intent(in) :: & real(pReal), intent(in) :: &
Temperature !< Mandel stress temperature !< temperature
integer(pInt), intent(in) :: & integer(pInt), intent(in) :: &
instance, & instance, &
of of
@ -549,8 +554,8 @@ function plastic_disloUCLA_postResults(Mp,Temperature,instance,of) result(postRe
integer(pInt) :: & integer(pInt) :: &
o,c,i o,c,i
real(pReal), dimension(param(instance)%totalNslip) :: & real(pReal), dimension(param(instance)%totalNslip) :: &
gdot_slip_pos,dgdot_dtauslip_pos, & gdot_slip_pos, &
gdot_slip_neg,dgdot_dtauslip_neg gdot_slip_neg
associate(prm => param(instance), stt => state(instance), dst => dependentState(instance)) associate(prm => param(instance), stt => state(instance), dst => dependentState(instance))
@ -565,8 +570,7 @@ function plastic_disloUCLA_postResults(Mp,Temperature,instance,of) result(postRe
case (rhoDip_ID) case (rhoDip_ID)
postResults(c+1_pInt:c+prm%totalNslip) = stt%rhoEdgeDip(1_pInt:prm%totalNslip,of) postResults(c+1_pInt:c+prm%totalNslip) = stt%rhoEdgeDip(1_pInt:prm%totalNslip,of)
case (shearrate_ID) case (shearrate_ID)
call kinetics(Mp,Temperature,instance,of, & call kinetics(Mp,Temperature,instance,of,gdot_slip_pos,gdot_slip_neg)
gdot_slip_pos,gdot_slip_neg,dgdot_dtauslip_pos,dgdot_dtauslip_neg)
postResults(c+1:c+prm%totalNslip) = gdot_slip_pos + gdot_slip_neg postResults(c+1:c+prm%totalNslip) = gdot_slip_pos + gdot_slip_neg
case (accumulatedshear_ID) case (accumulatedshear_ID)
postResults(c+1_pInt:c+prm%totalNslip) = stt%accshear_slip(1_pInt:prm%totalNslip, of) postResults(c+1_pInt:c+prm%totalNslip) = stt%accshear_slip(1_pInt:prm%totalNslip, of)
@ -574,7 +578,7 @@ function plastic_disloUCLA_postResults(Mp,Temperature,instance,of) result(postRe
postResults(c+1_pInt:c+prm%totalNslip) = dst%mfp(1_pInt:prm%totalNslip, of) postResults(c+1_pInt:c+prm%totalNslip) = dst%mfp(1_pInt:prm%totalNslip, of)
case (thresholdstress_ID) case (thresholdstress_ID)
postResults(c+1_pInt:c+prm%totalNslip) = dst%threshold_stress(1_pInt:prm%totalNslip,of) postResults(c+1_pInt:c+prm%totalNslip) = dst%threshold_stress(1_pInt:prm%totalNslip,of)
case (dipoleDistance_ID) case (dipoleDistance_ID) ! ToDo: Discuss required changes with Franz
do i = 1_pInt, prm%totalNslip do i = 1_pInt, prm%totalNslip
if (dNeq0(abs(math_mul33xx33(Mp,prm%nonSchmid_pos(1:3,1:3,i))))) then if (dNeq0(abs(math_mul33xx33(Mp,prm%nonSchmid_pos(1:3,1:3,i))))) then
postResults(c+i) = (3.0_pReal*prm%mu*prm%burgers(i)) & postResults(c+i) = (3.0_pReal*prm%mu*prm%burgers(i)) &
@ -607,9 +611,9 @@ pure subroutine kinetics(Mp,Temperature,instance,of, &
implicit none implicit none
real(pReal), dimension(3,3), intent(in) :: & real(pReal), dimension(3,3), intent(in) :: &
Mp !< 2nd Piola Kirchhoff stress tensor in Mandel notation Mp !< Mandel stress
real(pReal), intent(in) :: & real(pReal), intent(in) :: &
temperature !< temperature at integration point temperature !< temperature
integer(pInt), intent(in) :: & integer(pInt), intent(in) :: &
of, instance of, instance
@ -620,12 +624,13 @@ pure subroutine kinetics(Mp,Temperature,instance,of, &
real(pReal), intent(out), optional, dimension(param(instance)%totalNslip) :: & real(pReal), intent(out), optional, dimension(param(instance)%totalNslip) :: &
dgdot_dtauslip_pos,tau_slip_pos1,dgdot_dtauslip_neg,tau_slip_neg1 dgdot_dtauslip_pos,tau_slip_pos1,dgdot_dtauslip_neg,tau_slip_neg1
real(pReal), dimension(param(instance)%totalNslip) :: & real(pReal), dimension(param(instance)%totalNslip) :: &
StressRatio, BoltzmannRatio, & StressRatio, &
StressRatio_p,StressRatio_pminus1, & StressRatio_p,StressRatio_pminus1, &
DotGamma0, dvel_slip, vel_slip, & dvel_slip, vel_slip, &
tau_slip_pos,tau_slip_neg tau_slip_pos,tau_slip_neg, &
needsGoodName ! ToDo: @Karo: any idea?
associate(prm => param(instance), stt => state(instance),dot => dotState(instance), dst => dependentState(instance)) associate(prm => param(instance), stt => state(instance), dst => dependentState(instance))
do j = 1_pInt, prm%totalNslip do j = 1_pInt, prm%totalNslip
tau_slip_pos(j) = math_mul33xx33(Mp,prm%nonSchmid_pos(1:3,1:3,j)) tau_slip_pos(j) = math_mul33xx33(Mp,prm%nonSchmid_pos(1:3,1:3,j))
@ -636,23 +641,24 @@ pure subroutine kinetics(Mp,Temperature,instance,of, &
if (present(tau_slip_pos1)) tau_slip_pos1 = tau_slip_pos if (present(tau_slip_pos1)) tau_slip_pos1 = tau_slip_pos
if (present(tau_slip_neg1)) tau_slip_neg1 = tau_slip_neg if (present(tau_slip_neg1)) tau_slip_neg1 = tau_slip_neg
BoltzmannRatio = prm%H0kp/(kB*Temperature) associate(BoltzmannRatio => prm%H0kp/(kB*Temperature), &
DotGamma0 = stt%rhoEdge(:,of)*prm%burgers*prm%v0 DotGamma0 => stt%rhoEdge(:,of)*prm%burgers*prm%v0)
significantPositiveTau: where(abs(tau_slip_pos)-dst%threshold_stress(:,of) > tol_math_check) significantPositiveTau: where(abs(tau_slip_pos)-dst%threshold_stress(:,of) > tol_math_check)
StressRatio = (abs(tau_slip_pos)-dst%threshold_stress(:,of)) & StressRatio = (abs(tau_slip_pos)-dst%threshold_stress(:,of)) &
/ (prm%solidSolutionStrength+prm%tau_Peierls) / (prm%solidSolutionStrength+prm%tau_Peierls)
StressRatio_p = StressRatio** prm%p StressRatio_p = StressRatio** prm%p
StressRatio_pminus1 = StressRatio**(prm%p-1.0_pReal) StressRatio_pminus1 = StressRatio**(prm%p-1.0_pReal)
needsGoodName = exp(-BoltzmannRatio*(1-StressRatio_p) ** prm%q)
vel_slip = 2.0_pReal*prm%burgers * prm%kink_height * prm%omega & vel_slip = 2.0_pReal*prm%burgers * prm%kink_height * prm%omega &
* ( dst%mfp(:,of) - prm%kink_width ) & * ( dst%mfp(:,of) - prm%w ) &
* (tau_slip_pos & * (tau_slip_pos &
* exp(-BoltzmannRatio*(1-StressRatio_p) ** prm%q) ) & * exp(-BoltzmannRatio*(1-StressRatio_p) ** prm%q) ) &
/ ( & / ( &
2.0_pReal*(prm%burgers**2.0_pReal)*tau_slip_pos & 2.0_pReal*(prm%burgers**2.0_pReal)*tau_slip_pos &
+ prm%omega * prm%B & + prm%omega * prm%B &
*(( dst%mfp(:,of) - prm%kink_width )**2.0_pReal) & *(( dst%mfp(:,of) - prm%w )**2.0_pReal) &
* exp(-BoltzmannRatio*(1-StressRatio_p) ** prm%q) & * exp(-BoltzmannRatio*(1-StressRatio_p) ** prm%q) &
) )
@ -661,9 +667,10 @@ pure subroutine kinetics(Mp,Temperature,instance,of, &
gdot_slip_pos = 0.0_pReal gdot_slip_pos = 0.0_pReal
end where significantPositiveTau end where significantPositiveTau
if (present(dgdot_dtauslip_pos)) then
significantPositiveTau2: where(abs(tau_slip_pos)-dst%threshold_stress(:,of) > tol_math_check) significantPositiveTau2: where(abs(tau_slip_pos)-dst%threshold_stress(:,of) > tol_math_check)
dvel_slip = 2.0_pReal*prm%burgers * prm%kink_height * prm%omega & dvel_slip = 2.0_pReal*prm%burgers * prm%kink_height * prm%omega &
* ( dst%mfp(:,of) - prm%kink_width ) & * ( dst%mfp(:,of) - prm%w ) &
* ( & * ( &
(exp(-BoltzmannRatio*(1-StressRatio_p) ** prm%q) & (exp(-BoltzmannRatio*(1-StressRatio_p) ** prm%q) &
+ tau_slip_pos & + tau_slip_pos &
@ -675,14 +682,14 @@ pure subroutine kinetics(Mp,Temperature,instance,of, &
) & ) &
* (2.0_pReal*(prm%burgers**2.0_pReal)*tau_slip_pos & * (2.0_pReal*(prm%burgers**2.0_pReal)*tau_slip_pos &
+ prm%omega * prm%B & + prm%omega * prm%B &
*(( dst%mfp(:,of) - prm%kink_width )**2.0_pReal) & *(( dst%mfp(:,of) - prm%w )**2.0_pReal) &
* exp(-BoltzmannRatio*(1-StressRatio_p) ** prm%q) & * exp(-BoltzmannRatio*(1-StressRatio_p) ** prm%q) &
) & ) &
- (tau_slip_pos & - (tau_slip_pos &
* exp(-BoltzmannRatio*(1-StressRatio_p) ** prm%q) ) & * exp(-BoltzmannRatio*(1-StressRatio_p) ** prm%q) ) &
* (2.0_pReal*(prm%burgers**2.0_pReal) & * (2.0_pReal*(prm%burgers**2.0_pReal) &
+ prm%omega * prm%B & + prm%omega * prm%B &
*(( dst%mfp(:,of) - prm%kink_width )**2.0_pReal) & *(( dst%mfp(:,of) - prm%w )**2.0_pReal) &
* (abs(exp(-BoltzmannRatio*(1-StressRatio_p) ** prm%q))& * (abs(exp(-BoltzmannRatio*(1-StressRatio_p) ** prm%q))&
*BoltzmannRatio*prm%p& *BoltzmannRatio*prm%p&
*prm%q/& *prm%q/&
@ -694,7 +701,7 @@ pure subroutine kinetics(Mp,Temperature,instance,of, &
( & ( &
2.0_pReal*(prm%burgers**2.0_pReal)*tau_slip_pos & 2.0_pReal*(prm%burgers**2.0_pReal)*tau_slip_pos &
+ prm%omega * prm%B & + prm%omega * prm%B &
*(( dst%mfp(:,of) - prm%kink_width )**2.0_pReal) & *(( dst%mfp(:,of) - prm%w )**2.0_pReal) &
* exp(-BoltzmannRatio*(1-StressRatio_p) ** prm%q) & * exp(-BoltzmannRatio*(1-StressRatio_p) ** prm%q) &
)**2.0_pReal & )**2.0_pReal &
) )
@ -703,21 +710,23 @@ pure subroutine kinetics(Mp,Temperature,instance,of, &
else where significantPositiveTau2 else where significantPositiveTau2
dgdot_dtauslip_pos = 0.0_pReal dgdot_dtauslip_pos = 0.0_pReal
end where significantPositiveTau2 end where significantPositiveTau2
endif
significantNegativeTau: where(abs(tau_slip_neg)-dst%threshold_stress(:,of) > tol_math_check) significantNegativeTau: where(abs(tau_slip_neg)-dst%threshold_stress(:,of) > tol_math_check)
StressRatio = (abs(tau_slip_neg)-dst%threshold_stress(:,of)) & StressRatio = (abs(tau_slip_neg)-dst%threshold_stress(:,of)) &
/ (prm%solidSolutionStrength+prm%tau_Peierls) / (prm%solidSolutionStrength+prm%tau_Peierls)
StressRatio_p = StressRatio** prm%p StressRatio_p = StressRatio** prm%p
StressRatio_pminus1 = StressRatio**(prm%p-1.0_pReal) StressRatio_pminus1 = StressRatio**(prm%p-1.0_pReal)
needsGoodName = exp(-BoltzmannRatio*(1-StressRatio_p) ** prm%q)
vel_slip = 2.0_pReal*prm%burgers * prm%kink_height * prm%omega & vel_slip = 2.0_pReal*prm%burgers * prm%kink_height * prm%omega &
* ( dst%mfp(:,of) - prm%kink_width ) & * ( dst%mfp(:,of) - prm%w ) &
* (tau_slip_neg & * (tau_slip_neg &
* exp(-BoltzmannRatio*(1-StressRatio_p) ** prm%q) ) & * exp(-BoltzmannRatio*(1-StressRatio_p) ** prm%q) ) &
/ ( & / ( &
2.0_pReal*(prm%burgers**2.0_pReal)*tau_slip_neg & 2.0_pReal*(prm%burgers**2.0_pReal)*tau_slip_neg &
+ prm%omega * prm%B & + prm%omega * prm%B &
*(( dst%mfp(:,of) - prm%kink_width )**2.0_pReal) & *(( dst%mfp(:,of) - prm%w )**2.0_pReal) &
* exp(-BoltzmannRatio*(1-StressRatio_p) ** prm%q) & * exp(-BoltzmannRatio*(1-StressRatio_p) ** prm%q) &
) )
@ -726,9 +735,10 @@ pure subroutine kinetics(Mp,Temperature,instance,of, &
gdot_slip_neg = 0.0_pReal gdot_slip_neg = 0.0_pReal
end where significantNegativeTau end where significantNegativeTau
if (present(dgdot_dtauslip_neg)) then
significantNegativeTau2: where(abs(tau_slip_neg)-dst%threshold_stress(:,of) > tol_math_check) significantNegativeTau2: where(abs(tau_slip_neg)-dst%threshold_stress(:,of) > tol_math_check)
dvel_slip = 2.0_pReal*prm%burgers * prm%kink_height * prm%omega & dvel_slip = 2.0_pReal*prm%burgers * prm%kink_height * prm%omega &
* ( dst%mfp(:,of) - prm%kink_width ) & * ( dst%mfp(:,of) - prm%w ) &
* ( & * ( &
(exp(-BoltzmannRatio*(1-StressRatio_p) ** prm%q) & (exp(-BoltzmannRatio*(1-StressRatio_p) ** prm%q) &
+ tau_slip_neg & + tau_slip_neg &
@ -740,14 +750,14 @@ pure subroutine kinetics(Mp,Temperature,instance,of, &
) & ) &
* (2.0_pReal*(prm%burgers**2.0_pReal)*tau_slip_neg & * (2.0_pReal*(prm%burgers**2.0_pReal)*tau_slip_neg &
+ prm%omega * prm%B & + prm%omega * prm%B &
*(( dst%mfp(:,of) - prm%kink_width )**2.0_pReal) & *(( dst%mfp(:,of) - prm%w )**2.0_pReal) &
* exp(-BoltzmannRatio*(1-StressRatio_p) ** prm%q) & * exp(-BoltzmannRatio*(1-StressRatio_p) ** prm%q) &
) & ) &
- (tau_slip_neg & - (tau_slip_neg &
* exp(-BoltzmannRatio*(1-StressRatio_p) ** prm%q) ) & * exp(-BoltzmannRatio*(1-StressRatio_p) ** prm%q) ) &
* (2.0_pReal*(prm%burgers**2.0_pReal) & * (2.0_pReal*(prm%burgers**2.0_pReal) &
+ prm%omega * prm%B & + prm%omega * prm%B &
*(( dst%mfp(:,of) - prm%kink_width )**2.0_pReal) & *(( dst%mfp(:,of) - prm%w )**2.0_pReal) &
* (abs(exp(-BoltzmannRatio*(1-StressRatio_p) ** prm%q))& * (abs(exp(-BoltzmannRatio*(1-StressRatio_p) ** prm%q))&
*BoltzmannRatio*prm%p& *BoltzmannRatio*prm%p&
*prm%q/& *prm%q/&
@ -759,20 +769,19 @@ pure subroutine kinetics(Mp,Temperature,instance,of, &
( & ( &
2.0_pReal*(prm%burgers**2.0_pReal)*tau_slip_neg & 2.0_pReal*(prm%burgers**2.0_pReal)*tau_slip_neg &
+ prm%omega * prm%B & + prm%omega * prm%B &
*(( dst%mfp(:,of) - prm%kink_width )**2.0_pReal) & *(( dst%mfp(:,of) - prm%w )**2.0_pReal) &
* exp(-BoltzmannRatio*(1-StressRatio_p) ** prm%q) & * exp(-BoltzmannRatio*(1-StressRatio_p) ** prm%q) &
)**2.0_pReal & )**2.0_pReal &
) )
dgdot_dtauslip_neg = DotGamma0 * dvel_slip * 0.5_pReal dgdot_dtauslip_neg = DotGamma0 * dvel_slip * 0.5_pReal
else where significantNegativeTau2 else where significantNegativeTau2
dgdot_dtauslip_neg = 0.0_pReal dgdot_dtauslip_neg = 0.0_pReal
end where significantNegativeTau2 end where significantNegativeTau2
end if
end associate
end associate end associate
end subroutine kinetics end subroutine kinetics
end module plastic_disloUCLA end module plastic_disloUCLA