modify_parameter#

variables.modify_parameter(p0: str) int#

Modifies a parameter of a general function computed variable.

Currently only used for modifying the phase angle of a complex transient response variable.
Args:
p0:

‘varname’ computed variable’s name

p1:

‘num’ parameter number for the computed variable

p2:

‘string or value’ proper modified string, or number for the parameter specified

Examples:
ensight.variables.activate_all()
ensight.part.select_all()
ensight.variables.evaluate("CmplxTransResp = CmplxTransResp(plist,c_scalar,90.0)")
ensight.function.palette("CmplxTransResp")
ensight.variables.modify_parameter("CmplxTransResp param 3=1.1700e+02")
Returns:

zero on success, non-zero on error