@@ -212,7 +212,7 @@ def _load(fname: Union[str, Path], label: str) -> 'GeomGrid':
212
212
Returns
213
213
-------
214
214
loaded : damask.GeomGrid
215
- GeomGrid -based geometry from file.
215
+ Grid -based geometry from file.
216
216
217
217
"""
218
218
v = VTK .load (fname if str (fname ).endswith ('.vti' ) else str (fname )+ '.vti' )
@@ -241,7 +241,7 @@ def load(fname: Union[str, Path]) -> 'GeomGrid':
241
241
Returns
242
242
-------
243
243
loaded : damask.GeomGrid
244
- GeomGrid -based geometry from file.
244
+ Grid -based geometry from file.
245
245
246
246
"""
247
247
return GeomGrid ._load (fname ,'material' )
@@ -261,7 +261,7 @@ def load_SPPARKS(fname: Union[str, Path]) -> 'GeomGrid':
261
261
Returns
262
262
-------
263
263
loaded : damask.GeomGrid
264
- GeomGrid -based geometry from file.
264
+ Grid -based geometry from file.
265
265
266
266
Notes
267
267
-----
@@ -289,7 +289,7 @@ def load_ASCII(fname)-> 'GeomGrid':
289
289
Returns
290
290
-------
291
291
loaded : damask.GeomGrid
292
- GeomGrid -based geometry from file.
292
+ Grid -based geometry from file.
293
293
294
294
"""
295
295
warnings .warn ('Support for ASCII-based geom format will be removed in DAMASK 3.0.0' , DeprecationWarning ,2 )
@@ -362,7 +362,7 @@ def load_Neper(fname: Union[str, Path]) -> 'GeomGrid':
362
362
Returns
363
363
-------
364
364
loaded : damask.GeomGrid
365
- GeomGrid -based geometry from file.
365
+ Grid -based geometry from file.
366
366
367
367
Notes
368
368
-----
@@ -437,15 +437,24 @@ def load_DREAM3D(fname: Union[str, Path],
437
437
Returns
438
438
-------
439
439
loaded : damask.GeomGrid
440
- GeomGrid -based geometry from file.
440
+ Grid -based geometry from file.
441
441
442
442
Notes
443
443
-----
444
- damask.ConfigMaterial.load_DREAM3D gives the corresponding
445
- material definition.
446
-
447
- For cell-wise data, only unique combinations of
448
- orientation and phase are considered.
444
+ A grain-wise geometry definition is based on segmented data from the
445
+ DREAM.3D file. This data is typically available when the microstructure
446
+ was synthetically created. In cell-wise representations, cells having
447
+ the same orientation and phase are grouped. Since synthetically created
448
+ microstructures have typically no in-grain scatter, cell-wise grids
449
+ can appear to be segmented.
450
+
451
+ damask.ConfigMaterial.load_DREAM3D creates the corresponding
452
+ material definition. Since the numbering of materials in cell-wise
453
+ and grain-wise grids is different, it is imperative to use the same
454
+ mode for both load_DREAM3D functions. That means, if the "feature_IDs"
455
+ argument is used for this function, the correct material configuration
456
+ is only obtained if the "grain_data" argument is used when calling
457
+ damask.ConfigMaterial.load_DREAM3D.
449
458
450
459
"""
451
460
with h5py .File (fname , 'r' ) as f :
@@ -493,7 +502,7 @@ def from_table(table: Table,
493
502
Returns
494
503
-------
495
504
new : damask.GeomGrid
496
- GeomGrid -based geometry from values in table.
505
+ Grid -based geometry from values in table.
497
506
498
507
"""
499
508
cells ,size ,origin = grid_filters .cellsSizeOrigin_coordinates0_point (table .get (coordinates ))
@@ -548,7 +557,7 @@ def from_Laguerre_tessellation(cells: IntSequence,
548
557
Returns
549
558
-------
550
559
new : damask.GeomGrid
551
- GeomGrid -based geometry from tessellation.
560
+ Grid -based geometry from tessellation.
552
561
553
562
"""
554
563
weights_p : FloatSequence
@@ -604,7 +613,7 @@ def from_Voronoi_tessellation(cells: IntSequence,
604
613
Returns
605
614
-------
606
615
new : damask.GeomGrid
607
- GeomGrid -based geometry from tessellation.
616
+ Grid -based geometry from tessellation.
608
617
609
618
"""
610
619
coords = grid_filters .coordinates0_point (cells ,size ).reshape (- 1 ,3 )
@@ -691,7 +700,7 @@ def from_minimal_surface(cells: IntSequence,
691
700
Returns
692
701
-------
693
702
new : damask.GeomGrid
694
- GeomGrid -based geometry from definition of minimal surface.
703
+ Grid -based geometry from definition of minimal surface.
695
704
696
705
Notes
697
706
-----
0 commit comments