2013-05-17 22:39:42 +05:30
|
|
|
!--------------------------------------------------------------------------------------------------
|
|
|
|
!> @author Franz Roters, Max-Planck-Institut für Eisenforschung GmbH
|
|
|
|
!> @author Philip Eisenlohr, Max-Planck-Institut für Eisenforschung GmbH
|
2019-01-06 04:25:10 +05:30
|
|
|
!> @author Martin Diehl, Max-Planck-Institut für Eisenforschung GmbH
|
|
|
|
!> @brief Dummy plasticity for purely elastic material
|
2013-05-17 22:39:42 +05:30
|
|
|
!--------------------------------------------------------------------------------------------------
|
2020-11-03 05:19:17 +05:30
|
|
|
submodule(constitutive:constitutive_mech) plastic_none
|
2013-05-17 22:39:42 +05:30
|
|
|
|
2013-07-01 11:40:42 +05:30
|
|
|
contains
|
2012-07-03 16:46:38 +05:30
|
|
|
|
2013-05-17 22:39:42 +05:30
|
|
|
!--------------------------------------------------------------------------------------------------
|
2020-09-14 00:30:34 +05:30
|
|
|
!> @brief Perform module initialization.
|
2013-07-01 11:40:42 +05:30
|
|
|
!> @details reads in material parameters, allocates arrays, and does sanity checks
|
2013-05-17 22:39:42 +05:30
|
|
|
!--------------------------------------------------------------------------------------------------
|
2020-09-14 00:30:34 +05:30
|
|
|
module function plastic_none_init() result(myPlasticity)
|
2013-12-19 14:19:47 +05:30
|
|
|
|
2020-08-15 19:32:10 +05:30
|
|
|
logical, dimension(:), allocatable :: myPlasticity
|
2020-02-01 02:07:18 +05:30
|
|
|
integer :: &
|
2020-10-28 02:03:30 +05:30
|
|
|
Ninstances, &
|
2020-02-01 02:07:18 +05:30
|
|
|
p, &
|
2020-10-28 02:03:30 +05:30
|
|
|
Nconstituents
|
2020-08-15 19:32:10 +05:30
|
|
|
class(tNode), pointer :: &
|
|
|
|
phases, &
|
|
|
|
phase, &
|
2020-11-03 03:16:46 +05:30
|
|
|
mech, &
|
2020-08-15 19:32:10 +05:30
|
|
|
pl
|
|
|
|
|
2020-09-14 00:30:34 +05:30
|
|
|
print'(/,a)', ' <<<+- plastic_none init -+>>>'
|
2020-08-15 19:32:10 +05:30
|
|
|
|
2020-09-13 14:09:17 +05:30
|
|
|
phases => config_material%get('phase')
|
2020-09-14 00:30:34 +05:30
|
|
|
allocate(myPlasticity(phases%length), source = .false.)
|
2020-08-15 19:32:10 +05:30
|
|
|
do p = 1, phases%length
|
|
|
|
phase => phases%get(p)
|
2020-11-18 01:54:40 +05:30
|
|
|
mech => phase%get('mechanics')
|
2020-11-03 03:16:46 +05:30
|
|
|
pl => mech%get ('plasticity')
|
2020-08-15 19:32:10 +05:30
|
|
|
if(pl%get_asString('type') == 'none') myPlasticity(p) = .true.
|
|
|
|
enddo
|
2020-02-14 13:30:14 +05:30
|
|
|
|
2020-10-28 02:03:30 +05:30
|
|
|
Ninstances = count(myPlasticity)
|
|
|
|
print'(a,i2)', ' # instances: ',Ninstances; flush(IO_STDOUT)
|
|
|
|
if(Ninstances == 0) return
|
2020-09-14 00:30:34 +05:30
|
|
|
|
2020-08-15 19:32:10 +05:30
|
|
|
do p = 1, phases%length
|
|
|
|
phase => phases%get(p)
|
|
|
|
if(.not. myPlasticity(p)) cycle
|
2020-10-28 02:03:30 +05:30
|
|
|
Nconstituents = count(material_phaseAt == p) * discretization_nIPs
|
|
|
|
call constitutive_allocateState(plasticState(p),Nconstituents,0,0,0)
|
2020-02-01 02:07:18 +05:30
|
|
|
enddo
|
2014-07-02 17:57:39 +05:30
|
|
|
|
2020-08-15 19:32:10 +05:30
|
|
|
end function plastic_none_init
|
|
|
|
|
2012-07-03 16:46:38 +05:30
|
|
|
|
2019-12-03 01:13:02 +05:30
|
|
|
end submodule plastic_none
|