Analysis Module
Analysis code for wireless power transfer systems.
- class wpt_tools.analysis.nw_tools
Bases:
objectClass for analyzing wireless power transfer systems based on touchstone (.snp) files.
- nw
Network object representing the touchstone file.
- Type:
skrf.network.Network
- f_narrow_index_start
(Description of f_narrow_index_start)
- Type:
type
- f_narrow_index_stop
(Description of f_narrow_index_stop)
- Type:
type
- target_f_index
(Description of target_f_index)
- Type:
type
- sweeppoint
Sweep points in the frequency range of the network.
- Type:
numpy.ndarray
- range_f
(Description of range_f)
- Type:
type
- target_f
(Description of target_f)
- Type:
type
- efficiency_load_analysis(rx_port=2, show_plot=1, show_data=1)
Perform efficiency and optimal load analysis (for general 2-port networks).
The function is unstable when far from the resonant frequency. Reference: Y. Narusue, et al., “Load optimization factors for analyzing the efficiency of wireless power transfer systems using two-port network parameters,” IEICE ELEX, 2020.
- Parameters:
rx_port (int, optional) – The port to receive on, either 1 or 2 (default is 2).
show_plot (int, optional) – Whether to show a plot of the analysis (default is 1).
show_data (int, optional) – Whether to print data from the analysis (default is 1).
- Returns:
max_f_plot (float) – Frequency at maximum efficiency.
max_eff_opt (float) – Maximum efficiency.
max_r_opt (float) – Optimum resistance for maximum efficiency.
max_x_opt (float) – Optimum reactance for maximum efficiency.
- Raises:
SystemExit – If the method ‘set_f_target_range’ was not executed before this operation.
- import_touchstone(filename)
Load touchstone file into the network.
- Parameters:
filename (str) – Name of the touchstone file.
- Raises:
ValueError – If filename is not provided or the file does not exist.
- optimal_load_plot(min_rez, min_imz, max_rez, max_imz, step_rez, step_imz, input_voltage, rx_port=2)
- plot_z_full()
- plot_z_narrow_fit(show_plot=1, show_fit=1)
- rxc_filter_calc(rx_port, rload, c_network='CpCsRl')
- set_f_target_range(target_f, range_f)
Set the target frequency range for the analysis.
This attempts to find an index range close to the target frequency with a given range. The closest frequency is stored in self.target_f_index.
- Parameters:
target_f (float) – Target frequency.
range_f (float) – The frequency range centered around the target frequency.
Note
This method relies on previously imported frequencies via the import_touchstone method. If no frequency data is found, this function does nothing.