store data separetly
This commit is contained in:
parent
595ee7a35a
commit
72c099dbbe
2
PRIVATE
2
PRIVATE
|
@ -1 +1 @@
|
||||||
Subproject commit d7f8460aa2afceb89f9b82054555d5dc6f9e5c43
|
Subproject commit 42ebe55f0ef1cd799115bd87e45d6025db42f7a7
|
|
@ -459,7 +459,8 @@ subroutine lattice_init
|
||||||
phase, &
|
phase, &
|
||||||
mech, &
|
mech, &
|
||||||
elasticity, &
|
elasticity, &
|
||||||
thermal
|
thermal, &
|
||||||
|
damage
|
||||||
|
|
||||||
print'(/,a)', ' <<<+- lattice init -+>>>'; flush(IO_STDOUT)
|
print'(/,a)', ' <<<+- lattice init -+>>>'; flush(IO_STDOUT)
|
||||||
|
|
||||||
|
@ -535,13 +536,17 @@ subroutine lattice_init
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
lattice_D(1,1,ph) = phase%get_asFloat('D_11',defaultVal=0.0_pReal)
|
if (phase%contains('damage')) then
|
||||||
lattice_D(2,2,ph) = phase%get_asFloat('D_22',defaultVal=0.0_pReal)
|
damage => phase%get('damage')
|
||||||
lattice_D(3,3,ph) = phase%get_asFloat('D_33',defaultVal=0.0_pReal)
|
damage => damage%get(1)
|
||||||
lattice_D(1:3,1:3,ph) = lattice_applyLatticeSymmetry33(lattice_D(1:3,1:3,ph), &
|
lattice_D(1,1,ph) = damage%get_asFloat('D_11',defaultVal=0.0_pReal)
|
||||||
|
lattice_D(2,2,ph) = damage%get_asFloat('D_22',defaultVal=0.0_pReal)
|
||||||
|
lattice_D(3,3,ph) = damage%get_asFloat('D_33',defaultVal=0.0_pReal)
|
||||||
|
lattice_D(1:3,1:3,ph) = lattice_applyLatticeSymmetry33(lattice_D(1:3,1:3,ph), &
|
||||||
phase%get_asString('lattice'))
|
phase%get_asString('lattice'))
|
||||||
|
|
||||||
lattice_M(ph) = phase%get_asFloat('M',defaultVal=0.0_pReal)
|
lattice_M(ph) = damage%get_asFloat('M',defaultVal=0.0_pReal)
|
||||||
|
endif
|
||||||
! SHOULD NOT BE PART OF LATTICE END
|
! SHOULD NOT BE PART OF LATTICE END
|
||||||
|
|
||||||
call selfTest
|
call selfTest
|
||||||
|
|
|
@ -74,8 +74,8 @@ module subroutine eigendeformation_init(phases)
|
||||||
kinematics => phase%get('damage',defaultVal=emptyList)
|
kinematics => phase%get('damage',defaultVal=emptyList)
|
||||||
if(kinematics%length >0) then
|
if(kinematics%length >0) then
|
||||||
damage => kinematics%get(1)
|
damage => kinematics%get(1)
|
||||||
if(damage%get_asString('type') == 'anisobrittle') phase_Nkinematics(ph) = phase_Nkinematics(ph) +1
|
if(damage%get_asString('type',defaultVal='n/a') == 'anisobrittle') phase_Nkinematics(ph) = phase_Nkinematics(ph) +1
|
||||||
if(damage%get_asString('type') == 'isoductile') phase_Nkinematics(ph) = phase_Nkinematics(ph) +1
|
if(damage%get_asString('type',defaultVal='n/a') == 'isoductile' ) phase_Nkinematics(ph) = phase_Nkinematics(ph) +1
|
||||||
endif
|
endif
|
||||||
enddo
|
enddo
|
||||||
|
|
||||||
|
@ -113,7 +113,7 @@ function kinematics_active(kinematics_label,kinematics_length) result(active_ki
|
||||||
kinematics => phase%get('kinematics',defaultVal=emptyList)
|
kinematics => phase%get('kinematics',defaultVal=emptyList)
|
||||||
do k = 1, kinematics%length
|
do k = 1, kinematics%length
|
||||||
kinematics_type => kinematics%get(k)
|
kinematics_type => kinematics%get(k)
|
||||||
if(kinematics_type%get_asString('type') == kinematics_label) active_kinematics(k,p) = .true.
|
active_kinematics(k,p) = kinematics_type%get_asString('type') == kinematics_label
|
||||||
enddo
|
enddo
|
||||||
enddo
|
enddo
|
||||||
|
|
||||||
|
@ -136,17 +136,16 @@ function kinematics_active2(kinematics_label,kinematics_length) result(active_k
|
||||||
phase, &
|
phase, &
|
||||||
kinematics, &
|
kinematics, &
|
||||||
kinematics_type
|
kinematics_type
|
||||||
integer :: p,k
|
integer :: p
|
||||||
|
|
||||||
phases => config_material%get('phase')
|
phases => config_material%get('phase')
|
||||||
allocate(active_kinematics(kinematics_length,phases%length), source = .false. )
|
allocate(active_kinematics(kinematics_length,phases%length), source = .false. )
|
||||||
do p = 1, phases%length
|
do p = 1, phases%length
|
||||||
phase => phases%get(p)
|
phase => phases%get(p)
|
||||||
kinematics => phase%get('damage',defaultVal=emptyList)
|
kinematics => phase%get('damage',defaultVal=emptyList)
|
||||||
do k = 1, kinematics%length
|
kinematics_type => kinematics%get(1)
|
||||||
kinematics_type => kinematics%get(k)
|
if (.not. kinematics_type%contains('type')) continue
|
||||||
if(kinematics_type%get_asString('type') == kinematics_label) active_kinematics(k,p) = .true.
|
active_kinematics(1,p) = kinematics_type%get_asString('type',defaultVal='n/a') == kinematics_label
|
||||||
enddo
|
|
||||||
enddo
|
enddo
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue