Skip to content

Commit

Permalink
Merge branch 'nonlocal-compatibility-in-dependent-state' into 'develo…
Browse files Browse the repository at this point in the history
…pment'

Nonlocal compatibility in dependent state

See merge request damask/DAMASK!891
  • Loading branch information
sharanroongta committed Jan 2, 2024
2 parents 2b74365 + c6dae71 commit 112b5be
Show file tree
Hide file tree
Showing 3 changed files with 236 additions and 298 deletions.
9 changes: 0 additions & 9 deletions src/phase.f90
Original file line number Diff line number Diff line change
Expand Up @@ -326,11 +326,6 @@ module function phase_f_T(ph,en) result(f)
real(pREAL) :: f
end function phase_f_T

module subroutine plastic_nonlocal_updateCompatibility(orientation,ce)
integer, intent(in) :: ce
type(tRotationContainer), dimension(:), intent(in) :: orientation
end subroutine plastic_nonlocal_updateCompatibility

module subroutine plastic_dependentState(ph,en)
integer, intent(in) :: &
ph, &
Expand Down Expand Up @@ -363,7 +358,6 @@ end subroutine damage_anisobrittle_LiAndItsTangent
phase_allocateState, &
phase_forward, &
phase_restore, &
plastic_nonlocal_updateCompatibility, &
converged, &
phase_mechanical_constitutive, &
phase_thermal_constitutive, &
Expand Down Expand Up @@ -576,9 +570,6 @@ subroutine crystallite_orientations(co,ce)

call phase_O(ph)%data(en)%fromMatrix(transpose(math_rotationalPart(mechanical_F_e(ph,en))))

if (plasticState(material_ID_phase(1,ce))%nonlocal) call plastic_nonlocal_updateCompatibility(phase_O,ce)


end subroutine crystallite_orientations


Expand Down
6 changes: 6 additions & 0 deletions src/phase_mechanical_plastic.f90
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,11 @@ module subroutine plastic_nonlocal_deltaState(Mp,ph,en)
en
end subroutine plastic_nonlocal_deltaState

module subroutine plastic_nonlocal_updateCompatibility(orientation,ph,en)
integer, intent(in) :: ph, en
type(tRotationContainer), dimension(:), intent(in) :: orientation
end subroutine plastic_nonlocal_updateCompatibility

end interface

contains
Expand Down Expand Up @@ -359,6 +364,7 @@ module subroutine plastic_dependentState(ph,en)

case (MECHANICAL_PLASTICITY_NONLOCAL) plasticType
call nonlocal_dependentState(ph,en)
if (plasticState(ph)%nonlocal) call plastic_nonlocal_updateCompatibility(phase_O,ph,en)

end select plasticType

Expand Down
Loading

0 comments on commit 112b5be

Please sign in to comment.