edit_source_from_file#
- Hfss.edit_source_from_file(assignment, file_name, is_time_domain=True, x_scale=1, y_scale=1, impedance=50, data_format='Power', encoding='utf-8')[source]#
Edit a source from file data. File data is a csv containing either frequency data or time domain data that will be converted through FFT.
- Parameters:
- assignment
str
Port name and mode. For example,
"Port1:1"
. The port name must be defined if the solution type is other than Eigenmodal.- file_name
str
Full name of the input file.
- is_time_domainbool,
optional
Either if the input data is Time based or Frequency Based. Frequency based data are Mag/Phase (deg).
- x_scale
float
,optional
Scaling factor for x axis.
- y_scale
float
,optional
Scaling factor for y axis.
- impedance
float
,optional
Excitation impedance. Default is 50.
- data_format
str
,optional
Either “Power”, “Current” or “Voltage”.
- encoding
str
,optional
Csv file encoding.
- assignment
- Returns: