DAMASK_EICMD/src/homogenization_thermal.f90

40 lines
1.5 KiB
Fortran
Raw Normal View History

2020-12-30 16:30:47 +05:30
!--------------------------------------------------------------------------------------------------
!> @author Martin Diehl, KU Leuven
!--------------------------------------------------------------------------------------------------
submodule(homogenization) homogenization_thermal
contains
!--------------------------------------------------------------------------------------------------
!> @brief Allocate variables and set parameters.
!--------------------------------------------------------------------------------------------------
module subroutine thermal_init()
2021-01-08 02:45:18 +05:30
2020-12-30 16:30:47 +05:30
print'(/,a)', ' <<<+- homogenization_thermal init -+>>>'
2021-01-08 02:45:18 +05:30
allocate(homogenization_T(discretization_nIPs*discretization_Nelems))
2021-01-17 17:50:17 +05:30
allocate(homogenization_dot_T(discretization_nIPs*discretization_Nelems))
2020-12-30 16:30:47 +05:30
end subroutine thermal_init
!--------------------------------------------------------------------------------------------------
!> @brief Partition T onto the individual constituents.
!--------------------------------------------------------------------------------------------------
module subroutine thermal_partition(T,ip,el)
real(pReal), intent(in) :: T
integer, intent(in) :: &
ip, & !< integration point
el !< element number
call constitutive_thermal_setT(T,1,ip,el)
end subroutine thermal_partition
end submodule homogenization_thermal