2020-07-15 18:05:21 +05:30
|
|
|
!----------------------------------------------------------------------------------------------------
|
|
|
|
!> @brief internal microstructure state for all plasticity constitutive models
|
|
|
|
!----------------------------------------------------------------------------------------------------
|
2020-07-09 04:31:08 +05:30
|
|
|
submodule(constitutive) constitutive_plastic
|
|
|
|
|
|
|
|
interface
|
|
|
|
|
|
|
|
module subroutine plastic_none_init
|
|
|
|
end subroutine plastic_none_init
|
|
|
|
|
|
|
|
module subroutine plastic_isotropic_init
|
|
|
|
end subroutine plastic_isotropic_init
|
|
|
|
|
|
|
|
module subroutine plastic_phenopowerlaw_init
|
|
|
|
end subroutine plastic_phenopowerlaw_init
|
|
|
|
|
|
|
|
module subroutine plastic_kinehardening_init
|
|
|
|
end subroutine plastic_kinehardening_init
|
|
|
|
|
|
|
|
module subroutine plastic_dislotwin_init
|
|
|
|
end subroutine plastic_dislotwin_init
|
|
|
|
|
|
|
|
module subroutine plastic_disloUCLA_init
|
|
|
|
end subroutine plastic_disloUCLA_init
|
|
|
|
|
|
|
|
module subroutine plastic_nonlocal_init
|
|
|
|
end subroutine plastic_nonlocal_init
|
|
|
|
|
|
|
|
|
|
|
|
module subroutine plastic_isotropic_LpAndItsTangent(Lp,dLp_dMp,Mp,instance,of)
|
|
|
|
real(pReal), dimension(3,3), intent(out) :: &
|
|
|
|
Lp !< plastic velocity gradient
|
|
|
|
real(pReal), dimension(3,3,3,3), intent(out) :: &
|
|
|
|
dLp_dMp !< derivative of Lp with respect to the Mandel stress
|
|
|
|
|
|
|
|
real(pReal), dimension(3,3), intent(in) :: &
|
|
|
|
Mp !< Mandel stress
|
|
|
|
integer, intent(in) :: &
|
|
|
|
instance, &
|
|
|
|
of
|
|
|
|
end subroutine plastic_isotropic_LpAndItsTangent
|
|
|
|
|
|
|
|
pure module subroutine plastic_phenopowerlaw_LpAndItsTangent(Lp,dLp_dMp,Mp,instance,of)
|
|
|
|
real(pReal), dimension(3,3), intent(out) :: &
|
|
|
|
Lp !< plastic velocity gradient
|
|
|
|
real(pReal), dimension(3,3,3,3), intent(out) :: &
|
|
|
|
dLp_dMp !< derivative of Lp with respect to the Mandel stress
|
|
|
|
real(pReal), dimension(3,3), intent(in) :: &
|
|
|
|
Mp !< Mandel stress
|
|
|
|
integer, intent(in) :: &
|
|
|
|
instance, &
|
|
|
|
of
|
|
|
|
end subroutine plastic_phenopowerlaw_LpAndItsTangent
|
|
|
|
|
|
|
|
pure module subroutine plastic_kinehardening_LpAndItsTangent(Lp,dLp_dMp,Mp,instance,of)
|
|
|
|
real(pReal), dimension(3,3), intent(out) :: &
|
|
|
|
Lp !< plastic velocity gradient
|
|
|
|
real(pReal), dimension(3,3,3,3), intent(out) :: &
|
|
|
|
dLp_dMp !< derivative of Lp with respect to the Mandel stress
|
|
|
|
|
|
|
|
real(pReal), dimension(3,3), intent(in) :: &
|
|
|
|
Mp !< Mandel stress
|
|
|
|
integer, intent(in) :: &
|
|
|
|
instance, &
|
|
|
|
of
|
|
|
|
end subroutine plastic_kinehardening_LpAndItsTangent
|
|
|
|
|
|
|
|
module subroutine plastic_dislotwin_LpAndItsTangent(Lp,dLp_dMp,Mp,T,instance,of)
|
|
|
|
real(pReal), dimension(3,3), intent(out) :: &
|
|
|
|
Lp !< plastic velocity gradient
|
|
|
|
real(pReal), dimension(3,3,3,3), intent(out) :: &
|
|
|
|
dLp_dMp !< derivative of Lp with respect to the Mandel stress
|
|
|
|
|
|
|
|
real(pReal), dimension(3,3), intent(in) :: &
|
|
|
|
Mp !< Mandel stress
|
|
|
|
real(pReal), intent(in) :: &
|
|
|
|
T
|
|
|
|
integer, intent(in) :: &
|
|
|
|
instance, &
|
|
|
|
of
|
|
|
|
end subroutine plastic_dislotwin_LpAndItsTangent
|
|
|
|
|
|
|
|
pure module subroutine plastic_disloUCLA_LpAndItsTangent(Lp,dLp_dMp,Mp,T,instance,of)
|
|
|
|
real(pReal), dimension(3,3), intent(out) :: &
|
|
|
|
Lp !< plastic velocity gradient
|
|
|
|
real(pReal), dimension(3,3,3,3), intent(out) :: &
|
|
|
|
dLp_dMp !< derivative of Lp with respect to the Mandel stress
|
|
|
|
|
|
|
|
real(pReal), dimension(3,3), intent(in) :: &
|
|
|
|
Mp !< Mandel stress
|
|
|
|
real(pReal), intent(in) :: &
|
|
|
|
T
|
|
|
|
integer, intent(in) :: &
|
|
|
|
instance, &
|
|
|
|
of
|
|
|
|
end subroutine plastic_disloUCLA_LpAndItsTangent
|
|
|
|
|
|
|
|
module subroutine plastic_nonlocal_LpAndItsTangent(Lp,dLp_dMp, &
|
|
|
|
Mp,Temperature,instance,of,ip,el)
|
|
|
|
real(pReal), dimension(3,3), intent(out) :: &
|
|
|
|
Lp !< plastic velocity gradient
|
|
|
|
real(pReal), dimension(3,3,3,3), intent(out) :: &
|
|
|
|
dLp_dMp !< derivative of Lp with respect to the Mandel stress
|
|
|
|
|
|
|
|
real(pReal), dimension(3,3), intent(in) :: &
|
|
|
|
Mp !< Mandel stress
|
|
|
|
real(pReal), intent(in) :: &
|
|
|
|
Temperature
|
|
|
|
integer, intent(in) :: &
|
|
|
|
instance, &
|
|
|
|
of, &
|
|
|
|
ip, & !< current integration point
|
|
|
|
el !< current element number
|
|
|
|
end subroutine plastic_nonlocal_LpAndItsTangent
|
|
|
|
|
|
|
|
|
|
|
|
module subroutine plastic_dislotwin_dependentState(T,instance,of)
|
|
|
|
integer, intent(in) :: &
|
|
|
|
instance, &
|
|
|
|
of
|
|
|
|
real(pReal), intent(in) :: &
|
|
|
|
T
|
|
|
|
end subroutine plastic_dislotwin_dependentState
|
|
|
|
|
|
|
|
module subroutine plastic_disloUCLA_dependentState(instance,of)
|
|
|
|
integer, intent(in) :: &
|
|
|
|
instance, &
|
|
|
|
of
|
|
|
|
end subroutine plastic_disloUCLA_dependentState
|
|
|
|
|
|
|
|
module subroutine plastic_nonlocal_dependentState(F, Fp, instance, of, ip, el)
|
|
|
|
real(pReal), dimension(3,3), intent(in) :: &
|
2020-07-15 18:05:21 +05:30
|
|
|
F, & !< deformation gradient
|
|
|
|
Fp !< plastic deformation gradient
|
2020-07-09 04:31:08 +05:30
|
|
|
integer, intent(in) :: &
|
|
|
|
instance, &
|
|
|
|
of, &
|
2020-07-15 18:05:21 +05:30
|
|
|
ip, & !< current integration point
|
|
|
|
el !< current element number
|
2020-07-09 04:31:08 +05:30
|
|
|
end subroutine plastic_nonlocal_dependentState
|
|
|
|
|
2020-07-12 18:52:40 +05:30
|
|
|
module subroutine plastic_isotropic_results(instance,group)
|
|
|
|
integer, intent(in) :: instance
|
|
|
|
character(len=*), intent(in) :: group
|
|
|
|
end subroutine plastic_isotropic_results
|
|
|
|
|
|
|
|
module subroutine plastic_phenopowerlaw_results(instance,group)
|
|
|
|
integer, intent(in) :: instance
|
|
|
|
character(len=*), intent(in) :: group
|
|
|
|
end subroutine plastic_phenopowerlaw_results
|
|
|
|
|
|
|
|
module subroutine plastic_kinehardening_results(instance,group)
|
|
|
|
integer, intent(in) :: instance
|
|
|
|
character(len=*), intent(in) :: group
|
|
|
|
end subroutine plastic_kinehardening_results
|
|
|
|
|
|
|
|
module subroutine plastic_dislotwin_results(instance,group)
|
|
|
|
integer, intent(in) :: instance
|
|
|
|
character(len=*), intent(in) :: group
|
|
|
|
end subroutine plastic_dislotwin_results
|
|
|
|
|
|
|
|
module subroutine plastic_disloUCLA_results(instance,group)
|
|
|
|
integer, intent(in) :: instance
|
|
|
|
character(len=*), intent(in) :: group
|
|
|
|
end subroutine plastic_disloUCLA_results
|
|
|
|
|
|
|
|
module subroutine plastic_nonlocal_results(instance,group)
|
|
|
|
integer, intent(in) :: instance
|
|
|
|
character(len=*), intent(in) :: group
|
|
|
|
end subroutine plastic_nonlocal_results
|
|
|
|
|
|
|
|
|
2020-07-09 04:31:08 +05:30
|
|
|
end interface
|
|
|
|
|
|
|
|
|
|
|
|
contains
|
|
|
|
|
|
|
|
|
|
|
|
!--------------------------------------------------------------------------------------------------
|
2020-07-13 18:18:23 +05:30
|
|
|
!> @brief Initialize constitutive models for plasticity
|
2020-07-09 04:31:08 +05:30
|
|
|
!--------------------------------------------------------------------------------------------------
|
|
|
|
module subroutine plastic_init
|
|
|
|
|
|
|
|
if (any(phase_plasticity == PLASTICITY_NONE_ID)) call plastic_none_init
|
|
|
|
if (any(phase_plasticity == PLASTICITY_ISOTROPIC_ID)) call plastic_isotropic_init
|
|
|
|
if (any(phase_plasticity == PLASTICITY_PHENOPOWERLAW_ID)) call plastic_phenopowerlaw_init
|
|
|
|
if (any(phase_plasticity == PLASTICITY_KINEHARDENING_ID)) call plastic_kinehardening_init
|
|
|
|
if (any(phase_plasticity == PLASTICITY_DISLOTWIN_ID)) call plastic_dislotwin_init
|
|
|
|
if (any(phase_plasticity == PLASTICITY_DISLOUCLA_ID)) call plastic_disloucla_init
|
|
|
|
if (any(phase_plasticity == PLASTICITY_NONLOCAL_ID)) then
|
|
|
|
call plastic_nonlocal_init
|
|
|
|
else
|
|
|
|
call geometry_plastic_nonlocal_disable
|
|
|
|
endif
|
|
|
|
|
|
|
|
end subroutine plastic_init
|
|
|
|
|
2020-07-10 18:29:07 +05:30
|
|
|
|
2020-07-09 04:31:08 +05:30
|
|
|
!--------------------------------------------------------------------------------------------------
|
2020-07-12 20:14:26 +05:30
|
|
|
!> @brief calls microstructure function of the different plasticity constitutive models
|
2020-07-09 04:31:08 +05:30
|
|
|
!--------------------------------------------------------------------------------------------------
|
2020-07-12 20:14:26 +05:30
|
|
|
module subroutine constitutive_plastic_dependentState(F, Fp, ipc, ip, el)
|
|
|
|
|
|
|
|
integer, intent(in) :: &
|
|
|
|
ipc, & !< component-ID of integration point
|
|
|
|
ip, & !< integration point
|
|
|
|
el !< element
|
|
|
|
real(pReal), intent(in), dimension(3,3) :: &
|
|
|
|
F, & !< elastic deformation gradient
|
|
|
|
Fp !< plastic deformation gradient
|
2020-07-10 18:43:56 +05:30
|
|
|
|
2020-07-09 04:31:08 +05:30
|
|
|
integer :: &
|
|
|
|
ho, & !< homogenization
|
|
|
|
tme, & !< thermal member position
|
|
|
|
instance, of
|
|
|
|
|
|
|
|
ho = material_homogenizationAt(el)
|
|
|
|
tme = thermalMapping(ho)%p(ip,el)
|
|
|
|
of = material_phasememberAt(ipc,ip,el)
|
|
|
|
instance = phase_plasticityInstance(material_phaseAt(ipc,el))
|
|
|
|
|
|
|
|
plasticityType: select case (phase_plasticity(material_phaseAt(ipc,el)))
|
|
|
|
case (PLASTICITY_DISLOTWIN_ID) plasticityType
|
|
|
|
call plastic_dislotwin_dependentState(temperature(ho)%p(tme),instance,of)
|
|
|
|
case (PLASTICITY_DISLOUCLA_ID) plasticityType
|
|
|
|
call plastic_disloUCLA_dependentState(instance,of)
|
|
|
|
case (PLASTICITY_NONLOCAL_ID) plasticityType
|
|
|
|
call plastic_nonlocal_dependentState (F,Fp,instance,of,ip,el)
|
|
|
|
end select plasticityType
|
|
|
|
|
2020-07-12 20:14:26 +05:30
|
|
|
end subroutine constitutive_plastic_dependentState
|
|
|
|
|
2020-07-09 04:31:08 +05:30
|
|
|
|
|
|
|
!--------------------------------------------------------------------------------------------------
|
|
|
|
!> @brief contains the constitutive equation for calculating the velocity gradient
|
|
|
|
! ToDo: Discuss whether it makes sense if crystallite handles the configuration conversion, i.e.
|
|
|
|
! Mp in, dLp_dMp out
|
|
|
|
!--------------------------------------------------------------------------------------------------
|
2020-07-12 20:14:26 +05:30
|
|
|
module subroutine constitutive_plastic_LpAndItsTangents(Lp, dLp_dS, dLp_dFi, &
|
|
|
|
S, Fi, ipc, ip, el)
|
|
|
|
integer, intent(in) :: &
|
|
|
|
ipc, & !< component-ID of integration point
|
|
|
|
ip, & !< integration point
|
|
|
|
el !< element
|
|
|
|
real(pReal), intent(in), dimension(3,3) :: &
|
|
|
|
S, & !< 2nd Piola-Kirchhoff stress
|
|
|
|
Fi !< intermediate deformation gradient
|
|
|
|
real(pReal), intent(out), dimension(3,3) :: &
|
|
|
|
Lp !< plastic velocity gradient
|
|
|
|
real(pReal), intent(out), dimension(3,3,3,3) :: &
|
|
|
|
dLp_dS, &
|
|
|
|
dLp_dFi !< derivative of Lp with respect to Fi
|
2020-07-10 18:43:56 +05:30
|
|
|
|
2020-07-09 04:31:08 +05:30
|
|
|
real(pReal), dimension(3,3,3,3) :: &
|
|
|
|
dLp_dMp !< derivative of Lp with respect to Mandel stress
|
|
|
|
real(pReal), dimension(3,3) :: &
|
|
|
|
Mp !< Mandel stress work conjugate with Lp
|
|
|
|
integer :: &
|
|
|
|
ho, & !< homogenization
|
|
|
|
tme !< thermal member position
|
|
|
|
integer :: &
|
|
|
|
i, j, instance, of
|
|
|
|
|
|
|
|
ho = material_homogenizationAt(el)
|
|
|
|
tme = thermalMapping(ho)%p(ip,el)
|
|
|
|
|
|
|
|
Mp = matmul(matmul(transpose(Fi),Fi),S)
|
|
|
|
of = material_phasememberAt(ipc,ip,el)
|
|
|
|
instance = phase_plasticityInstance(material_phaseAt(ipc,el))
|
|
|
|
|
|
|
|
plasticityType: select case (phase_plasticity(material_phaseAt(ipc,el)))
|
|
|
|
|
|
|
|
case (PLASTICITY_NONE_ID) plasticityType
|
|
|
|
Lp = 0.0_pReal
|
|
|
|
dLp_dMp = 0.0_pReal
|
|
|
|
|
|
|
|
case (PLASTICITY_ISOTROPIC_ID) plasticityType
|
|
|
|
call plastic_isotropic_LpAndItsTangent (Lp,dLp_dMp,Mp,instance,of)
|
|
|
|
|
|
|
|
case (PLASTICITY_PHENOPOWERLAW_ID) plasticityType
|
|
|
|
call plastic_phenopowerlaw_LpAndItsTangent(Lp,dLp_dMp,Mp,instance,of)
|
|
|
|
|
|
|
|
case (PLASTICITY_KINEHARDENING_ID) plasticityType
|
|
|
|
call plastic_kinehardening_LpAndItsTangent(Lp,dLp_dMp,Mp,instance,of)
|
|
|
|
|
|
|
|
case (PLASTICITY_NONLOCAL_ID) plasticityType
|
|
|
|
call plastic_nonlocal_LpAndItsTangent (Lp,dLp_dMp,Mp, temperature(ho)%p(tme),instance,of,ip,el)
|
|
|
|
|
|
|
|
case (PLASTICITY_DISLOTWIN_ID) plasticityType
|
|
|
|
call plastic_dislotwin_LpAndItsTangent (Lp,dLp_dMp,Mp,temperature(ho)%p(tme),instance,of)
|
|
|
|
|
|
|
|
case (PLASTICITY_DISLOUCLA_ID) plasticityType
|
|
|
|
call plastic_disloucla_LpAndItsTangent (Lp,dLp_dMp,Mp,temperature(ho)%p(tme),instance,of)
|
|
|
|
|
|
|
|
end select plasticityType
|
|
|
|
|
|
|
|
do i=1,3; do j=1,3
|
|
|
|
dLp_dFi(i,j,1:3,1:3) = matmul(matmul(Fi,S),transpose(dLp_dMp(i,j,1:3,1:3))) + &
|
|
|
|
matmul(matmul(Fi,dLp_dMp(i,j,1:3,1:3)),S)
|
|
|
|
dLp_dS(i,j,1:3,1:3) = matmul(matmul(transpose(Fi),Fi),dLp_dMp(i,j,1:3,1:3)) ! ToDo: @PS: why not: dLp_dMp:(FiT Fi)
|
|
|
|
enddo; enddo
|
|
|
|
|
2020-07-12 20:14:26 +05:30
|
|
|
end subroutine constitutive_plastic_LpAndItsTangents
|
|
|
|
|
2020-07-09 04:31:08 +05:30
|
|
|
|
2020-07-12 20:14:26 +05:30
|
|
|
!--------------------------------------------------------------------------------------------
|
|
|
|
!> @brief writes plasticity constitutive results to HDF5 output file
|
|
|
|
!--------------------------------------------------------------------------------------------
|
2020-07-12 18:52:40 +05:30
|
|
|
module subroutine plastic_results
|
|
|
|
|
|
|
|
integer :: p
|
|
|
|
character(len=pStringLen) :: group
|
|
|
|
|
|
|
|
plasticityLoop: do p=1,size(config_name_phase)
|
|
|
|
group = trim('current/constituent')//'/'//trim(config_name_phase(p))
|
|
|
|
call results_closeGroup(results_addGroup(group))
|
|
|
|
|
|
|
|
group = trim(group)//'/plastic'
|
|
|
|
|
|
|
|
call results_closeGroup(results_addGroup(group))
|
|
|
|
select case(phase_plasticity(p))
|
|
|
|
|
|
|
|
case(PLASTICITY_ISOTROPIC_ID)
|
|
|
|
call plastic_isotropic_results(phase_plasticityInstance(p),group)
|
|
|
|
|
|
|
|
case(PLASTICITY_PHENOPOWERLAW_ID)
|
|
|
|
call plastic_phenopowerlaw_results(phase_plasticityInstance(p),group)
|
|
|
|
|
|
|
|
case(PLASTICITY_KINEHARDENING_ID)
|
|
|
|
call plastic_kinehardening_results(phase_plasticityInstance(p),group)
|
|
|
|
|
|
|
|
case(PLASTICITY_DISLOTWIN_ID)
|
|
|
|
call plastic_dislotwin_results(phase_plasticityInstance(p),group)
|
|
|
|
|
|
|
|
case(PLASTICITY_DISLOUCLA_ID)
|
|
|
|
call plastic_disloUCLA_results(phase_plasticityInstance(p),group)
|
|
|
|
|
|
|
|
case(PLASTICITY_NONLOCAL_ID)
|
|
|
|
call plastic_nonlocal_results(phase_plasticityInstance(p),group)
|
|
|
|
end select
|
|
|
|
|
|
|
|
enddo plasticityLoop
|
|
|
|
|
|
|
|
end subroutine plastic_results
|
|
|
|
|
|
|
|
|
2020-07-09 04:31:08 +05:30
|
|
|
end submodule constitutive_plastic
|
|
|
|
|