fixed wrong initialized symmetry value
This commit is contained in:
parent
e20ffb379d
commit
118dff9f23
|
@ -158,16 +158,13 @@ module material
|
||||||
|
|
||||||
public :: &
|
public :: &
|
||||||
material_init, &
|
material_init, &
|
||||||
ELASTICITY_undefined_ID, &
|
ELASTICITY_hooke_ID ,&
|
||||||
ELASTICITY_hooke_ID, &
|
|
||||||
PLASTICITY_undefined_ID, &
|
|
||||||
PLASTICITY_none_ID, &
|
PLASTICITY_none_ID, &
|
||||||
PLASTICITY_J2_ID, &
|
PLASTICITY_J2_ID, &
|
||||||
PLASTICITY_phenopowerlaw_ID, &
|
PLASTICITY_phenopowerlaw_ID, &
|
||||||
PLASTICITY_dislotwin_ID, &
|
PLASTICITY_dislotwin_ID, &
|
||||||
PLASTICITY_titanmod_ID, &
|
PLASTICITY_titanmod_ID, &
|
||||||
PLASTICITY_nonlocal_ID, &
|
PLASTICITY_nonlocal_ID, &
|
||||||
HOMOGENIZATION_undefined_ID, &
|
|
||||||
HOMOGENIZATION_isostrain_ID, &
|
HOMOGENIZATION_isostrain_ID, &
|
||||||
HOMOGENIZATION_RGC_ID
|
HOMOGENIZATION_RGC_ID
|
||||||
|
|
||||||
|
@ -411,6 +408,7 @@ subroutine material_parseMicrostructure(fileUnit,myPart)
|
||||||
line = '' ! to have it initialized
|
line = '' ! to have it initialized
|
||||||
section = 0_pInt ! - " -
|
section = 0_pInt ! - " -
|
||||||
constituent = 0_pInt ! - " -
|
constituent = 0_pInt ! - " -
|
||||||
|
|
||||||
do while (trim(line) /= IO_EOF .and. IO_lc(IO_getTag(line,'<','>')) /= myPart) ! wind forward to myPart
|
do while (trim(line) /= IO_EOF .and. IO_lc(IO_getTag(line,'<','>')) /= myPart) ! wind forward to myPart
|
||||||
line = IO_read(fileUnit)
|
line = IO_read(fileUnit)
|
||||||
enddo
|
enddo
|
||||||
|
@ -485,7 +483,7 @@ subroutine material_parseCrystallite(fileUnit,myPart)
|
||||||
material_Ncrystallite = Nsections
|
material_Ncrystallite = Nsections
|
||||||
if (Nsections < 1_pInt) call IO_error(160_pInt,ext_msg=myPart)
|
if (Nsections < 1_pInt) call IO_error(160_pInt,ext_msg=myPart)
|
||||||
|
|
||||||
allocate(crystallite_name(Nsections)); crystallite_name=''
|
allocate(crystallite_name(Nsections)); crystallite_name = ''
|
||||||
allocate(crystallite_Noutput(Nsections), source=0_pInt)
|
allocate(crystallite_Noutput(Nsections), source=0_pInt)
|
||||||
|
|
||||||
crystallite_Noutput = IO_countTagInPart(fileUnit,myPart,'(output)',Nsections)
|
crystallite_Noutput = IO_countTagInPart(fileUnit,myPart,'(output)',Nsections)
|
||||||
|
@ -663,7 +661,7 @@ subroutine material_parseTexture(fileUnit,myPart)
|
||||||
|
|
||||||
allocate(texture_name(Nsections)); texture_name=''
|
allocate(texture_name(Nsections)); texture_name=''
|
||||||
allocate(texture_ODFfile(Nsections)); texture_ODFfile=''
|
allocate(texture_ODFfile(Nsections)); texture_ODFfile=''
|
||||||
allocate(texture_symmetry(Nsections), source=0_pInt)
|
allocate(texture_symmetry(Nsections), source=1_pInt)
|
||||||
allocate(texture_Ngauss(Nsections), source=0_pInt)
|
allocate(texture_Ngauss(Nsections), source=0_pInt)
|
||||||
allocate(texture_Nfiber(Nsections), source=0_pInt)
|
allocate(texture_Nfiber(Nsections), source=0_pInt)
|
||||||
|
|
||||||
|
@ -682,6 +680,7 @@ subroutine material_parseTexture(fileUnit,myPart)
|
||||||
section = 0_pInt ! - " -
|
section = 0_pInt ! - " -
|
||||||
gauss = 0_pInt ! - " -
|
gauss = 0_pInt ! - " -
|
||||||
fiber = 0_pInt ! - " -
|
fiber = 0_pInt ! - " -
|
||||||
|
|
||||||
do while (trim(line) /= IO_EOF .and. IO_lc(IO_getTag(line,'<','>')) /= myPart) ! wind forward to myPart
|
do while (trim(line) /= IO_EOF .and. IO_lc(IO_getTag(line,'<','>')) /= myPart) ! wind forward to myPart
|
||||||
line = IO_read(fileUnit)
|
line = IO_read(fileUnit)
|
||||||
enddo
|
enddo
|
||||||
|
@ -711,17 +710,17 @@ subroutine material_parseTexture(fileUnit,myPart)
|
||||||
tag = IO_lc(IO_stringValue(line,positions,j+1_pInt))
|
tag = IO_lc(IO_stringValue(line,positions,j+1_pInt))
|
||||||
select case (tag)
|
select case (tag)
|
||||||
case('x', '+x')
|
case('x', '+x')
|
||||||
texture_transformation(j,1:3,section) = (/ 1.0_pReal, 0.0_pReal, 0.0_pReal/) ! original axis is now +x-axis
|
texture_transformation(j,1:3,section) = [ 1.0_pReal, 0.0_pReal, 0.0_pReal] ! original axis is now +x-axis
|
||||||
case('-x')
|
case('-x')
|
||||||
texture_transformation(j,1:3,section) = (/-1.0_pReal, 0.0_pReal, 0.0_pReal/) ! original axis is now -x-axis
|
texture_transformation(j,1:3,section) = [-1.0_pReal, 0.0_pReal, 0.0_pReal] ! original axis is now -x-axis
|
||||||
case('y', '+y')
|
case('y', '+y')
|
||||||
texture_transformation(j,1:3,section) = (/ 0.0_pReal, 1.0_pReal, 0.0_pReal/) ! original axis is now +y-axis
|
texture_transformation(j,1:3,section) = [ 0.0_pReal, 1.0_pReal, 0.0_pReal] ! original axis is now +y-axis
|
||||||
case('-y')
|
case('-y')
|
||||||
texture_transformation(j,1:3,section) = (/ 0.0_pReal,-1.0_pReal, 0.0_pReal/) ! original axis is now -y-axis
|
texture_transformation(j,1:3,section) = [ 0.0_pReal,-1.0_pReal, 0.0_pReal] ! original axis is now -y-axis
|
||||||
case('z', '+z')
|
case('z', '+z')
|
||||||
texture_transformation(j,1:3,section) = (/ 0.0_pReal, 0.0_pReal, 1.0_pReal/) ! original axis is now +z-axis
|
texture_transformation(j,1:3,section) = [ 0.0_pReal, 0.0_pReal, 1.0_pReal] ! original axis is now +z-axis
|
||||||
case('-z')
|
case('-z')
|
||||||
texture_transformation(j,1:3,section) = (/ 0.0_pReal, 0.0_pReal,-1.0_pReal/) ! original axis is now -z-axis
|
texture_transformation(j,1:3,section) = [ 0.0_pReal, 0.0_pReal,-1.0_pReal] ! original axis is now -z-axis
|
||||||
case default
|
case default
|
||||||
call IO_error(157_pInt,section)
|
call IO_error(157_pInt,section)
|
||||||
end select
|
end select
|
||||||
|
|
Loading…
Reference in New Issue