graintrace.synthetic_hedm_generator#

Generate synthetic FF/NF HEDM datasets from a NEPER crystal (SyntheticHEDMGenerator).

class graintrace.synthetic_hedm_generator.SyntheticHEDMGenerator(output_dir, ff_bounding_box, ff_strain_stdev, ff_grain_characteristics, nf_bounding_box, nf_dz, nf_spacing, random_seed=42)[source]#

Bases: object

Build synthetic far-field and near-field HEDM data for stitching/CPFE tests.

run(ff_iterations=10)[source]#

Generate FF then NF datasets and report the NF point count.

Parameters:

ff_iterations (int)

Return type:

None

generate_ff(iterations=10)[source]#

Generate FF/neper/voronoi.csv and FF/ff.csv.

Parameters:

iterations (int)

Return type:

None

generate_nf()[source]#

Generate near-field layered CSVs NF/layer_XXX.csv (columns X, Y, Eul1, Eul2, Eul3).

Return type:

None