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
|
2019-06-11 19:46:10 +05:30
|
|
|
use config
|
|
|
|
use material
|
2014-06-25 04:29:16 +05:30
|
|
|
|
2019-06-11 19:46:10 +05:30
|
|
|
implicit none
|
2020-02-29 19:30:47 +05:30
|
|
|
public
|
2020-06-26 15:14:17 +05:30
|
|
|
|
2014-06-25 04:29:16 +05:30
|
|
|
contains
|
|
|
|
|
|
|
|
!--------------------------------------------------------------------------------------------------
|
2020-06-26 15:14:17 +05:30
|
|
|
!> @brief allocates fields, reads information from material configuration file
|
2014-06-25 04:29:16 +05:30
|
|
|
!--------------------------------------------------------------------------------------------------
|
2019-06-11 19:46:10 +05:30
|
|
|
subroutine thermal_isothermal_init
|
2020-06-26 15:14:17 +05:30
|
|
|
|
2020-10-28 02:03:30 +05:30
|
|
|
integer :: h,Nmaterialpoints
|
2019-12-21 15:25:11 +05:30
|
|
|
|
2020-09-17 22:58:41 +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
|
|
|
|
|
2020-10-28 02:03:30 +05:30
|
|
|
Nmaterialpoints = count(material_homogenizationAt == h)
|
2019-12-21 15:25:11 +05:30
|
|
|
thermalState(h)%sizeState = 0
|
2020-10-28 02:03:30 +05:30
|
|
|
allocate(thermalState(h)%state0 (0,Nmaterialpoints))
|
|
|
|
allocate(thermalState(h)%subState0(0,Nmaterialpoints))
|
|
|
|
allocate(thermalState(h)%state (0,Nmaterialpoints))
|
2020-06-26 15:14:17 +05:30
|
|
|
|
2019-12-21 15:25:11 +05:30
|
|
|
deallocate(temperature (h)%p)
|
|
|
|
allocate (temperature (h)%p(1), source=thermal_initialT(h))
|
|
|
|
deallocate(temperatureRate(h)%p)
|
|
|
|
allocate (temperatureRate(h)%p(1))
|
2019-06-11 19:46:10 +05:30
|
|
|
|
2019-12-21 15:25:11 +05:30
|
|
|
enddo
|
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
|