Skip to content

How can I creat a new material using PyAEDT? #3920

Closed Answered by Samuelopez-ansys
Dicksky asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Dicksky,

Please try:

import pyaedt

version = '2023.2'

app = pyaedt.Hfss(specified_version=version)

mat = app.materials.add_material(materialname="amazing_material")
mat.dielectric_loss_tangent = 0.2


app.release_desktop(False, False)

For more information:
https://aedt.docs.pyansys.com/version/stable/API/_autosummary/pyaedt.modules.Material.Material.html

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Samuelopez-ansys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants