distance for periodic images in internal stress calculation was incorrect
This commit is contained in:
parent
08da2b5e4d
commit
c36968fc68
|
@ -984,9 +984,8 @@ if (.not. phase_localConstitution(phase)) then
|
||||||
.and. deltaX == 0 .and. deltaY == 0 .and. deltaZ == 0) then
|
.and. deltaX == 0 .and. deltaY == 0 .and. deltaZ == 0) then
|
||||||
cycle ! this is myself
|
cycle ! this is myself
|
||||||
endif
|
endif
|
||||||
neighboring_ipCoords = mesh_ipCenterOfGravity(1:3,neighboring_ip,neighboring_el) + dble(deltaX) * meshSize(1) &
|
neighboring_ipCoords = mesh_ipCenterOfGravity(1:3,neighboring_ip,neighboring_el) &
|
||||||
+ dble(deltaY) * meshSize(2) &
|
+ (/dble(deltaX), dble(deltaY), dble(deltaZ)/) * meshSize
|
||||||
+ dble(deltaZ) * meshSize(3)
|
|
||||||
connection = neighboring_ipCoords - ipCoords
|
connection = neighboring_ipCoords - ipCoords
|
||||||
distance = sqrt(sum(connection ** 2.0_pReal))
|
distance = sqrt(sum(connection ** 2.0_pReal))
|
||||||
if (.not. phase_localConstitution(neighboring_phase) &
|
if (.not. phase_localConstitution(neighboring_phase) &
|
||||||
|
|
Loading…
Reference in New Issue