DAMASK_EICMD/src/thermal_isothermal.f90

37 lines
1.2 KiB
Fortran
Raw Normal View History

!--------------------------------------------------------------------------------------------------
!> @author Pratheek Shanthraj, Max-Planck-Institut für Eisenforschung GmbH
!> @brief material subroutine for isothermal temperature field
!--------------------------------------------------------------------------------------------------
module thermal_isothermal
use prec
2019-06-11 19:46:10 +05:30
use config
use material
2019-06-11 19:46:10 +05:30
implicit none
public
2020-06-26 15:14:17 +05:30
contains
!--------------------------------------------------------------------------------------------------
2020-06-26 15:14:17 +05:30
!> @brief allocates fields, reads information from material configuration file
!--------------------------------------------------------------------------------------------------
2019-06-11 19:46:10 +05:30
subroutine thermal_isothermal_init
2020-06-26 15:14:17 +05:30
integer :: h,Nmaterialpoints
2019-12-21 15:25:11 +05:30
print'(/,a)', ' <<<+- thermal_isothermal init -+>>>'; flush(6)
2019-12-21 15:25:11 +05:30
2020-10-24 18:26:03 +05:30
do h = 1, size(material_name_homogenization)
2019-12-21 15:25:11 +05:30
if (thermal_type(h) /= THERMAL_isothermal_ID) cycle
Nmaterialpoints = count(material_homogenizationAt == h)
2020-06-26 15:14:17 +05:30
allocate(temperature (h)%p(Nmaterialpoints),source=thermal_initialT(h))
allocate(temperatureRate(h)%p(Nmaterialpoints),source = 0.0_pReal)
2019-06-11 19:46:10 +05:30
2019-12-21 15:25:11 +05:30
enddo
end subroutine thermal_isothermal_init
end module thermal_isothermal