2013-03-22 23:05:05 +05:30
|
|
|
! Copyright 2011-13 Max-Planck-Institut für Eisenforschung GmbH
|
2012-07-03 16:46:38 +05:30
|
|
|
!
|
|
|
|
! This file is part of DAMASK,
|
|
|
|
! the Düsseldorf Advanced MAterial Simulation Kit.
|
|
|
|
!
|
|
|
|
! DAMASK is free software: you can redistribute it and/or modify
|
|
|
|
! it under the terms of the GNU General Public License as published by
|
|
|
|
! the Free Software Foundation, either version 3 of the License, or
|
|
|
|
! (at your option) any later version.
|
|
|
|
!
|
|
|
|
! DAMASK is distributed in the hope that it will be useful,
|
|
|
|
! but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
! GNU General Public License for more details.
|
|
|
|
!
|
|
|
|
! You should have received a copy of the GNU General Public License
|
|
|
|
! along with DAMASK. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
!
|
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: &
|
|
|
|
pReal, &
|
|
|
|
pInt
|
2012-07-03 16:46:38 +05:30
|
|
|
|
|
|
|
implicit none
|
|
|
|
private
|
2013-07-01 11:40:42 +05:30
|
|
|
character (len=*), parameter, public :: &
|
|
|
|
CONSTITUTIVE_NONE_label = 'none' !< label for this constitutive model
|
2012-07-03 16:46:38 +05:30
|
|
|
|
2013-07-01 11:40:42 +05:30
|
|
|
integer(pInt), dimension(:), allocatable, public :: &
|
2012-07-03 16:46:38 +05:30
|
|
|
constitutive_none_sizeDotState, &
|
|
|
|
constitutive_none_sizeState, &
|
2013-01-22 03:27:26 +05:30
|
|
|
constitutive_none_sizePostResults
|
2012-07-03 16:46:38 +05:30
|
|
|
|
2013-07-01 11:40:42 +05:30
|
|
|
integer(pInt), dimension(:,:), allocatable, target, public :: &
|
|
|
|
constitutive_none_sizePostResult !< size of each post result output
|
|
|
|
|
|
|
|
character(len=32), dimension(:), allocatable, private :: &
|
|
|
|
constitutive_none_structureName
|
2012-07-03 16:46:38 +05:30
|
|
|
|
2013-07-01 11:40:42 +05:30
|
|
|
real(pReal), dimension(:,:,:), allocatable, private :: &
|
2012-07-03 16:46:38 +05:30
|
|
|
constitutive_none_Cslip_66
|
|
|
|
|
2013-05-17 22:39:42 +05:30
|
|
|
public :: &
|
|
|
|
constitutive_none_init, &
|
|
|
|
constitutive_none_stateInit, &
|
|
|
|
constitutive_none_aTolState, &
|
|
|
|
constitutive_none_homogenizedC, &
|
|
|
|
constitutive_none_microstructure, &
|
|
|
|
constitutive_none_LpAndItsTangent, &
|
|
|
|
constitutive_none_dotState, &
|
|
|
|
constitutive_none_deltaState, &
|
|
|
|
constitutive_none_dotTemperature, &
|
|
|
|
constitutive_none_postResults
|
|
|
|
|
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
|
|
|
!--------------------------------------------------------------------------------------------------
|
2012-07-03 16:46:38 +05:30
|
|
|
subroutine constitutive_none_init(myFile)
|
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)
|
2012-07-03 16:46:38 +05:30
|
|
|
use math, only: &
|
|
|
|
math_Mandel3333to66, &
|
|
|
|
math_Voigt66to3333
|
|
|
|
use IO, only: &
|
2013-06-27 00:49:00 +05:30
|
|
|
IO_read, &
|
2012-07-03 16:46:38 +05:30
|
|
|
IO_lc, &
|
|
|
|
IO_getTag, &
|
|
|
|
IO_isBlank, &
|
|
|
|
IO_stringPos, &
|
|
|
|
IO_stringValue, &
|
|
|
|
IO_floatValue, &
|
2013-02-25 22:04:59 +05:30
|
|
|
IO_error, &
|
|
|
|
IO_timeStamp
|
2012-07-03 16:46:38 +05:30
|
|
|
use material
|
|
|
|
use debug, only: &
|
2012-07-05 15:24:50 +05:30
|
|
|
debug_level, &
|
2012-07-03 16:46:38 +05:30
|
|
|
debug_constitutive, &
|
|
|
|
debug_levelBasic
|
2013-07-01 11:40:42 +05:30
|
|
|
use lattice, only: &
|
|
|
|
lattice_symmetrizeC66
|
2012-07-03 16:46:38 +05:30
|
|
|
|
|
|
|
implicit none
|
|
|
|
integer(pInt), intent(in) :: myFile
|
|
|
|
|
2013-05-28 23:01:55 +05:30
|
|
|
integer(pInt), parameter :: MAXNCHUNKS = 7_pInt
|
2013-07-01 11:40:42 +05:30
|
|
|
|
2013-05-28 23:01:55 +05:30
|
|
|
integer(pInt), dimension(1_pInt+2_pInt*MAXNCHUNKS) :: positions
|
2013-05-17 22:39:42 +05:30
|
|
|
integer(pInt) :: section = 0_pInt, maxNinstance, i
|
2013-07-01 11:40:42 +05:30
|
|
|
character(len=65536) :: &
|
|
|
|
tag = '', &
|
|
|
|
line = '' ! to start initialized
|
2013-01-09 03:41:59 +05:30
|
|
|
|
2013-07-01 11:40:42 +05:30
|
|
|
write(6,'(/,a)') ' <<<+- constitutive_'//trim(CONSTITUTIVE_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"
|
|
|
|
|
2013-07-01 11:40:42 +05:30
|
|
|
maxNinstance = int(count(phase_plasticity == CONSTITUTIVE_NONE_label),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
|
2012-07-03 16:46:38 +05:30
|
|
|
|
|
|
|
allocate(constitutive_none_sizeDotState(maxNinstance))
|
|
|
|
constitutive_none_sizeDotState = 0_pInt
|
|
|
|
allocate(constitutive_none_sizeState(maxNinstance))
|
|
|
|
constitutive_none_sizeState = 0_pInt
|
|
|
|
allocate(constitutive_none_sizePostResults(maxNinstance))
|
|
|
|
constitutive_none_sizePostResults = 0_pInt
|
|
|
|
allocate(constitutive_none_structureName(maxNinstance))
|
|
|
|
constitutive_none_structureName = ''
|
|
|
|
allocate(constitutive_none_Cslip_66(6,6,maxNinstance))
|
|
|
|
constitutive_none_Cslip_66 = 0.0_pReal
|
|
|
|
|
|
|
|
rewind(myFile)
|
|
|
|
|
2013-07-01 11:40:42 +05:30
|
|
|
do while (trim(line) /= '#EOF#' .and. IO_lc(IO_getTag(line,'<','>')) /= 'phase') ! wind forward to <phase>
|
2013-06-27 00:49:00 +05:30
|
|
|
line = IO_read(myFile)
|
2012-07-03 16:46:38 +05:30
|
|
|
enddo
|
|
|
|
|
2013-07-01 11:40:42 +05:30
|
|
|
do while (trim(line) /= '#EOF#') ! read through sections of phase part
|
2013-06-27 00:49:00 +05:30
|
|
|
line = IO_read(myFile)
|
2013-05-17 22:39:42 +05:30
|
|
|
if (IO_isBlank(line)) cycle ! skip empty lines
|
|
|
|
if (IO_getTag(line,'<','>') /= '') exit ! stop at next part
|
|
|
|
if (IO_getTag(line,'[',']') /= '') then ! next section
|
|
|
|
section = section + 1_pInt ! advance section counter
|
2012-07-03 16:46:38 +05:30
|
|
|
cycle
|
|
|
|
endif
|
2013-07-01 11:40:42 +05:30
|
|
|
if (section > 0_pInt ) then ! do not short-circuit here (.and. with next if-statement). It's not safe in Fortran
|
|
|
|
if (phase_plasticity(section) == CONSTITUTIVE_NONE_label) then ! one of my sections
|
2013-06-12 01:46:40 +05:30
|
|
|
i = phase_plasticityInstance(section) ! which instance of my plasticity is present phase
|
|
|
|
positions = IO_stringPos(line,MAXNCHUNKS)
|
|
|
|
tag = IO_lc(IO_stringValue(line,positions,1_pInt)) ! extract key
|
|
|
|
select case(tag)
|
|
|
|
case ('plasticity','elasticity')
|
|
|
|
cycle
|
|
|
|
case ('lattice_structure')
|
|
|
|
constitutive_none_structureName(i) = IO_lc(IO_stringValue(line,positions,2_pInt))
|
|
|
|
case ('c11')
|
|
|
|
constitutive_none_Cslip_66(1,1,i) = IO_floatValue(line,positions,2_pInt)
|
|
|
|
case ('c12')
|
|
|
|
constitutive_none_Cslip_66(1,2,i) = IO_floatValue(line,positions,2_pInt)
|
|
|
|
case ('c13')
|
|
|
|
constitutive_none_Cslip_66(1,3,i) = IO_floatValue(line,positions,2_pInt)
|
|
|
|
case ('c22')
|
|
|
|
constitutive_none_Cslip_66(2,2,i) = IO_floatValue(line,positions,2_pInt)
|
|
|
|
case ('c23')
|
|
|
|
constitutive_none_Cslip_66(2,3,i) = IO_floatValue(line,positions,2_pInt)
|
|
|
|
case ('c33')
|
|
|
|
constitutive_none_Cslip_66(3,3,i) = IO_floatValue(line,positions,2_pInt)
|
|
|
|
case ('c44')
|
|
|
|
constitutive_none_Cslip_66(4,4,i) = IO_floatValue(line,positions,2_pInt)
|
|
|
|
case ('c55')
|
|
|
|
constitutive_none_Cslip_66(5,5,i) = IO_floatValue(line,positions,2_pInt)
|
|
|
|
case ('c66')
|
|
|
|
constitutive_none_Cslip_66(6,6,i) = IO_floatValue(line,positions,2_pInt)
|
|
|
|
case default
|
2013-07-01 11:40:42 +05:30
|
|
|
call IO_error(210_pInt,ext_msg=trim(tag)//' ('//CONSTITUTIVE_NONE_label//')')
|
2013-06-12 01:46:40 +05:30
|
|
|
end select
|
|
|
|
endif
|
2012-07-03 16:46:38 +05:30
|
|
|
endif
|
|
|
|
enddo
|
|
|
|
|
2013-06-27 00:49:00 +05:30
|
|
|
do i = 1_pInt,maxNinstance
|
2013-09-18 19:37:55 +05:30
|
|
|
if (constitutive_none_structureName(i) == '') call IO_error(205_pInt,el=i)
|
2012-07-03 16:46:38 +05:30
|
|
|
enddo
|
|
|
|
|
2013-07-01 11:40:42 +05:30
|
|
|
instancesLoop: do i = 1_pInt,maxNinstance
|
2012-07-03 16:46:38 +05:30
|
|
|
constitutive_none_sizeDotState(i) = 1_pInt
|
|
|
|
constitutive_none_sizeState(i) = 1_pInt
|
|
|
|
|
2013-01-22 03:27:26 +05:30
|
|
|
constitutive_none_Cslip_66(:,:,i) = lattice_symmetrizeC66(constitutive_none_structureName(i),&
|
2013-01-22 21:18:47 +05:30
|
|
|
constitutive_none_Cslip_66(:,:,i))
|
2012-07-03 16:46:38 +05:30
|
|
|
constitutive_none_Cslip_66(:,:,i) = &
|
|
|
|
math_Mandel3333to66(math_Voigt66to3333(constitutive_none_Cslip_66(:,:,i)))
|
|
|
|
|
2013-07-01 11:40:42 +05:30
|
|
|
enddo instancesLoop
|
2012-07-03 16:46:38 +05:30
|
|
|
|
|
|
|
end subroutine constitutive_none_init
|
|
|
|
|
|
|
|
|
2013-05-17 22:39:42 +05:30
|
|
|
!--------------------------------------------------------------------------------------------------
|
2013-07-01 11:40:42 +05:30
|
|
|
!> @brief sets the initial microstructural state for a given instance of this plasticity
|
|
|
|
!> @details dummy function, returns 0.0
|
2013-05-17 22:39:42 +05:30
|
|
|
!--------------------------------------------------------------------------------------------------
|
2012-07-03 16:46:38 +05:30
|
|
|
pure function constitutive_none_stateInit(myInstance)
|
|
|
|
|
|
|
|
implicit none
|
2013-07-01 11:40:42 +05:30
|
|
|
real(pReal), dimension(1) :: constitutive_none_stateInit
|
|
|
|
integer(pInt), intent(in) :: myInstance !< number specifying the instance of the plasticity
|
2013-05-17 22:39:42 +05:30
|
|
|
|
2012-07-03 16:46:38 +05:30
|
|
|
constitutive_none_stateInit = 0.0_pReal
|
|
|
|
|
|
|
|
end function constitutive_none_stateInit
|
|
|
|
|
|
|
|
|
2013-05-17 22:39:42 +05:30
|
|
|
!--------------------------------------------------------------------------------------------------
|
2013-07-01 11:40:42 +05:30
|
|
|
!> @brief sets the relevant state values for a given instance of this plasticity
|
|
|
|
!> @details ensures convergence as state is always 0.0
|
2013-05-17 22:39:42 +05:30
|
|
|
!--------------------------------------------------------------------------------------------------
|
2012-07-03 16:46:38 +05:30
|
|
|
pure function constitutive_none_aTolState(myInstance)
|
|
|
|
|
|
|
|
implicit none
|
2013-07-01 11:40:42 +05:30
|
|
|
integer(pInt), intent(in) :: myInstance !< number specifying the instance of the plasticity
|
2012-07-03 16:46:38 +05:30
|
|
|
|
|
|
|
real(pReal), dimension(constitutive_none_sizeState(myInstance)) :: &
|
2013-07-01 11:40:42 +05:30
|
|
|
constitutive_none_aTolState
|
|
|
|
|
2013-05-17 22:39:42 +05:30
|
|
|
constitutive_none_aTolState = 1.0_pReal
|
2012-07-03 16:46:38 +05:30
|
|
|
|
|
|
|
end function constitutive_none_aTolState
|
|
|
|
|
|
|
|
|
2013-05-17 22:39:42 +05:30
|
|
|
!--------------------------------------------------------------------------------------------------
|
2013-07-01 11:40:42 +05:30
|
|
|
!> @brief returns the homogenized elasticity matrix
|
2013-05-17 22:39:42 +05:30
|
|
|
!--------------------------------------------------------------------------------------------------
|
2012-11-07 21:13:29 +05:30
|
|
|
pure function constitutive_none_homogenizedC(state,ipc,ip,el)
|
2013-05-17 22:39:42 +05:30
|
|
|
use prec, only: &
|
|
|
|
p_vec
|
|
|
|
use mesh, only: &
|
|
|
|
mesh_NcpElems, &
|
|
|
|
mesh_maxNips
|
|
|
|
use material, only: &
|
|
|
|
homogenization_maxNgrains, &
|
|
|
|
material_phase, &
|
|
|
|
phase_plasticityInstance
|
2012-07-03 16:46:38 +05:30
|
|
|
|
|
|
|
implicit none
|
2013-07-01 11:40:42 +05:30
|
|
|
real(pReal), dimension(6,6) :: &
|
|
|
|
constitutive_none_homogenizedC
|
2013-05-17 22:39:42 +05:30
|
|
|
integer(pInt), intent(in) :: &
|
2013-07-01 11:40:42 +05:30
|
|
|
ipc, & !< component-ID of integration point
|
|
|
|
ip, & !< integration point
|
|
|
|
el !< element
|
|
|
|
type(p_vec), dimension(homogenization_maxNgrains,mesh_maxNips,mesh_NcpElems), intent(in) :: &
|
|
|
|
state !< microstructure state
|
2013-05-17 22:39:42 +05:30
|
|
|
|
2013-07-01 11:40:42 +05:30
|
|
|
constitutive_none_homogenizedC = constitutive_none_Cslip_66(1:6,1:6,&
|
|
|
|
phase_plasticityInstance(material_phase(ipc,ip,el)))
|
2012-07-03 16:46:38 +05:30
|
|
|
|
|
|
|
end function constitutive_none_homogenizedC
|
|
|
|
|
|
|
|
|
2013-05-17 22:39:42 +05:30
|
|
|
!--------------------------------------------------------------------------------------------------
|
2013-07-01 11:40:42 +05:30
|
|
|
!> @brief calculates derived quantities from state
|
|
|
|
!> @details dummy subroutine, does nothing
|
2013-05-17 22:39:42 +05:30
|
|
|
!--------------------------------------------------------------------------------------------------
|
2013-07-01 11:40:42 +05:30
|
|
|
pure subroutine constitutive_none_microstructure(temperature,state,ipc,ip,el)
|
2013-05-17 22:39:42 +05:30
|
|
|
use prec, only: &
|
|
|
|
p_vec
|
|
|
|
use mesh, only: &
|
|
|
|
mesh_NcpElems, &
|
|
|
|
mesh_maxNips
|
|
|
|
use material, only: &
|
2013-07-01 11:40:42 +05:30
|
|
|
homogenization_maxNgrains
|
2012-07-03 16:46:38 +05:30
|
|
|
|
|
|
|
implicit none
|
2013-05-17 22:39:42 +05:30
|
|
|
integer(pInt), intent(in) :: &
|
2013-07-01 11:40:42 +05:30
|
|
|
ipc, & !< component-ID of integration point
|
|
|
|
ip, & !< integration point
|
|
|
|
el !< element
|
|
|
|
real(pReal), intent(in) :: &
|
|
|
|
temperature !< temperature at IP
|
|
|
|
type(p_vec), dimension(homogenization_maxNgrains,mesh_maxNips,mesh_NcpElems), intent(in) :: &
|
|
|
|
state !< microstructure state
|
2012-07-03 16:46:38 +05:30
|
|
|
|
|
|
|
end subroutine constitutive_none_microstructure
|
|
|
|
|
|
|
|
|
2013-05-17 22:39:42 +05:30
|
|
|
!--------------------------------------------------------------------------------------------------
|
|
|
|
!> @brief calculates plastic velocity gradient and its tangent
|
2013-07-01 11:40:42 +05:30
|
|
|
!> @details dummy function, returns 0.0 and Identity
|
2013-05-17 22:39:42 +05:30
|
|
|
!--------------------------------------------------------------------------------------------------
|
2013-07-12 12:27:15 +05:30
|
|
|
pure subroutine constitutive_none_LpAndItsTangent(Lp,dLp_dTstar99,Tstar_dev_v, &
|
2013-07-01 11:40:42 +05:30
|
|
|
temperature, state, ipc, ip, el)
|
2013-05-17 22:39:42 +05:30
|
|
|
use prec, only: &
|
|
|
|
p_vec
|
|
|
|
use math, only: &
|
|
|
|
math_identity2nd
|
|
|
|
use mesh, only: &
|
|
|
|
mesh_NcpElems, &
|
|
|
|
mesh_maxNips
|
|
|
|
use material, only: &
|
|
|
|
homogenization_maxNgrains, &
|
|
|
|
material_phase, &
|
|
|
|
phase_plasticityInstance
|
2012-07-03 16:46:38 +05:30
|
|
|
|
2013-05-17 22:39:42 +05:30
|
|
|
implicit none
|
2013-07-01 11:40:42 +05:30
|
|
|
real(pReal), dimension(3,3), intent(out) :: &
|
|
|
|
Lp !< plastic velocity gradient
|
|
|
|
real(pReal), dimension(9,9), intent(out) :: &
|
2013-07-12 12:27:15 +05:30
|
|
|
dLp_dTstar99 !< derivative of Lp with respect to 2nd Piola Kirchhoff stress
|
2013-07-01 11:40:42 +05:30
|
|
|
|
|
|
|
real(pReal), dimension(6), intent(in) :: &
|
|
|
|
Tstar_dev_v !< deviatoric part of 2nd Piola Kirchhoff stress tensor in Mandel notation
|
|
|
|
real(pReal), intent(in) :: &
|
|
|
|
temperature !< temperature at IP
|
|
|
|
integer(pInt), intent(in) :: &
|
|
|
|
ipc, & !< component-ID of integration point
|
|
|
|
ip, & !< integration point
|
|
|
|
el !< element
|
|
|
|
type(p_vec), dimension(homogenization_maxNgrains,mesh_maxNips,mesh_NcpElems), intent(in) :: &
|
|
|
|
state !< microstructure state
|
|
|
|
|
|
|
|
Lp = 0.0_pReal ! set Lp to zero
|
2013-07-12 12:27:15 +05:30
|
|
|
dLp_dTstar99 = math_identity2nd(9) ! set dLp_dTstar to Identity
|
2012-07-03 16:46:38 +05:30
|
|
|
|
2013-05-17 22:39:42 +05:30
|
|
|
end subroutine constitutive_none_LpAndItsTangent
|
2012-07-03 16:46:38 +05:30
|
|
|
|
|
|
|
|
2013-05-17 22:39:42 +05:30
|
|
|
!--------------------------------------------------------------------------------------------------
|
|
|
|
!> @brief calculates the rate of change of microstructure
|
2013-07-01 11:40:42 +05:30
|
|
|
!> @details dummy function, returns 0.0
|
2013-05-17 22:39:42 +05:30
|
|
|
!--------------------------------------------------------------------------------------------------
|
2013-07-01 11:40:42 +05:30
|
|
|
pure function constitutive_none_dotState(Tstar_v,temperature,state,ipc,ip,el)
|
2013-05-17 22:39:42 +05:30
|
|
|
use prec, only: &
|
|
|
|
p_vec
|
|
|
|
use mesh, only: &
|
|
|
|
mesh_NcpElems, &
|
|
|
|
mesh_maxNips
|
|
|
|
use material, only: &
|
|
|
|
homogenization_maxNgrains, &
|
|
|
|
material_phase, &
|
|
|
|
phase_plasticityInstance
|
2012-07-03 16:46:38 +05:30
|
|
|
|
2013-05-17 22:39:42 +05:30
|
|
|
implicit none
|
2013-07-01 11:40:42 +05:30
|
|
|
real(pReal), dimension(1) :: &
|
|
|
|
constitutive_none_dotState
|
|
|
|
real(pReal), dimension(6), intent(in):: &
|
|
|
|
Tstar_v !< 2nd Piola Kirchhoff stress tensor in Mandel notation
|
|
|
|
real(pReal), intent(in) :: &
|
|
|
|
temperature !< temperature at integration point
|
|
|
|
integer(pInt), intent(in) :: &
|
|
|
|
ipc, & !< component-ID of integration point
|
|
|
|
ip, & !< integration point
|
|
|
|
el !< element
|
|
|
|
type(p_vec), dimension(homogenization_maxNgrains,mesh_maxNips,mesh_NcpElems), intent(in) :: &
|
|
|
|
state !< microstructure state
|
2012-07-03 16:46:38 +05:30
|
|
|
|
2013-05-17 22:39:42 +05:30
|
|
|
constitutive_none_dotState = 0.0_pReal
|
2012-07-03 16:46:38 +05:30
|
|
|
|
2013-05-17 22:39:42 +05:30
|
|
|
end function constitutive_none_dotState
|
2012-07-03 16:46:38 +05:30
|
|
|
|
|
|
|
|
2013-05-17 22:39:42 +05:30
|
|
|
!--------------------------------------------------------------------------------------------------
|
|
|
|
!> @brief (instantaneous) incremental change of microstructure
|
2013-07-01 11:40:42 +05:30
|
|
|
!> @details dummy function, returns 0.0
|
2013-05-17 22:39:42 +05:30
|
|
|
!--------------------------------------------------------------------------------------------------
|
2013-07-01 11:40:42 +05:30
|
|
|
function constitutive_none_deltaState(Tstar_v,temperature,state,ipc,ip,el)
|
2013-05-17 22:39:42 +05:30
|
|
|
use prec, only: &
|
|
|
|
p_vec
|
|
|
|
use mesh, only: &
|
|
|
|
mesh_NcpElems, &
|
|
|
|
mesh_maxNips
|
|
|
|
use material, only: &
|
|
|
|
homogenization_maxNgrains, &
|
|
|
|
material_phase, &
|
|
|
|
phase_plasticityInstance
|
2012-07-03 16:46:38 +05:30
|
|
|
|
2013-05-17 22:39:42 +05:30
|
|
|
implicit none
|
2013-07-01 11:40:42 +05:30
|
|
|
real(pReal), dimension(6), intent(in):: &
|
|
|
|
Tstar_v !< 2nd Piola Kirchhoff stress tensor in Mandel notation
|
|
|
|
real(pReal), intent(in) :: &
|
|
|
|
Temperature !< temperature at integration point
|
|
|
|
integer(pInt), intent(in) :: &
|
|
|
|
ipc, & !< component-ID of integration point
|
|
|
|
ip, & !< integration point
|
|
|
|
el !< element
|
|
|
|
type(p_vec), dimension(homogenization_maxNgrains,mesh_maxNips,mesh_NcpElems), intent(in) :: &
|
|
|
|
state !< microstructure state
|
|
|
|
|
|
|
|
real(pReal), dimension(constitutive_none_sizeDotState(phase_plasticityInstance(material_phase(ipc,ip,el)))) :: &
|
|
|
|
constitutive_none_deltaState
|
2012-07-03 16:46:38 +05:30
|
|
|
|
2013-05-17 22:39:42 +05:30
|
|
|
constitutive_none_deltaState = 0.0_pReal
|
2012-07-03 16:46:38 +05:30
|
|
|
|
|
|
|
|
2013-05-17 22:39:42 +05:30
|
|
|
end function constitutive_none_deltaState
|
2012-07-03 16:46:38 +05:30
|
|
|
|
2013-05-17 22:39:42 +05:30
|
|
|
|
|
|
|
!--------------------------------------------------------------------------------------------------
|
|
|
|
!> @brief calculates the rate of change of temperature
|
2013-07-01 11:40:42 +05:30
|
|
|
!> @details dummy function, returns 0.0
|
2013-05-17 22:39:42 +05:30
|
|
|
!--------------------------------------------------------------------------------------------------
|
2013-07-01 11:40:42 +05:30
|
|
|
real(pReal) pure function constitutive_none_dotTemperature(Tstar_v,temperature,state,ipc,ip,el)
|
2013-05-17 22:39:42 +05:30
|
|
|
use prec, only: &
|
|
|
|
p_vec
|
|
|
|
use mesh, only: &
|
|
|
|
mesh_NcpElems, &
|
|
|
|
mesh_maxNips
|
|
|
|
use material, only: &
|
|
|
|
homogenization_maxNgrains
|
2012-07-03 16:46:38 +05:30
|
|
|
|
2013-05-17 22:39:42 +05:30
|
|
|
implicit none
|
2013-07-01 11:40:42 +05:30
|
|
|
real(pReal), dimension(6), intent(in) :: &
|
|
|
|
Tstar_v !< 2nd Piola Kirchhoff stress tensor in Mandel notation
|
|
|
|
real(pReal), intent(in) :: &
|
|
|
|
temperature !< temperature at integration point
|
|
|
|
integer(pInt), intent(in) :: &
|
|
|
|
ipc, & !< component-ID of integration point
|
|
|
|
ip, & !< integration point
|
|
|
|
el !< element
|
|
|
|
type(p_vec), dimension(homogenization_maxNgrains,mesh_maxNips,mesh_NcpElems), intent(in) :: &
|
|
|
|
state !< microstructure state
|
2013-05-17 22:39:42 +05:30
|
|
|
|
|
|
|
constitutive_none_dotTemperature = 0.0_pReal
|
2012-07-03 16:46:38 +05:30
|
|
|
|
|
|
|
end function constitutive_none_dotTemperature
|
|
|
|
|
|
|
|
|
2013-05-17 22:39:42 +05:30
|
|
|
!--------------------------------------------------------------------------------------------------
|
|
|
|
!> @brief return array of constitutive results
|
2013-07-01 11:40:42 +05:30
|
|
|
!> @details dummy function, returns 0.0
|
2013-05-17 22:39:42 +05:30
|
|
|
!--------------------------------------------------------------------------------------------------
|
2013-07-01 11:40:42 +05:30
|
|
|
pure function constitutive_none_postResults(Tstar_v,temperature,dt,state,ipc,ip,el)
|
2013-05-17 22:39:42 +05:30
|
|
|
use prec, only: &
|
|
|
|
p_vec
|
|
|
|
use mesh, only: &
|
|
|
|
mesh_NcpElems, &
|
|
|
|
mesh_maxNips
|
|
|
|
use material, only: &
|
|
|
|
homogenization_maxNgrains, &
|
|
|
|
material_phase, &
|
|
|
|
phase_plasticityInstance, &
|
|
|
|
phase_Noutput
|
2012-07-03 16:46:38 +05:30
|
|
|
|
2013-05-17 22:39:42 +05:30
|
|
|
implicit none
|
2013-07-01 11:40:42 +05:30
|
|
|
real(pReal), dimension(6), intent(in) :: &
|
|
|
|
Tstar_v !< 2nd Piola Kirchhoff stress tensor in Mandel notation
|
|
|
|
real(pReal), intent(in) :: &
|
|
|
|
temperature, & !< temperature at integration point
|
|
|
|
dt
|
|
|
|
integer(pInt), intent(in) :: &
|
|
|
|
ipc, & !< component-ID of integration point
|
|
|
|
ip, & !< integration point
|
|
|
|
el !< element
|
|
|
|
type(p_vec), dimension(homogenization_maxNgrains,mesh_maxNips,mesh_NcpElems), intent(in) :: &
|
|
|
|
state !< microstructure state
|
2013-05-17 22:39:42 +05:30
|
|
|
|
|
|
|
real(pReal), dimension(constitutive_none_sizePostResults(phase_plasticityInstance(&
|
2013-07-01 11:40:42 +05:30
|
|
|
material_phase(ipc,ip,el)))) :: constitutive_none_postResults
|
2013-05-17 22:39:42 +05:30
|
|
|
|
2012-07-03 16:46:38 +05:30
|
|
|
constitutive_none_postResults = 0.0_pReal
|
|
|
|
|
|
|
|
end function constitutive_none_postResults
|
|
|
|
|
|
|
|
end module constitutive_none
|