fracture strain energy and plastic strain indexed by instance and not phase
This commit is contained in:
parent
b3ae6301e1
commit
4a445a9f54
|
@ -307,16 +307,17 @@ subroutine damage_brittle_microstructure(Tstar_v, Fe, ipc, ip, el)
|
|||
real(pReal), intent(in), dimension(3,3) :: &
|
||||
Fe
|
||||
integer(pInt) :: &
|
||||
phase, constituent
|
||||
phase, constituent, instance
|
||||
real(pReal) :: &
|
||||
strain(3,3)
|
||||
|
||||
phase = mappingConstitutive(2,ipc,ip,el)
|
||||
constituent = mappingConstitutive(1,ipc,ip,el)
|
||||
strain = 0.5_pReal*(math_mul33x33(math_transpose33(Fe),Fe)-math_I3)
|
||||
instance = phase_damageInstance(phase)
|
||||
|
||||
strain = 0.5_pReal*(math_mul33x33(math_transpose33(Fe),Fe)-math_I3)
|
||||
damageState(phase)%state(2,constituent) = min(damageState(phase)%state(2,constituent), &
|
||||
damage_brittle_critStrainEnergy(phase)/ &
|
||||
damage_brittle_critStrainEnergy(instance)/ &
|
||||
sum(abs(math_Mandel6to33(Tstar_v)*strain)))
|
||||
|
||||
end subroutine damage_brittle_microstructure
|
||||
|
|
|
@ -309,12 +309,13 @@ subroutine damage_ductile_microstructure(nSlip,accumulatedSlip,ipc, ip, el)
|
|||
real(pReal), dimension(nSlip), intent(in) :: &
|
||||
accumulatedSlip
|
||||
integer(pInt) :: &
|
||||
phase, constituent
|
||||
phase, constituent, instance
|
||||
|
||||
phase = mappingConstitutive(2,ipc,ip,el)
|
||||
constituent = mappingConstitutive(1,ipc,ip,el)
|
||||
instance = phase_damageInstance(phase)
|
||||
damageState(phase)%state(2,constituent) = min(damageState(phase)%state(2,constituent), &
|
||||
damage_ductile_critpStrain(phase)/ &
|
||||
damage_ductile_critpStrain(instance)/ &
|
||||
sum(accumulatedSlip)) !< akin to damage surface
|
||||
|
||||
end subroutine damage_ductile_microstructure
|
||||
|
|
Loading…
Reference in New Issue