Merged branch development into development
This commit is contained in:
commit
eb69d6f4f1
|
@ -126,9 +126,9 @@ for name in filenames:
|
||||||
primPos = invRotation*gridpos # rotate back to primitive coordinate system
|
primPos = invRotation*gridpos # rotate back to primitive coordinate system
|
||||||
if np.dot(mask*primPos/dim,mask*primPos/dim) <= 0.25 and \
|
if np.dot(mask*primPos/dim,mask*primPos/dim) <= 0.25 and \
|
||||||
np.all(abs((1.-mask)*primPos/dim) <= 0.5): # inside ellipsoid and inside box
|
np.all(abs((1.-mask)*primPos/dim) <= 0.5): # inside ellipsoid and inside box
|
||||||
microstructure[(gridpos[0]+options.center[0])%info['grid'][0],
|
microstructure[int((gridpos[0]+options.center[0])%info['grid'][0]),
|
||||||
(gridpos[1]+options.center[1])%info['grid'][1],
|
int((gridpos[1]+options.center[1])%info['grid'][1]),
|
||||||
(gridpos[2]+options.center[2])%info['grid'][2]] = options.fill # assign microstructure index
|
int((gridpos[2]+options.center[2])%info['grid'][2])] = options.fill # assign microstructure index
|
||||||
|
|
||||||
newInfo['microstructures'] = microstructure.max()
|
newInfo['microstructures'] = microstructure.max()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue