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_name
str Matrix name to be exported.
- output_file
orpathlib.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).
- width
int,optional Column width.
- precision
int,optional Decimal precision number.
- is_exponentialbool,
optional Whether the format number is exponential or not.
- setup
str,optional Name of the setup. If not provided, the active setup is used.
- default_adaptive
str,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.
- matrix_name
- Returns:
- bool
Truewhen successful,Falsewhen failed.
References
>>> oanalysis.ExportSolnData