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