corrected typos and some field related changes

This commit is contained in:
Luv Sharma 2014-09-10 18:26:12 +00:00
parent 0af667e94d
commit 7c60c45f80
2 changed files with 29 additions and 26 deletions

View File

@ -670,9 +670,10 @@ logical function constitutive_collectDeltaState(Tstar_v, ipc, ip, el)
endif
end function constitutive_collectDeltaState
#ifdef NEWSTATE
!--------------------------------------------------------------------------------------------------
!> @brief returns temperature based on each damage model state layout
!> @brief Returns the local(unregularised) damage
!--------------------------------------------------------------------------------------------------
function constitutive_getLocalDamage(ipc, ip, el)
use prec, only: &
@ -702,7 +703,9 @@ function constitutive_getLocalDamage(ipc, ip, el)
end function constitutive_getLocalDamage
!--------------------------------------------------------------------------------------------------
!> @brief returns nonlocal (regularised) damage
!--------------------------------------------------------------------------------------------------
function constitutive_getNonlocalDamage(ipc, ip, el)
use prec, only: &
pReal
@ -725,16 +728,18 @@ function constitutive_getNonlocalDamage(ipc, ip, el)
select case(field_damage_type(material_homog(ip,el)))
case (FIELD_DAMAGE_LOCAL_ID)
constitutive_getNonlocalDamage = 1.0_pReal
constitutive_getNonlocalDamage = constitutive_getLocalDamage(ipc, ip, el)
case (FIELD_DAMAGE_NONLOCAL_ID)
constitutive_getNonlocalDamage = fieldDamage(material_homog(ip,el))% &
state(1,mappingHomogenization(1,ip,el)) ! Taylor type
state(1,mappingHomogenization(1,ip,el)) ! Taylor type
end select
end function constitutive_getNonlocalDamage
!--------------------------------------------------------------------------------------------------
!> @brief returns local (unregularised) temperature
!--------------------------------------------------------------------------------------------------
function constitutive_getAdiabaticThermal(ipc, ip, el)
use prec, only: &
pReal
@ -765,7 +770,9 @@ function constitutive_getAdiabaticThermal(ipc, ip, el)
end function constitutive_getAdiabaticThermal
!--------------------------------------------------------------------------------------------------
!> @brief returns nonlocal (regularised) temperature
!--------------------------------------------------------------------------------------------------
function constitutive_getConductionThermal(ipc, ip, el)
use prec, only: &
pReal
@ -774,8 +781,8 @@ function constitutive_getConductionThermal(ipc, ip, el)
material_phase, &
fieldThermal, &
field_thermal_type, &
FIELD_DAMAGE_LOCAL_ID, &
FIELD_DAMAGE_NONLOCAL_ID, &
FIELD_THERMAL_ADIABATIC_ID, &
FIELD_THERMAL_CONDUCTION_ID, &
material_homog
use lattice, only: &
lattice_referenceTemperature
@ -788,21 +795,18 @@ function constitutive_getConductionThermal(ipc, ip, el)
select case(field_thermal_type(material_homog(ip,el)))
case (FIELD_DAMAGE_LOCAL_ID)
constitutive_getConductionThermal = lattice_referenceTemperature(material_phase(ipc,ip,el)) ! check
case (FIELD_THERMAL_ADIABATIC_ID)
constitutive_getConductionThermal = constitutive_getAdiabaticThermal(ipc, ip, el)
case (FIELD_DAMAGE_NONLOCAL_ID)
case (FIELD_THERMAL_CONDUCTION_ID)
constitutive_getConductionThermal = fieldThermal(material_homog(ip,el))% &
state(1,mappingHomogenization(1,ip,el)) ! Taylor type
state(1,mappingHomogenization(1,ip,el)) ! Taylor type
end select
end function constitutive_getConductionThermal
#endif
!--------------------------------------------------------------------------------------------------
!> @brief returns array of constitutive results
!--------------------------------------------------------------------------------------------------

View File

@ -116,6 +116,10 @@ subroutine homogenization_init()
mesh_element, &
FE_Nips, &
FE_geomtype
#ifdef NEWSTATE
use lattice, only: &
lattice_referenceTemperature
#endif
use constitutive, only: &
constitutive_maxSizePostResults
use constitutive_damage, only: &
@ -214,12 +218,14 @@ subroutine homogenization_init()
case (FIELD_THERMAL_ADIABATIC_ID)
fieldThermal(p)%sizeState = 0_pInt
fieldThermal(p)%sizePostResults = 0_pInt
allocate(fieldThermal(p)%state(fieldThermal(p)%sizeState,NofMyField), source = 1.0_pReal)
allocate(fieldThermal(p)%state(fieldThermal(p)%sizeState,NofMyField), &
source = 273.0_pReal) ! ToDo: temporary fix for now
case (FIELD_THERMAL_CONDUCTION_ID)
fieldThermal(p)%sizeState = 1_pInt
fieldThermal(p)%sizePostResults = 1_pInt
allocate(fieldThermal(p)%state(fieldThermal(p)%sizeState,NofMyField), source = 1.0_pReal)
allocate(fieldThermal(p)%state(fieldThermal(p)%sizeState,NofMyField), &
source = 273.0_pReal) ! ToDo: temporary fix for now
end select
enddo
@ -1202,7 +1208,7 @@ real(pReal) function field_getDAMAGE(ip,el)
end function field_getDAMAGE
!--------------------------------------------------------------------------------------------------
!> @brief ToDo
!> @brief Sets the regularised damage value in field state
!--------------------------------------------------------------------------------------------------
subroutine field_putDAMAGE(ip,el,fieldDamageValue) ! naming scheme
use mesh, only: &
@ -1225,10 +1231,6 @@ subroutine field_putDAMAGE(ip,el,fieldDamageValue) ! naming scheme
Ngrains, ipc
select case(field_damage_type(material_homog(ip,el)))
case (FIELD_DAMAGE_LOCAL_ID)
case (FIELD_DAMAGE_NONLOCAL_ID)
fieldDamage(material_homog(ip,el))% &
state(1:fieldDamage(material_homog(ip,el))%sizeState, &
@ -1280,7 +1282,7 @@ real(pReal) function field_getThermal(ip,el)
end function field_getThermal
!--------------------------------------------------------------------------------------------------
!> @brief ToDo,
!> @brief Sets the regularised temperature value in field state
!--------------------------------------------------------------------------------------------------
subroutine field_putThermal(ip,el,fieldThermalValue)
use mesh, only: &
@ -1302,9 +1304,6 @@ subroutine field_putThermal(ip,el,fieldThermalValue)
Ngrains, ipc
select case(field_thermal_type(material_homog(ip,el)))
case (FIELD_THERMAL_ADIABATIC_ID)
case (FIELD_THERMAL_CONDUCTION_ID)
fieldThermal(material_homog(ip,el))% &
state(1:fieldThermal(material_homog(ip,el))%sizeState, &