exchanged forall (warning causers) to nested do loops
deleted (currently unused) symmetrization of H tensor in CPFEM.f90 --> Denny pls advise?
This commit is contained in:
parent
af2437c0af
commit
c352146fe6
|
@ -210,7 +210,7 @@ subroutine CPFEM_general(mode, ffn, ffn1, Temperature, dt, element, IP, cauchySt
|
|||
CPFEM_init_inProgress = .false.
|
||||
else ! loser, loser...
|
||||
do while (CPFEM_init_inProgress)
|
||||
end do
|
||||
enddo
|
||||
endif
|
||||
endif
|
||||
|
||||
|
@ -318,7 +318,8 @@ subroutine CPFEM_general(mode, ffn, ffn1, Temperature, dt, element, IP, cauchySt
|
|||
|
||||
! translate from dP/dF to dCS/dE
|
||||
H = 0.0_pReal
|
||||
forall(i=1:3,j=1:3,k=1:3,l=1:3,m=1:3,n=1:3) &
|
||||
do i=1,3; do j=1,3; do k=1,3; do l=1,3; do m=1,3; do n=1,3
|
||||
! forall(i=1:3,j=1:3,k=1:3,l=1:3,m=1:3,n=1:3) &
|
||||
H(i,j,k,l) = H(i,j,k,l) + &
|
||||
materialpoint_F(j,m,IP,cp_en) * &
|
||||
materialpoint_F(l,n,IP,cp_en) * &
|
||||
|
@ -326,9 +327,10 @@ subroutine CPFEM_general(mode, ffn, ffn1, Temperature, dt, element, IP, cauchySt
|
|||
math_I3(j,l)*materialpoint_F(i,m,IP,cp_en)*materialpoint_P(k,m,IP,cp_en) + &
|
||||
0.5_pReal*(math_I3(i,k)*Kirchhoff(j,l) + math_I3(j,l)*Kirchhoff(i,k) + &
|
||||
math_I3(i,l)*Kirchhoff(j,k) + math_I3(j,k)*Kirchhoff(i,l))
|
||||
forall(i=1:3,j=1:3,k=1:3,l=1:3) &
|
||||
H_sym(i,j,k,l)= 0.25_pReal*(H(i,j,k,l)+H(j,i,k,l)+H(i,j,l,k)+H(j,i,l,k)) ! where to use the symmetric version??
|
||||
CPFEM_dcsde(:,:,IP,cp_en) = math_Mandel3333to66(J_inverse*H)
|
||||
enddo; enddo; enddo; enddo; enddo; enddo
|
||||
! forall(i=1:3,j=1:3,k=1:3,l=1:3) &
|
||||
! H_sym(i,j,k,l) = 0.25_pReal*(H(i,j,k,l)+H(j,i,k,l)+H(i,j,l,k)+H(j,i,l,k)) ! where to use this symmetric version ??
|
||||
CPFEM_dcsde(:,:,IP,cp_en) = math_Mandel3333to66(J_inverse*H) ! should this use the symmetrized H ??
|
||||
endif
|
||||
endif
|
||||
|
||||
|
@ -378,4 +380,3 @@ subroutine CPFEM_general(mode, ffn, ffn1, Temperature, dt, element, IP, cauchySt
|
|||
end subroutine
|
||||
|
||||
END MODULE CPFEM
|
||||
|
||||
|
|
|
@ -1427,8 +1427,10 @@ LpLoop: do
|
|||
! calculate Jacobian for correction term
|
||||
if (mod(jacoCounter, iJacoLpresiduum) == 0_pInt) then
|
||||
dTdLp = 0.0_pReal
|
||||
forall (h=1:3,j=1:3,k=1:3,l=1:3,m=1:3) &
|
||||
do h=1,3; do j=1,3; do k=1,3; do l=1,3; do m=1,3
|
||||
! forall (h=1:3,j=1:3,k=1:3,l=1:3,m=1:3) &
|
||||
dTdLp(3*(h-1)+j,3*(k-1)+l) = dTdLp(3*(h-1)+j,3*(k-1)+l) + C(h,j,l,m)*AB(k,m)+C(h,j,m,l)*BTA(m,k)
|
||||
enddo; enddo; enddo; enddo; enddo
|
||||
dTdLp = -0.5_pReal*crystallite_subdt(g,i,e)*dTdLp
|
||||
dRdLp = math_identity2nd(9) - math_mul99x99(dLpdT_constitutive,dTdLp)
|
||||
invdRdLp = 0.0_pReal
|
||||
|
@ -1459,8 +1461,10 @@ LpLoop: do
|
|||
endif
|
||||
|
||||
! leapfrog to updated Lp
|
||||
forall (k=1:3,l=1:3,m=1:3,n=1:3) &
|
||||
do k=1,3; do l=1,3; do m=1,3; do n=1,3
|
||||
! forall (k=1:3,l=1:3,m=1:3,n=1:3) &
|
||||
Lpguess(k,l) = Lpguess(k,l) - leapfrog*invdRdLp(3*(k-1)+l,3*(m-1)+n)*residuum(m,n)
|
||||
enddo; enddo; enddo; enddo
|
||||
enddo LpLoop
|
||||
|
||||
! calculate new plastic and elastic deformation gradient
|
||||
|
|
Loading…
Reference in New Issue