export_matrix_data#
- Q2d.export_matrix_data(file_name, problem_type=None, variations=None, setup=None, sweep=None, reduce_matrix=None, r_unit='ohm', l_unit='nH', c_unit='pF', g_unit='mho', freq=None, freq_unit=None, matrix_type=None, export_ac_dc_res=False, precision=None, field_width=None, use_sci_notation=True, length_setting='Distributed', length='1meter')#
Export matrix data.
- Parameters:
- file_name
str
Full path to save the matrix data to. Options for file extensions are:
*.m
,*.lvl
,*.csv
, and*.txt
.- problem_type
str
,optional
Problem type. The default value is
None
, in which case"C"
is used. Options are"C"
,"AC RL"
, and"DC RL"
.- variations
str
,optional
Design variation. The default is
None
, in which case the current nominal variation is used.- setup
str
,optional
Setup name. The default value is
None
, in which case the first analysis setup is used.- sweep
str
,optional
Solution frequency. The default is
None
, in which case the default adaptive is used.- reduce_matrix
str
,optional
Name of the matrix to display. Default value is
"Original"
.- r_unit
str
,optional
Resistance unit value. The default value is
"ohm"
.- l_unit
str
,optional
Inductance unit value. The default value is
"nH"
.- c_unit
str
,optional
Capacitance unit value. Default value is
"pF"
.- g_unit
str
,optional
Conductance unit value. The default value is
"mho"
.- freq
str
,optional
Selected frequency. The default value is
"0Hz"
.- freq_unit
str
,optional
Frequency unit. The default value is
None
, in which case the default unit is used.- matrix_type
str
,optional
Matrix type. The default is
None
. Options are"Couple"
,"Maxwell"
, and"Spice"
.- export_ac_dc_resbool,
optional
Whether to add the AC and DC resistance. The default is
False
.- precision
int
,optional
Precision format. The default value is
15
.- field_width
int
,optional
Field Width. The default value is
20
.- use_sci_notationbool,
optional
Use sci notation. Whether to use scientific notation. The default value is
True
. WhenFalse
, the display format is used.- length_setting
str
,optional
Length setting if the design si 2D. The default value is
"Distributed"
.- length
str
,optional
Length. The default value is
"1meter"
.
- file_name
- Returns:
- bool
True
when successful,False
when failed.