export#
- ScalarComplex.export(output_file: str | None, name: str | None = None, **kwargs) str | bool#
Register and export this expression to a field file.
Extra keyword arguments are forwarded to
FieldsCalculator.export`(``solution`(),sample_points,grid_type,intrinsics…).is_vectoris set automatically.- Parameters:
- Returns:
Examples
Export a field quantity through the bound calculator.
>>> calc = type( ... "Calc", ... (), ... { ... "design_type": "HFSS", ... "add_expression": staticmethod(lambda *args, **kwargs: kwargs["name"]), ... "export": staticmethod(lambda **kwargs: kwargs["output_file"]), ... }, ... )() >>> from ansys.aedt.core.visualization.post.field_calculator_expressions import FieldExpressions >>> fx = FieldExpressions(calc) >>> fx.vector("E").export("out.fld", name="vec_e") 'out.fld'