homogenization in material was missing
This commit is contained in:
parent
e61d86aa17
commit
005fde2504
|
@ -157,7 +157,8 @@ class ConfigMaterial(Config):
|
|||
names = np.array([s.decode() for s in f[os.path.join(b,cell_ensemble_data,phase_names)]])
|
||||
phase = names[phase]
|
||||
|
||||
material = {k:np.atleast_1d(v[idx].squeeze()) for k,v in zip(['O','phase'],[O,phase])}
|
||||
homog_types = np.array(['direct']*phase.size) #assuming simpler homogenization scheme
|
||||
material = {k:np.atleast_1d(v[idx].squeeze()) for k,v in zip(['O','phase','homogenization'],[O,phase,homog_types])}
|
||||
return ConfigMaterial({'phase':{k if isinstance(k,int) else str(k):'t.b.d.' for k in np.unique(phase)},
|
||||
'homogenization':{'direct':{'N_constituents':1}}}).material_add(**material)
|
||||
|
||||
|
|
Loading…
Reference in New Issue