consistent names
This commit is contained in:
parent
2947e7c444
commit
53a7622f25
|
@ -1416,8 +1416,8 @@ subroutine integrateSourceState(co,ip,el)
|
||||||
integer :: &
|
integer :: &
|
||||||
NiterationState, & !< number of iterations in state loop
|
NiterationState, & !< number of iterations in state loop
|
||||||
ph, &
|
ph, &
|
||||||
c, &
|
me, &
|
||||||
s, &
|
so, &
|
||||||
size_pl
|
size_pl
|
||||||
integer, dimension(maxval(phase_Nsources)) :: &
|
integer, dimension(maxval(phase_Nsources)) :: &
|
||||||
size_so
|
size_so
|
||||||
|
@ -1431,50 +1431,50 @@ subroutine integrateSourceState(co,ip,el)
|
||||||
|
|
||||||
|
|
||||||
ph = material_phaseAt(co,el)
|
ph = material_phaseAt(co,el)
|
||||||
c = material_phaseMemberAt(co,ip,el)
|
me = material_phaseMemberAt(co,ip,el)
|
||||||
|
|
||||||
broken = constitutive_thermal_collectDotState(ph,c)
|
broken = constitutive_thermal_collectDotState(ph,me)
|
||||||
broken = broken .or. constitutive_damage_collectDotState(crystallite_S(1:3,1:3,co,ip,el), co,ip,el,ph,c)
|
broken = broken .or. constitutive_damage_collectDotState(crystallite_S(1:3,1:3,co,ip,el), co,ip,el,ph,me)
|
||||||
if(broken) return
|
if(broken) return
|
||||||
|
|
||||||
do s = 1, phase_Nsources(ph)
|
do so = 1, phase_Nsources(ph)
|
||||||
size_so(s) = sourceState(ph)%p(s)%sizeDotState
|
size_so(so) = sourceState(ph)%p(so)%sizeDotState
|
||||||
sourceState(ph)%p(s)%state(1:size_so(s),c) = sourceState(ph)%p(s)%subState0(1:size_so(s),c) &
|
sourceState(ph)%p(so)%state(1:size_so(so),me) = sourceState(ph)%p(so)%subState0(1:size_so(so),me) &
|
||||||
+ sourceState(ph)%p(s)%dotState (1:size_so(s),c) &
|
+ sourceState(ph)%p(so)%dotState (1:size_so(so),me) &
|
||||||
* crystallite_subdt(co,ip,el)
|
* crystallite_subdt(co,ip,el)
|
||||||
source_dotState(1:size_so(s),2,s) = 0.0_pReal
|
source_dotState(1:size_so(so),2,so) = 0.0_pReal
|
||||||
enddo
|
enddo
|
||||||
|
|
||||||
iteration: do NiterationState = 1, num%nState
|
iteration: do NiterationState = 1, num%nState
|
||||||
|
|
||||||
do s = 1, phase_Nsources(ph)
|
do so = 1, phase_Nsources(ph)
|
||||||
if(nIterationState > 1) source_dotState(1:size_so(s),2,s) = source_dotState(1:size_so(s),1,s)
|
if(nIterationState > 1) source_dotState(1:size_so(so),2,so) = source_dotState(1:size_so(so),1,so)
|
||||||
source_dotState(1:size_so(s),1,s) = sourceState(ph)%p(s)%dotState(:,c)
|
source_dotState(1:size_so(so),1,so) = sourceState(ph)%p(so)%dotState(:,me)
|
||||||
enddo
|
enddo
|
||||||
|
|
||||||
broken = constitutive_thermal_collectDotState(ph,c)
|
broken = constitutive_thermal_collectDotState(ph,me)
|
||||||
broken = broken .or. constitutive_damage_collectDotState(crystallite_S(1:3,1:3,co,ip,el), co,ip,el,ph,c)
|
broken = broken .or. constitutive_damage_collectDotState(crystallite_S(1:3,1:3,co,ip,el), co,ip,el,ph,me)
|
||||||
if(broken) exit iteration
|
if(broken) exit iteration
|
||||||
|
|
||||||
do s = 1, phase_Nsources(ph)
|
do so = 1, phase_Nsources(ph)
|
||||||
zeta = damper(sourceState(ph)%p(s)%dotState(:,c), &
|
zeta = damper(sourceState(ph)%p(so)%dotState(:,me), &
|
||||||
source_dotState(1:size_so(s),1,s),&
|
source_dotState(1:size_so(so),1,so),&
|
||||||
source_dotState(1:size_so(s),2,s))
|
source_dotState(1:size_so(so),2,so))
|
||||||
sourceState(ph)%p(s)%dotState(:,c) = sourceState(ph)%p(s)%dotState(:,c) * zeta &
|
sourceState(ph)%p(so)%dotState(:,me) = sourceState(ph)%p(so)%dotState(:,me) * zeta &
|
||||||
+ source_dotState(1:size_so(s),1,s)* (1.0_pReal - zeta)
|
+ source_dotState(1:size_so(so),1,so)* (1.0_pReal - zeta)
|
||||||
r(1:size_so(s)) = sourceState(ph)%p(s)%state (1:size_so(s),c) &
|
r(1:size_so(so)) = sourceState(ph)%p(so)%state (1:size_so(so),me) &
|
||||||
- sourceState(ph)%p(s)%subState0(1:size_so(s),c) &
|
- sourceState(ph)%p(so)%subState0(1:size_so(so),me) &
|
||||||
- sourceState(ph)%p(s)%dotState (1:size_so(s),c) * crystallite_subdt(co,ip,el)
|
- sourceState(ph)%p(so)%dotState (1:size_so(so),me) * crystallite_subdt(co,ip,el)
|
||||||
sourceState(ph)%p(s)%state(1:size_so(s),c) = sourceState(ph)%p(s)%state(1:size_so(s),c) &
|
sourceState(ph)%p(so)%state(1:size_so(so),me) = sourceState(ph)%p(so)%state(1:size_so(so),me) &
|
||||||
- r(1:size_so(s))
|
- r(1:size_so(so))
|
||||||
crystallite_converged(co,ip,el) = &
|
crystallite_converged(co,ip,el) = &
|
||||||
crystallite_converged(co,ip,el) .and. converged(r(1:size_so(s)), &
|
crystallite_converged(co,ip,el) .and. converged(r(1:size_so(so)), &
|
||||||
sourceState(ph)%p(s)%state(1:size_so(s),c), &
|
sourceState(ph)%p(so)%state(1:size_so(so),me), &
|
||||||
sourceState(ph)%p(s)%atol(1:size_so(s)))
|
sourceState(ph)%p(so)%atol(1:size_so(so)))
|
||||||
enddo
|
enddo
|
||||||
|
|
||||||
if(crystallite_converged(co,ip,el)) then
|
if(crystallite_converged(co,ip,el)) then
|
||||||
broken = constitutive_damage_deltaState(crystallite_Fe(1:3,1:3,co,ip,el),co,ip,el,ph,c)
|
broken = constitutive_damage_deltaState(crystallite_Fe(1:3,1:3,co,ip,el),co,ip,el,ph,me)
|
||||||
exit iteration
|
exit iteration
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue