pymead.core.param.DesVar#
- class DesVar(value: float, name: str, lower: float | None = None, upper: float | None = None, sub_container: str = 'desvar', setting_from_geo_col: bool = False, point=None, root=None, rotation_handle=None, enabled: bool = True, equation_str: str | None = None, assignable: bool = True, bspline=None)[source]#
Bases:
ParamDesign variable class; subclasses the base-level Param. Adds lower and upper bound default behavior.
- __init__(value: float, name: str, lower: float | None = None, upper: float | None = None, sub_container: str = 'desvar', setting_from_geo_col: bool = False, point=None, root=None, rotation_handle=None, enabled: bool = True, equation_str: str | None = None, assignable: bool = True, bspline=None)[source]#
- Parameters:
value (float) – Starting value of the design variable
name (str) – Name of the design variable
lower (float or None) – Lower bound for the design variable. If
None, a reasonable value is chosen. Default:None.upper (float or None) – Upper bound for the design variable. If
None, a reasonable value is chosen. Default:None.setting_from_geo_col (bool) – Whether this method is being called directly from the geometric collection. Default:
False.
Methods
Attributes
Whether this design variable can be assigned a value from a list of design variable values.