2014-06-25 04:29:16 +05:30
|
|
|
!--------------------------------------------------------------------------------------------------
|
2015-05-28 22:32:23 +05:30
|
|
|
!> @author Pratheek Shanthraj, Max-Planck-Institut für Eisenforschung GmbH
|
|
|
|
!> @brief material subroutine for constant damage field
|
2014-06-25 04:29:16 +05:30
|
|
|
!--------------------------------------------------------------------------------------------------
|
|
|
|
module damage_none
|
|
|
|
|
|
|
|
implicit none
|
|
|
|
private
|
2015-05-28 22:32:23 +05:30
|
|
|
|
2014-06-25 04:29:16 +05:30
|
|
|
public :: &
|
|
|
|
damage_none_init
|
|
|
|
|
|
|
|
contains
|
|
|
|
|
|
|
|
!--------------------------------------------------------------------------------------------------
|
2015-05-28 22:32:23 +05:30
|
|
|
!> @brief allocates all neccessary fields, reads information from material configuration file
|
2014-06-25 04:29:16 +05:30
|
|
|
!--------------------------------------------------------------------------------------------------
|
2015-05-28 22:32:23 +05:30
|
|
|
subroutine damage_none_init()
|
2017-10-05 20:05:34 +05:30
|
|
|
#ifdef __GFORTRAN__
|
|
|
|
use, intrinsic :: iso_fortran_env, only: &
|
|
|
|
compiler_version, &
|
|
|
|
compiler_options
|
|
|
|
#endif
|
2015-05-28 22:32:23 +05:30
|
|
|
use prec, only: &
|
|
|
|
pInt
|
2014-06-25 04:29:16 +05:30
|
|
|
use IO, only: &
|
|
|
|
IO_timeStamp
|
2015-05-28 22:32:23 +05:30
|
|
|
use material
|
2014-06-25 04:29:16 +05:30
|
|
|
use numerics, only: &
|
2015-05-28 22:32:23 +05:30
|
|
|
worldrank
|
|
|
|
|
2014-06-25 04:29:16 +05:30
|
|
|
implicit none
|
|
|
|
integer(pInt) :: &
|
2015-05-28 22:32:23 +05:30
|
|
|
homog, &
|
|
|
|
NofMyHomog
|
2014-10-10 01:53:06 +05:30
|
|
|
|
2014-10-10 21:51:10 +05:30
|
|
|
mainProcess: if (worldrank == 0) then
|
2015-05-28 22:32:23 +05:30
|
|
|
write(6,'(/,a)') ' <<<+- damage_'//DAMAGE_none_label//' init -+>>>'
|
2014-10-10 21:51:10 +05:30
|
|
|
write(6,'(a15,a)') ' Current time: ',IO_timeStamp()
|
2014-06-25 04:29:16 +05:30
|
|
|
#include "compilation_info.f90"
|
2014-10-10 21:51:10 +05:30
|
|
|
endif mainProcess
|
2014-10-10 01:53:06 +05:30
|
|
|
|
2015-05-28 22:32:23 +05:30
|
|
|
initializeInstances: do homog = 1_pInt, material_Nhomogenization
|
|
|
|
|
|
|
|
myhomog: if (damage_type(homog) == DAMAGE_none_ID) then
|
|
|
|
NofMyHomog = count(material_homog == homog)
|
|
|
|
damageState(homog)%sizeState = 0_pInt
|
|
|
|
damageState(homog)%sizePostResults = 0_pInt
|
2015-07-24 20:23:50 +05:30
|
|
|
allocate(damageState(homog)%state0 (0_pInt,NofMyHomog))
|
|
|
|
allocate(damageState(homog)%subState0(0_pInt,NofMyHomog))
|
|
|
|
allocate(damageState(homog)%state (0_pInt,NofMyHomog))
|
2015-05-28 22:32:23 +05:30
|
|
|
|
|
|
|
deallocate(damage(homog)%p)
|
2015-07-24 20:23:50 +05:30
|
|
|
allocate (damage(homog)%p(1), source=damage_initialPhi(homog))
|
2015-05-28 22:32:23 +05:30
|
|
|
|
|
|
|
endif myhomog
|
2014-06-25 04:29:16 +05:30
|
|
|
enddo initializeInstances
|
2014-07-02 17:57:39 +05:30
|
|
|
|
2014-06-25 04:29:16 +05:30
|
|
|
|
|
|
|
end subroutine damage_none_init
|
|
|
|
|
|
|
|
end module damage_none
|