material_allocatePlasticState now takes care of setting offsetDeltaState
This commit is contained in:
parent
19d149207b
commit
1c4dc2e05f
|
@ -918,7 +918,8 @@ end subroutine material_parseTexture
|
||||||
!--------------------------------------------------------------------------------------------------
|
!--------------------------------------------------------------------------------------------------
|
||||||
!> @brief allocates the plastic state of a phase
|
!> @brief allocates the plastic state of a phase
|
||||||
!--------------------------------------------------------------------------------------------------
|
!--------------------------------------------------------------------------------------------------
|
||||||
subroutine material_allocatePlasticState(phase,NofMyPhase,sizeState,sizeDotState,sizeDeltaState,&
|
subroutine material_allocatePlasticState(phase,NofMyPhase,&
|
||||||
|
sizeState,sizeDotState,sizeDeltaState,&
|
||||||
Nslip,Ntwin,Ntrans)
|
Nslip,Ntwin,Ntrans)
|
||||||
use numerics, only: &
|
use numerics, only: &
|
||||||
numerics_integrator2 => numerics_integrator ! compatibility hack
|
numerics_integrator2 => numerics_integrator ! compatibility hack
|
||||||
|
@ -936,9 +937,10 @@ subroutine material_allocatePlasticState(phase,NofMyPhase,sizeState,sizeDotState
|
||||||
integer(pInt) :: numerics_integrator ! compatibility hack
|
integer(pInt) :: numerics_integrator ! compatibility hack
|
||||||
numerics_integrator = numerics_integrator2(1) ! compatibility hack
|
numerics_integrator = numerics_integrator2(1) ! compatibility hack
|
||||||
|
|
||||||
plasticState(phase)%sizeState = sizeState
|
plasticState(phase)%sizeState = sizeState
|
||||||
plasticState(phase)%sizeDotState = sizeDotState
|
plasticState(phase)%sizeDotState = sizeDotState
|
||||||
plasticState(phase)%sizeDeltaState = sizeDeltaState
|
plasticState(phase)%sizeDeltaState = sizeDeltaState
|
||||||
|
plasticState(phase)%offsetDeltaState = sizeState-sizeDeltaState ! deltaState occupies latter part of state by definition
|
||||||
plasticState(phase)%Nslip = Nslip
|
plasticState(phase)%Nslip = Nslip
|
||||||
plasticState(phase)%Ntwin = Ntwin
|
plasticState(phase)%Ntwin = Ntwin
|
||||||
plasticState(phase)%Ntrans= Ntrans
|
plasticState(phase)%Ntrans= Ntrans
|
||||||
|
|
|
@ -302,7 +302,6 @@ subroutine plastic_kinehardening_init
|
||||||
call material_allocatePlasticState(p,NipcMyPhase,sizeState,sizeDotState,sizeDeltaState, &
|
call material_allocatePlasticState(p,NipcMyPhase,sizeState,sizeDotState,sizeDeltaState, &
|
||||||
prm%totalNslip,0_pInt,0_pInt)
|
prm%totalNslip,0_pInt,0_pInt)
|
||||||
plasticState(p)%sizePostResults = sum(plastic_kinehardening_sizePostResult(:,phase_plasticityInstance(p)))
|
plasticState(p)%sizePostResults = sum(plastic_kinehardening_sizePostResult(:,phase_plasticityInstance(p)))
|
||||||
plasticState(p)%offsetDeltaState = sizeDotState
|
|
||||||
|
|
||||||
!--------------------------------------------------------------------------------------------------
|
!--------------------------------------------------------------------------------------------------
|
||||||
! locally defined state aliases and initialization of state0 and aTolState
|
! locally defined state aliases and initialization of state0 and aTolState
|
||||||
|
|
Loading…
Reference in New Issue