unifying names

This commit is contained in:
Martin Diehl 2019-10-28 13:29:32 +01:00
parent ab4a98fb53
commit 8de6fcfc24
5 changed files with 10 additions and 7 deletions

View File

@ -33,7 +33,7 @@ module CPFEM2
private
public :: &
CPFEM_age, &
CPFEM_forward, &
CPFEM_initAll, &
CPFEM_results, &
CPFEM_restartWrite
@ -123,7 +123,7 @@ end subroutine CPFEM_init
!--------------------------------------------------------------------------------------------------
!> @brief Forward data after successful increment.
!--------------------------------------------------------------------------------------------------
subroutine CPFEM_age
subroutine CPFEM_forward
integer :: i, homog, mySource
@ -150,7 +150,7 @@ subroutine CPFEM_age
damageState (homog)%state0 = damageState (homog)%state
enddo
end subroutine CPFEM_age
end subroutine CPFEM_forward
!--------------------------------------------------------------------------------------------------

View File

@ -481,6 +481,7 @@ program DAMASK_spectral
case(FIELD_DAMAGE_ID); call grid_damage_spectral_forward
end select
enddo
call CPFEM_forward
!--------------------------------------------------------------------------------------------------
! solve fields
@ -518,7 +519,6 @@ program DAMASK_spectral
if ( (all(solres(:)%converged .and. solres(:)%stagConverged)) & ! converged
.and. .not. solres(1)%termIll) then ! and acceptable solution found
call mech_age
call CPFEM_age
timeIncOld = timeinc
cutBack = .false.
guess = .true. ! start guessing after first converged (sub)inc

View File

@ -338,6 +338,8 @@ subroutine grid_mech_FEM_forward(guess,timeinc,timeinc_old,loadCaseTime,deformat
F_lastInc = F ! winding F forward
endif
materialpoint_F0 = reshape(F, [3,3,1,product(grid(1:2))*grid3])
!--------------------------------------------------------------------------------------------------
! update average and local deformation gradients
F_aim = F_aim_lastInc + F_aimDot * timeinc
@ -354,7 +356,6 @@ end subroutine grid_mech_FEM_forward
!--------------------------------------------------------------------------------------------------
subroutine grid_mech_FEM_age()
materialpoint_F0 = reshape(F, [3,3,1,product(grid(1:2))*grid3])
call utilities_updateCoords(F)
end subroutine grid_mech_FEM_age

View File

@ -302,6 +302,8 @@ subroutine grid_mech_spectral_basic_forward(guess,timeinc,timeinc_old,loadCaseTi
math_rotate_backward33(F_aimDot,rotation_BC))
F_lastInc = reshape(F,[3,3,grid(1),grid(2),grid3]) ! winding F forward
endif
materialpoint_F0 = reshape(F, [3,3,1,product(grid(1:2))*grid3])
!--------------------------------------------------------------------------------------------------
! update average and local deformation gradients
@ -322,7 +324,6 @@ subroutine grid_mech_spectral_basic_age()
PetscScalar, dimension(:,:,:,:), pointer :: F
call DMDAVecGetArrayF90(da,solution_vec,F,ierr); CHKERRQ(ierr)
materialpoint_F0 = reshape(F, [3,3,1,product(grid(1:2))*grid3])
call utilities_updateCoords(F)
call DMDAVecRestoreArrayF90(da,solution_vec,F,ierr); CHKERRQ(ierr)

View File

@ -330,6 +330,8 @@ subroutine grid_mech_spectral_polarisation_forward(guess,timeinc,timeinc_old,loa
F_tau_lastInc = reshape(F_tau,[3,3,grid(1),grid(2),grid3]) ! winding F_tau forward
endif
materialpoint_F0 = reshape(F,[3,3,1,product(grid(1:2))*grid3])
!--------------------------------------------------------------------------------------------------
! update average and local deformation gradients
F_aim = F_aim_lastInc + F_aimDot * timeinc
@ -366,7 +368,6 @@ subroutine grid_mech_spectral_polarisation_age()
call DMDAVecGetArrayF90(da,solution_vec,FandF_tau,ierr); CHKERRQ(ierr)
F => FandF_tau(0:8,:,:,:)
materialpoint_F0 = reshape(F,[3,3,1,product(grid(1:2))*grid3])
call utilities_updateCoords(F)
call DMDAVecRestoreArrayF90(da,solution_vec,FandF_tau,ierr); CHKERRQ(ierr)