validate_expression#

FieldsCalculator.validate_expression(expression: dict) dict | bool#

Validate expression file against the schema.

The default schema can be found in src/ansys/aedt/core/misc/config.schema.json.

Parameters:
expressiondict

Expression defined as a dictionary.

Returns:
dict or bool

Expression if the input expression is valid, False otherwise.

Examples

>>> from ansys.aedt.core.visualization.post.fields_calculator import FieldsCalculator
>>> obj = FieldsCalculator()
>>> obj.validate_expression(expression="dB(S(1,1))")