smash.Model.get_serr_mu_parameters_bounds#

Model.get_serr_mu_parameters_bounds()[source]#

Get the boundary condition for the Model structural error mu parameters.

Returns:
boundsdict[str, tuple[float, float]]

A dictionary representing the boundary condition for each structural error mu parameter.

Examples

>>> from smash.factory import load_dataset
>>> setup, mesh = load_dataset("cance")

Set the structural error mu mapping to 'Linear' (see Model). Default value in the Cance dataset is 'Zero' (equivalent to no mu mapping).

>>> setup["serr_mu_mapping"] = "Linear"
>>> model = smash.Model(setup, mesh)
>>> model.get_serr_mu_parameters_bounds()
{'mg0': (-1000000.0, 1000000.0), 'mg1': (-1000000.0, 1000000.0)}

Note

This method allows you to find out the default bounds for the structural error mu parameters. These bounds are used during optimization if they are not modified in the optimization method argument.