2013-05-17 22:39:42 +05:30
|
|
|
!--------------------------------------------------------------------------------------------------
|
|
|
|
! $Id$
|
|
|
|
!--------------------------------------------------------------------------------------------------
|
|
|
|
!> @author Franz Roters, Max-Planck-Institut für Eisenforschung GmbH
|
|
|
|
!> @author Philip Eisenlohr, Max-Planck-Institut für Eisenforschung GmbH
|
|
|
|
!> @brief material subroutine for purely elastic material
|
|
|
|
!--------------------------------------------------------------------------------------------------
|
2012-07-03 16:46:38 +05:30
|
|
|
module constitutive_none
|
2013-05-17 22:39:42 +05:30
|
|
|
use prec, only: &
|
|
|
|
pInt
|
2014-03-09 02:20:31 +05:30
|
|
|
|
2012-07-03 16:46:38 +05:30
|
|
|
implicit none
|
|
|
|
private
|
2013-12-12 03:33:09 +05:30
|
|
|
integer(pInt), dimension(:), allocatable, public, protected :: &
|
2013-01-22 03:27:26 +05:30
|
|
|
constitutive_none_sizePostResults
|
2012-07-03 16:46:38 +05:30
|
|
|
|
2013-12-12 03:33:09 +05:30
|
|
|
integer(pInt), dimension(:,:), allocatable, target, public :: &
|
2013-07-01 11:40:42 +05:30
|
|
|
constitutive_none_sizePostResult !< size of each post result output
|
|
|
|
|
2013-05-17 22:39:42 +05:30
|
|
|
public :: &
|
2014-03-09 02:20:31 +05:30
|
|
|
constitutive_none_init
|
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
|
|
|
!--------------------------------------------------------------------------------------------------
|
2013-07-01 11:40:42 +05:30
|
|
|
!> @brief module initialization
|
|
|
|
!> @details reads in material parameters, allocates arrays, and does sanity checks
|
2013-05-17 22:39:42 +05:30
|
|
|
!--------------------------------------------------------------------------------------------------
|
2013-12-12 03:33:09 +05:30
|
|
|
subroutine constitutive_none_init(fileUnit)
|
2013-05-17 22:39:42 +05:30
|
|
|
use, intrinsic :: iso_fortran_env ! to get compiler_version and compiler_options (at least for gfortran 4.6 at the moment)
|
2013-12-19 14:19:47 +05:30
|
|
|
use debug, only: &
|
|
|
|
debug_level, &
|
|
|
|
debug_constitutive, &
|
|
|
|
debug_levelBasic
|
2012-07-03 16:46:38 +05:30
|
|
|
use IO, only: &
|
2014-03-09 02:20:31 +05:30
|
|
|
IO_timeStamp
|
2014-06-24 19:14:50 +05:30
|
|
|
use numerics, only: &
|
2014-10-10 01:53:06 +05:30
|
|
|
#ifdef FEM
|
|
|
|
worldrank, &
|
|
|
|
#endif
|
2014-06-24 19:14:50 +05:30
|
|
|
numerics_integrator
|
2013-12-19 14:19:47 +05:30
|
|
|
use material, only: &
|
|
|
|
phase_plasticity, &
|
|
|
|
phase_Noutput, &
|
|
|
|
PLASTICITY_NONE_label, &
|
2014-05-22 20:54:12 +05:30
|
|
|
material_phase, &
|
|
|
|
plasticState, &
|
2014-06-24 19:14:50 +05:30
|
|
|
PLASTICITY_none_ID, &
|
2013-12-19 14:19:47 +05:30
|
|
|
MATERIAL_partPhase
|
|
|
|
|
2012-07-03 16:46:38 +05:30
|
|
|
implicit none
|
2014-03-09 02:20:31 +05:30
|
|
|
|
2013-12-12 03:33:09 +05:30
|
|
|
integer(pInt), intent(in) :: fileUnit
|
2014-05-22 20:54:12 +05:30
|
|
|
integer(pInt) :: &
|
|
|
|
maxNinstance, &
|
2014-06-24 19:14:50 +05:30
|
|
|
phase, &
|
|
|
|
NofMyPhase, &
|
|
|
|
sizeState, &
|
|
|
|
sizeDotState
|
2013-01-09 03:41:59 +05:30
|
|
|
|
2014-10-10 01:53:06 +05:30
|
|
|
#ifdef FEM
|
|
|
|
if (worldrank == 0) then
|
|
|
|
#endif
|
2013-11-27 13:34:05 +05:30
|
|
|
write(6,'(/,a)') ' <<<+- constitutive_'//PLASTICITY_NONE_label//' init -+>>>'
|
2013-05-28 23:01:55 +05:30
|
|
|
write(6,'(a)') ' $Id$'
|
2013-05-17 22:39:42 +05:30
|
|
|
write(6,'(a15,a)') ' Current time: ',IO_timeStamp()
|
2012-07-03 16:46:38 +05:30
|
|
|
#include "compilation_info.f90"
|
2014-10-10 01:53:06 +05:30
|
|
|
#ifdef FEM
|
|
|
|
endif
|
|
|
|
#endif
|
2012-07-03 16:46:38 +05:30
|
|
|
|
2014-06-24 19:14:50 +05:30
|
|
|
maxNinstance = int(count(phase_plasticity == PLASTICITY_none_ID),pInt)
|
2012-07-03 16:46:38 +05:30
|
|
|
if (maxNinstance == 0_pInt) return
|
|
|
|
|
2013-05-17 22:39:42 +05:30
|
|
|
if (iand(debug_level(debug_constitutive),debug_levelBasic) /= 0_pInt) &
|
|
|
|
write(6,'(a16,1x,i5,/)') '# instances:',maxNinstance
|
2014-05-22 20:54:12 +05:30
|
|
|
|
|
|
|
initializeInstances: do phase = 1_pInt, size(phase_plasticity)
|
2014-07-02 17:57:39 +05:30
|
|
|
if (phase_plasticity(phase) == PLASTICITY_none_ID) then
|
2014-06-24 19:14:50 +05:30
|
|
|
NofMyPhase=count(material_phase==phase)
|
2014-07-02 17:57:39 +05:30
|
|
|
|
2014-06-24 19:14:50 +05:30
|
|
|
sizeState = 0_pInt
|
|
|
|
plasticState(phase)%sizeState = sizeState
|
|
|
|
sizeDotState = sizeState
|
|
|
|
plasticState(phase)%sizeDotState = sizeDotState
|
2014-07-02 17:57:39 +05:30
|
|
|
plasticState(phase)%sizePostResults = 0_pInt
|
|
|
|
allocate(plasticState(phase)%aTolState (sizeState))
|
|
|
|
allocate(plasticState(phase)%state0 (sizeState,NofMyPhase))
|
|
|
|
allocate(plasticState(phase)%partionedState0 (sizeState,NofMyPhase))
|
|
|
|
allocate(plasticState(phase)%subState0 (sizeState,NofMyPhase))
|
|
|
|
allocate(plasticState(phase)%state (sizeState,NofMyPhase))
|
|
|
|
allocate(plasticState(phase)%state_backup (sizeState,NofMyPhase))
|
|
|
|
|
|
|
|
allocate(plasticState(phase)%dotState (sizeDotState,NofMyPhase))
|
|
|
|
allocate(plasticState(phase)%dotState_backup (sizeDotState,NofMyPhase))
|
2014-06-24 19:14:50 +05:30
|
|
|
if (any(numerics_integrator == 1_pInt)) then
|
2014-07-02 17:57:39 +05:30
|
|
|
allocate(plasticState(phase)%previousDotState (sizeDotState,NofMyPhase))
|
|
|
|
allocate(plasticState(phase)%previousDotState2(sizeDotState,NofMyPhase))
|
2014-06-24 19:14:50 +05:30
|
|
|
endif
|
|
|
|
if (any(numerics_integrator == 4_pInt)) &
|
2014-07-02 17:57:39 +05:30
|
|
|
allocate(plasticState(phase)%RK4dotState (sizeDotState,NofMyPhase))
|
2014-06-24 19:14:50 +05:30
|
|
|
if (any(numerics_integrator == 5_pInt)) &
|
2014-07-02 17:57:39 +05:30
|
|
|
allocate(plasticState(phase)%RKCK45dotState (6,sizeDotState,NofMyPhase))
|
2014-06-24 19:14:50 +05:30
|
|
|
endif
|
2014-05-22 20:54:12 +05:30
|
|
|
enddo initializeInstances
|
2014-07-02 17:57:39 +05:30
|
|
|
|
|
|
|
allocate(constitutive_none_sizePostResults(maxNinstance), source=0_pInt)
|
2012-07-03 16:46:38 +05:30
|
|
|
|
|
|
|
end subroutine constitutive_none_init
|
|
|
|
|
|
|
|
end module constitutive_none
|