# impedance_data_fitting#

Bases:

`TUIMenu`

Enters the impedance data fitting menu, which provides text commands that can be helpful when you are using the impedance boundary condition (IBC).

**Methods:**`absorption_data`

(*args, **kwargs)Reads an input file with experimental absorption coefficient data in the frequency domain and then computes the terms needed for an approximation of the reflection coefficient as a series of poles / residues in the time domain.

`convergence_tolerance`

(*args, **kwargs)Sets the convergence tolerance, which is an accuracy that is used for completing the iterative fitting procedure in the calculations performed from the define/boundary-conditions/impedance-data-fitting/ text command menu.

`impedance_data`

(*args, **kwargs)Reads an input file with experimental specific impedance data in the frequency domain and then computes the terms needed for an approximation of the reflection coefficient as a series of poles / residues in the time domain.

`import_parameters`

(*args, **kwargs)Reads a pole / residue file with impedance parameters in the time domain and applies them to a specified boundary condition.

`iterations`

(*args, **kwargs)Sets the number of internal iterations used for the calculations performed from the define/boundary-conditions/impedance-data-fitting/ text command menu.

`reflection_data`

(*args, **kwargs)Reads an input file with experimental reflection coefficient data in the frequency domain and then computes the terms needed for an approximation of the reflection coefficient as a series of poles / residues in the time domain.

`residue_tolerance`

(*args, **kwargs)Sets the residue tolerance, which is the minimum value of residues that are kept in the fitting performed from the define/boundary-conditions/impedance-data-fitting/ text command menu.

`verbosity`

(*args, **kwargs)Sets the verbosity of the progress messages during the fitting performed from the define/boundary-conditions/impedance-data-fitting/ text command menu.

Reads an input file with experimental absorption coefficient data in the frequency domain and then computes the terms needed for an approximation of the reflection coefficient as a series of poles / residues in the time domain. The resulting terms are printed in the console, and can be written to a pole / residue file (which can be imported and the impedance parameters applied to a boundary condition using the define/boundary-conditions/impedance-data-fitting/import-parameters text command). You can also write a file with fitted frequency / impedance data, which can be compared to the input data to evaluate how well it fits.

Sets the convergence tolerance, which is an accuracy that is used for completing the iterative fitting procedure in the calculations performed from the define/boundary-conditions/impedance-data-fitting/ text command menu. By default, the tolerance is set to 1e-6.

Reads an input file with experimental specific impedance data in the frequency domain and then computes the terms needed for an approximation of the reflection coefficient as a series of poles / residues in the time domain. The resulting terms are printed in the console, and can be written to a pole / residue file (which can be imported and the impedance parameters applied to a boundary condition using the define/boundary-conditions/impedance-data-fitting/import-parameters text command). You can also write a file with fitted frequency / impedance data, which can be compared to the input data to evaluate how well it fits.

Reads a pole / residue file with impedance parameters in the time domain and applies them to a specified boundary condition.

Sets the number of internal iterations used for the calculations performed from the define/boundary-conditions/impedance-data-fitting/ text command menu. By default, the number of iterations is set to 20.

Reads an input file with experimental reflection coefficient data in the frequency domain and then computes the terms needed for an approximation of the reflection coefficient as a series of poles / residues in the time domain. The resulting terms are printed in the console, and can be written to a pole / residue file (which can be imported and the impedance parameters applied to a boundary condition using the define/boundary-conditions/impedance-data-fitting/import-parameters text command). You can also write a file with fitted frequency / impedance data, which can be compared to the input data to evaluate how well it fits.

Sets the residue tolerance, which is the minimum value of residues that are kept in the fitting performed from the define/boundary-conditions/impedance-data-fitting/ text command menu. This residue check helps to eliminate parasitic poles. By default, the tolerance is set to 1e-6.

Sets the verbosity of the progress messages during the fitting performed from the define/boundary-conditions/impedance-data-fitting/ text command menu. Setting this to 1 results in messages being printed in the console as the fitting calculation progresses. The default value of 0 suppresses this output.