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
.rttblfile in a format compatible with SBR+ native tables.- Parameters:
- setup_sweep
str Name of the setup and sweep.
- theta_name
str Name of the variation parameter representing the theta angle.
- phi_name
str Name of the variation parameter representing the phi angle.
- output_file
strorpathlib.Path,optional Path to save the output
.rttblfile. 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.
- setup_sweep
- Returns:
pathlib.PathThe path to the generated .rttbl file containing Fresnel coefficients.