setting of (random) cluster orientations remove

can be easily done in a pre processing step
This commit is contained in:
Martin Diehl 2018-11-04 07:29:39 +01:00
parent f471911e01
commit 4dc3761fea
1 changed files with 4 additions and 16 deletions

View File

@ -168,8 +168,7 @@ subroutine homogenization_RGC_init()
prm%xiAlpha = config_homogenization(h)%getFloat('scalingparameter') prm%xiAlpha = config_homogenization(h)%getFloat('scalingparameter')
prm%ciAlpha = config_homogenization(h)%getFloat('overproportionality') prm%ciAlpha = config_homogenization(h)%getFloat('overproportionality')
prm%dAlpha = config_homogenization(h)%getFloats('grainsize',requiredShape=[3]) prm%dAlpha = config_homogenization(h)%getFloats('grainsize',requiredShape=[3])
prm%angles = config_homogenization(h)%getFloats('clusterorientation',requiredShape=[3],& prm%angles = config_homogenization(h)%getFloats('clusterorientation',requiredShape=[3])
defaultVal=[400.0_pReal,400.0_pReal,400.0_pReal])
outputs = config_homogenization(h)%getStrings('(output)',defaultVal=emptyStringArray) outputs = config_homogenization(h)%getStrings('(output)',defaultVal=emptyStringArray)
allocate(prm%outputID(0)) allocate(prm%outputID(0))
@ -243,21 +242,10 @@ subroutine homogenization_RGC_init()
! * assigning cluster orientations ! * assigning cluster orientations
elementLooping: do e = 1_pInt,mesh_NcpElems elementLooping: do e = 1_pInt,mesh_NcpElems
if (homogenization_typeInstance(mesh_homogenizationAt(e)) == instance .and. NofMyHomog > 0_pInt) then if (homogenization_typeInstance(mesh_homogenizationAt(e)) == instance .and. NofMyHomog > 0_pInt) then
noOrientationGiven: if (all (prm%angles >= 399.9_pReal)) then do i = 1_pInt,mesh_NipsPerElem
of = mappingHomogenization(1,1,e)
dependentState(instance)%orientation(1:3,1:3,of) = math_EulerToR(math_sampleRandomOri())
do i = 2_pInt,mesh_NipsPerElem
of = mappingHomogenization(1,i,e) of = mappingHomogenization(1,i,e)
dependentState(instance)%orientation(1:3,1:3,of) = merge(dependentState(instance)%orientation(1:3,1:3,of), & dependentState(instance)%orientation(1:3,1:3,of) = math_EulerToR(prm%angles*inRad)
math_EulerToR(math_sampleRandomOri()), & enddo
microstructure_elemhomo(mesh_microstructureAt(e)))
enddo
else noOrientationGiven
do i = 1_pInt,mesh_NipsPerElem
of = mappingHomogenization(1,i,e)
dependentState(instance)%orientation(1:3,1:3,of) = math_EulerToR(prm%angles*inRad)
enddo
endif noOrientationGiven
endif endif
enddo elementLooping enddo elementLooping
end associate end associate