matflow.param_classes.seeds.MicrostructureSeeds#

class matflow.param_classes.seeds.MicrostructureSeeds(position: numpy.ndarray, box_size: numpy.ndarray, phase_label: str, orientations: matflow.param_classes.orientations.Orientations | None = None, random_seed: int | None = None)#

Bases: ParameterValue

Methods

from_JSON_like

For custom initialisation via YAML or JSON.

from_file

from_random

to_dict

Attributes

num_seeds

orientations

random_seed

position

box_size

phase_label

Parameters:
box_size: ndarray#
classmethod from_JSON_like(position, orientations=None, **kwargs)#

For custom initialisation via YAML or JSON.

classmethod from_file(path, box_size, phase_label, number=None, start_index=0, delimiter=' ')#
classmethod from_random(num_seeds, box_size, phase_label, random_seed=None, orientations=None)#
property num_seeds#
orientations: Orientations | None = None#
phase_label: str#
position: ndarray#
random_seed: int | None = None#
to_dict()#