get_evaluated_value#

Circuit.get_evaluated_value(name, units=None)[source]#

Retrieve the evaluated value of a design property or project variable in SI units if no unit is provided.

Parameters:
namestr

Name of the design property or project variable.

unitsstr, optional

Name of the unit to use for rescaling. The default is None, in which case SI units are applied by default.

Returns:
float

Evaluated value of the design property or project variable in SI units.

References

>>> oDesign.GetNominalVariation
>>> oDesign.GetVariationVariableValue

Examples

>>> M3D = Maxwell3d()
>>> M3D["p1"] = "10mm"
>>> M3D["p2"] = "20mm"
>>> M3D["p3"] = "P1 * p2"
>>> eval_p3 = M3D.get_evaluated_value("p3")