Hello,
I am trying to set material properties via a python script for an iterative set of simulations. The script runs without error, but when I view the material properties in HFSS they are unchanged, and the simulation results don't change (if I change the material properties directly in HFSS the simulation results do change).
Code snippet
from ansys.aedt.core import Desktop
from ansys.aedt.core import settings
from ansys.aedt.core import Hfss
mat = app.materials["Manganese dioxode (MnO2)"]
MnO2_perm_static = mat.permittivity
MnO2_perm = np.ones((num_points,2))
MnO2_cond = np.ones((num_points,2))
MnO2_perm[:,0] = f_vals
MnO2_perm[:,1] = 1.0
MnO2_cond[:,0] = f_vals
MnO2_cond[:,1] = 1
mat.permittivity.value = MnO2_perm
mat.conductivity.value = MnO2_cond
mat.dielectric_loss_tangent.value = MnO2_cond[:,1]/(2*np.pi*f_vals*MnO2_perm[:,1])
mat.update()
I saw an icepack related question that sets a temperature dependent material property, but I cannot figure out how to do the same thing in HFSS for a frequency dependent property. Is what I am trying to do supported, or do I have to find a different way to do this?