get_fresnel_coefficients#

Hfss.get_fresnel_coefficients(setup_sweep: str, theta_name: str, phi_name: str, output_file: str | Path = None, is_isotropic: bool | None = None) Path#

Generate a Fresnel reflection or reflection/transmission coefficient table from simulation data.

This method calculates the Fresnel reflection (and optionally transmission) coefficients for TE and TM modes using S-parameters between Floquet ports in a HFSS simulation. The results are written to an .rttbl file in a format compatible with SBR+ native tables.

Parameters:
setup_sweepstr

Name of the setup and sweep.

theta_namestr

Name of the variation parameter representing the theta angle.

phi_namestr

Name of the variation parameter representing the phi angle.

output_filestr or pathlib.Path, optional

Path to save the output .rttbl file. If not provided, a file will be generated automatically in the toolkit directory.

is_isotropicbool, optional
Whether to get isotropic or anisotropic coefficients.

If None, the method will attempt to determine isotropy based on the parametric sweep.

Returns:
pathlib.Path

The path to the generated .rttbl file containing Fresnel coefficients.