load_expression_file#

FieldsCalculator.load_expression_file(input_file)[source]#

Load expressions from an external TOML file.

Parameters:
input_filestr

Full path to the file.

Returns:
dict

Dictionary of available expressions.

Examples

>>> from ansys.aedt.core import Hfss
>>> hfss = Hfss()
>>> my_toml = os.path.join("my_path_to_toml", "my_toml.toml")
>>> new_catalog = hfss.post.fields_calculator.load_expression_file(my_toml)
>>> hfss.release_desktop(False, False)