2014-06-25 04:29:16 +05:30
|
|
|
!--------------------------------------------------------------------------------------------------
|
2014-10-15 19:18:19 +05:30
|
|
|
! $Id$
|
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 isothermal temperature field
|
2014-06-25 04:29:16 +05:30
|
|
|
!--------------------------------------------------------------------------------------------------
|
2014-09-26 21:37:26 +05:30
|
|
|
module thermal_isothermal
|
2014-06-25 04:29:16 +05:30
|
|
|
|
|
|
|
implicit none
|
|
|
|
private
|
2015-05-28 22:32:23 +05:30
|
|
|
|
2014-06-25 04:29:16 +05:30
|
|
|
public :: &
|
2014-09-26 21:37:26 +05:30
|
|
|
thermal_isothermal_init
|
2014-06-25 04:29:16 +05:30
|
|
|
|
|
|
|
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-07-24 20:23:50 +05:30
|
|
|
subroutine thermal_isothermal_init()
|
2014-06-25 04:29:16 +05:30
|
|
|
use, intrinsic :: iso_fortran_env ! to get compiler_version and compiler_options (at least for gfortran 4.6 at the moment)
|
2015-05-28 22:32:23 +05:30
|
|
|
use prec, only: &
|
|
|
|
pReal, &
|
|
|
|
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, &
|
|
|
|
sizeState
|
2014-09-22 23:45:19 +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)') ' <<<+- thermal_'//THERMAL_isothermal_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-09-03 22:42:06 +05:30
|
|
|
|
2015-05-28 22:32:23 +05:30
|
|
|
initializeInstances: do homog = 1_pInt, material_Nhomogenization
|
2014-07-02 17:57:39 +05:30
|
|
|
|
2015-05-28 22:32:23 +05:30
|
|
|
myhomog: if (thermal_type(homog) == THERMAL_isothermal_ID) then
|
|
|
|
NofMyHomog = count(material_homog == homog)
|
|
|
|
sizeState = 0_pInt
|
|
|
|
thermalState(homog)%sizeState = sizeState
|
|
|
|
thermalState(homog)%sizePostResults = sizeState
|
|
|
|
allocate(thermalState(homog)%state0 (sizeState,NofMyHomog), source=0.0_pReal)
|
|
|
|
allocate(thermalState(homog)%subState0(sizeState,NofMyHomog), source=0.0_pReal)
|
|
|
|
allocate(thermalState(homog)%state (sizeState,NofMyHomog), source=0.0_pReal)
|
|
|
|
|
|
|
|
deallocate(temperature (homog)%p)
|
2015-07-24 20:23:50 +05:30
|
|
|
allocate (temperature (homog)%p(1), source=thermal_initialT(homog))
|
2015-05-28 22:32:23 +05:30
|
|
|
deallocate(temperatureRate(homog)%p)
|
|
|
|
allocate (temperatureRate(homog)%p(1), source=0.0_pReal)
|
|
|
|
|
|
|
|
endif myhomog
|
2014-06-25 04:29:16 +05:30
|
|
|
enddo initializeInstances
|
2015-05-28 22:32:23 +05:30
|
|
|
|
2014-06-25 04:29:16 +05:30
|
|
|
|
2014-09-26 21:37:26 +05:30
|
|
|
end subroutine thermal_isothermal_init
|
2014-06-25 04:29:16 +05:30
|
|
|
|
2014-09-26 21:37:26 +05:30
|
|
|
end module thermal_isothermal
|