is_real_only#

SolutionData.is_real_only(expression: str = None) bool#

Check if the expression has only real values or not.

Parameters:
expressionstr, optional

Name of the expression. The default is None, in which case the active expression is used.

Returns:
bool

True if the Solution Data for specific expression contains only real values.

Examples

>>> from ansys.aedt.core.visualization.post.solution_data import SolutionData
>>> obj = SolutionData()
>>> obj.is_real_only(expression="dB(S(1,1))")