2015-05-28 22:32:23 +05:30
|
|
|
!--------------------------------------------------------------------------------------------------
|
|
|
|
!> @author Pratheek Shanthraj, Max-Planck-Institut für Eisenforschung GmbH
|
|
|
|
!> @brief material subroutine for constant porosity
|
|
|
|
!--------------------------------------------------------------------------------------------------
|
|
|
|
module porosity_none
|
|
|
|
|
|
|
|
implicit none
|
|
|
|
private
|
|
|
|
|
|
|
|
public :: &
|
|
|
|
porosity_none_init
|
|
|
|
|
|
|
|
contains
|
|
|
|
|
|
|
|
!--------------------------------------------------------------------------------------------------
|
|
|
|
!> @brief allocates all neccessary fields, reads information from material configuration file
|
|
|
|
!--------------------------------------------------------------------------------------------------
|
|
|
|
subroutine porosity_none_init()
|
2018-02-02 17:06:09 +05:30
|
|
|
#if defined(__GFORTRAN__) || __INTEL_COMPILER >= 1800
|
2017-10-05 20:05:34 +05:30
|
|
|
use, intrinsic :: iso_fortran_env, only: &
|
|
|
|
compiler_version, &
|
|
|
|
compiler_options
|
|
|
|
#endif
|
2015-05-28 22:32:23 +05:30
|
|
|
use prec, only: &
|
|
|
|
pReal, &
|
|
|
|
pInt
|
|
|
|
use IO, only: &
|
|
|
|
IO_timeStamp
|
|
|
|
use material
|
2018-06-10 21:31:52 +05:30
|
|
|
use config_material
|
2015-05-28 22:32:23 +05:30
|
|
|
|
|
|
|
implicit none
|
|
|
|
integer(pInt) :: &
|
|
|
|
homog, &
|
|
|
|
NofMyHomog
|
|
|
|
|
2016-10-26 02:24:32 +05:30
|
|
|
write(6,'(/,a)') ' <<<+- porosity_'//POROSITY_none_label//' init -+>>>'
|
|
|
|
write(6,'(a15,a)') ' Current time: ',IO_timeStamp()
|
2015-05-28 22:32:23 +05:30
|
|
|
#include "compilation_info.f90"
|
|
|
|
|
2016-10-26 02:24:32 +05:30
|
|
|
initializeInstances: do homog = 1_pInt, material_Nhomogenization
|
2015-05-28 22:32:23 +05:30
|
|
|
|
|
|
|
myhomog: if (porosity_type(homog) == POROSITY_none_ID) then
|
|
|
|
NofMyHomog = count(material_homog == homog)
|
|
|
|
porosityState(homog)%sizeState = 0_pInt
|
|
|
|
porosityState(homog)%sizePostResults = 0_pInt
|
|
|
|
allocate(porosityState(homog)%state0 (0_pInt,NofMyHomog), source=0.0_pReal)
|
|
|
|
allocate(porosityState(homog)%subState0(0_pInt,NofMyHomog), source=0.0_pReal)
|
|
|
|
allocate(porosityState(homog)%state (0_pInt,NofMyHomog), source=0.0_pReal)
|
|
|
|
|
|
|
|
deallocate(porosity(homog)%p)
|
2015-07-24 20:23:50 +05:30
|
|
|
allocate (porosity(homog)%p(1), source=porosity_initialPhi(homog))
|
2015-05-28 22:32:23 +05:30
|
|
|
|
|
|
|
endif myhomog
|
|
|
|
enddo initializeInstances
|
|
|
|
|
|
|
|
|
|
|
|
end subroutine porosity_none_init
|
|
|
|
|
|
|
|
end module porosity_none
|