DAMASK with grid solvers  Revision: v2.0.3-2204-gdb1f2151
The Düsseldorf Advanced Material Simulation Kit with Grid Solvers
thermal_isothermal.f90
Go to the documentation of this file.
1 # 1 "/home/damask_user/GitLabCI_Pipeline_4301/DAMASK/src/thermal_isothermal.f90"
2 # 1 "<built-in>"
3 # 1 "<command-line>"
4 # 1 "/home/damask_user/GitLabCI_Pipeline_4301/DAMASK/src/thermal_isothermal.f90"
5 !--------------------------------------------------------------------------------------------------
8 !--------------------------------------------------------------------------------------------------
10  use config
11  use material
12 
13  implicit none
14  public
15 
16 contains
17 
18 !--------------------------------------------------------------------------------------------------
20 !--------------------------------------------------------------------------------------------------
21 subroutine thermal_isothermal_init
22 
23  integer :: h,NofMyHomog
24 
25  write(6,'(/,a)') ' <<<+- thermal_'//thermal_isothermal_label//' init -+>>>'; flush(6)
26 
27  do h = 1, size(config_homogenization)
28  if (thermal_type(h) /= thermal_isothermal_id) cycle
29 
30  nofmyhomog = count(material_homogenizationat == h)
31  thermalstate(h)%sizeState = 0
32  allocate(thermalstate(h)%state0 (0,nofmyhomog))
33  allocate(thermalstate(h)%subState0(0,nofmyhomog))
34  allocate(thermalstate(h)%state (0,nofmyhomog))
35 
36  deallocate(temperature(h)%p)
37  allocate (temperature(h)%p(1), source=thermal_initialt(h))
38  deallocate(temperaturerate(h)%p)
39  allocate (temperaturerate(h)%p(1))
40 
41  enddo
42 
43 end subroutine thermal_isothermal_init
44 
45 end module thermal_isothermal
thermal_isothermal::thermal_isothermal_init
subroutine thermal_isothermal_init
allocates all neccessary fields, reads information from material configuration file
Definition: thermal_isothermal.f90:22
material::temperature
type(group_float), dimension(:), allocatable, public temperature
temperature field
Definition: material.f90:174
material
Parses material config file, either solverJobName.materialConfig or material.config.
Definition: material.f90:11
config
Reads in the material configuration from file.
Definition: config.f90:13
material::thermal_isothermal_id
@, public thermal_isothermal_id
Definition: material.f90:87
material::thermal_initialt
real(preal), dimension(:), allocatable, public, protected thermal_initialt
initial temperature per each homogenization
Definition: material.f90:124
material::thermal_type
integer(kind(thermal_isothermal_id)), dimension(:), allocatable, public, protected thermal_type
thermal transport model
Definition: material.f90:94
material::thermal_isothermal_label
character(len= *), parameter, public thermal_isothermal_label
Definition: material.f90:25
thermal_isothermal
material subroutine for isothermal temperature field
Definition: thermal_isothermal.f90:9
material::thermalstate
type(tstate), dimension(:), allocatable, public thermalstate
Definition: material.f90:141
material::material_homogenizationat
integer, dimension(:), allocatable, public, protected material_homogenizationat
homogenization ID of each element (copy of discretization_homogenizationAt)
Definition: material.f90:128
material::temperaturerate
type(group_float), dimension(:), allocatable, public temperaturerate
temperature change rate field
Definition: material.f90:174
config::config_homogenization
type(tpartitionedstringlist), dimension(:), allocatable, public, protected config_homogenization
Definition: config.f90:23