export_matrix#

Maxwell2d.export_matrix(matrix_name, output_file, setup=None, is_post_processed=False, default_adaptive='LastAdaptive', is_format_default=True, width=12, precision=6, is_exponential=False, use_independent_nominal_values=True)#

Export matrix after solving.

This method exports matrix data from the Matrix tab in the Solutions window to a .txt file.

Parameters:
matrix_namestr

Matrix name to be exported.

output_fileor pathlib.Path

Output file path to export matrix file to. Extension must be .txt.

is_format_defaultbool, optional

Whether the exported format is default or not. If False the custom format is set (no exponential).

widthint, optional

Column width.

precisionint, optional

Decimal precision number.

is_exponentialbool, optional

Whether the format number is exponential or not.

setupstr, optional

Name of the setup. If not provided, the active setup is used.

default_adaptivestr, optional

Adaptive setup name. The default is "LastAdaptive".

is_post_processedbool, optional

Boolean to check if it is post processed. The default value is False.

Returns:
bool

True when successful, False when failed.

References

>>> oanalysis.ExportSolnData