export_matrix#

SetupMaxwell.export_matrix(matrix_type, matrix_name, output_file, is_format_default=True, width=8, precision=2, is_exponential=False, setup=None, default_adaptive='LastAdaptive', is_post_processed=False)#

Export R/L or Capacitance matrix after solving.

Parameters:
matrix_typestr

Matrix type to be exported. The options are "RL" or "C".

matrix_namestr

Matrix name to be exported.

output_filestr

Output file path to export R/L 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 in exported .txt file.

precisionint, optional

Decimal precision number in exported *.txt file.

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 type. The default is "LastAdaptive".

is_post_processedbool, optional

Boolean to check if it is post processed. Default value is False.

Returns:
bool

True when successful, False when failed.