Skip to content

calibrationkey

ModelType module-attribute

ModelType = Union[
    "MicromechanicalBase",
    "ElastoplasticModel",
    "ElasticityBase",
    "YieldFunction",
]

CalculationOptionKey

Bases: CalibrationKey

A calibration key for the calculation option, must be a tuple of (option name,).

option property

option: str

The calculation option name.

get

get(model: ModelType) -> float

set

set(model: ModelType, value: float)

CalibrationKey

Bases: tuple, ABC

Base class for user-defined calibration keys, defines the setup method for setting the value to the model.

experiment instance-attribute

experiment: 'Experiment'

Current experiment.

__repr__

__repr__() -> str

__str__

__str__() -> str

get abstractmethod

get(model: ModelType) -> float

Get the value from the model.

parse classmethod

parse(key: Self | str) -> Self | str

Parse the calibration key from the form of module:qualname(key1,key2) to the calibration key object if it can be parsed, otherwise return the original key.

PARAMETER DESCRIPTION
key

The input string.

TYPE: CalibrationKey | str

RETURNS DESCRIPTION
CalibrationKey | str

The calibration key object or the input string.

set abstractmethod

set(model: ModelType, value: float)

Set the value to the model.

ExperimentSpecificKey

Bases: CalibrationKey

A calibration key that is specific to an experiment, must be a tuple of (experiment name, parameter name), the experiment name can be a wildcard pattern.

experiment_name property

experiment_name: str

The experiment name.

parameter property

parameter: str

The parameter name.

get

get(model: ModelType) -> float

match

match() -> bool

Check if the experiment name matches the pattern.

set

set(model: ModelType, value: float)

FabricCoefficientKey

Bases: CalibrationKey

A calibration key for the fabric coefficient, must be a tuple of (parameter name,).

coefficient property

coefficient: str

The fabric coefficient.

get

get(model: ModelType) -> float

set

set(model: ModelType, value: float)

MaterialFabricCoefficientKey

Bases: CalibrationKey

A calibration key for the material fabric coefficient, must be a tuple of (material name, parameter name).

coefficient property

coefficient: str

The parameter name.

parameter property

parameter: str

The material name.

get

get(model: ModelType) -> float

set

set(model: ModelType, value: float)