similar structure for building blocks
This commit is contained in:
parent
510b55df50
commit
e974bb9c43
|
@ -89,8 +89,8 @@ for x in range(options.grid[0]):
|
|||
geom=damask.Geom(microstructure,options.size,
|
||||
homogenization=options.homogenization,
|
||||
comments=[scriptID + ' ' + ' '.join(sys.argv[1:])])
|
||||
|
||||
damask.util.croak(geom)
|
||||
|
||||
if name is None:
|
||||
sys.stdout.write(str(geom.show()))
|
||||
else:
|
||||
|
|
|
@ -134,7 +134,8 @@ for i in range(3,np.max(microstructure)):
|
|||
config_header.append('[Point{}]'.format(i-2))
|
||||
config_header.append('(gauss)\tphi1 {:.2f}\tPhi {:.2f}\tphi2 0'.format(Alpha[i],Beta[i]))
|
||||
|
||||
header = [scriptID + ' ' + ' '.join(sys.argv[1:])] + config_header
|
||||
header = [scriptID + ' ' + ' '.join(sys.argv[1:])]\
|
||||
+ config_header
|
||||
geom = damask.Geom(microstructure.reshape(grid),
|
||||
size,-size/2,
|
||||
homogenization=options.homogenization,comments=header)
|
||||
|
|
|
@ -194,15 +194,17 @@ parser.set_defaults(pos = 'pos',
|
|||
normalized = True,
|
||||
config = True,
|
||||
)
|
||||
|
||||
(options,filenames) = parser.parse_args()
|
||||
|
||||
# --- loop over input files -------------------------------------------------------------------------
|
||||
|
||||
if filenames == []: filenames = [None]
|
||||
|
||||
for name in filenames:
|
||||
table = damask.ASCIItable(name = name, readonly = True)
|
||||
damask.util.report(scriptName,name)
|
||||
|
||||
table = damask.ASCIItable(name = name, readonly = True)
|
||||
|
||||
|
||||
# --- read header ----------------------------------------------------------------------------
|
||||
|
||||
|
|
Loading…
Reference in New Issue