Skip to content

Define a Parametric Optimetric with a specific calculation and a specific Range Function #5750

Discussion options

You must be logged in to vote

Hi @engineer366 @mahesh-dhanekula

The following snippet works for me:

from ansys.aedt.core import Hfss

app = Hfss()

setup_parametrics = app.parametrics.add("feed_pos",
                                        10.6,
                                        11,
                                        0.2,
                                        "LinearStep")

ranges = {
    "Theta": "85deg,86deg,87deg,88deg,89deg,90deg",
    "Phi": "0deg",
    "Freq": "1.8GHz"
}
setup_parametrics.add_calculation(
    calculation="pk2pk(cang_rad(rETheta))",
    ranges=ranges,
    report_type="Far Fields",
    context="Infinite Sphere1",
    solution=app.existing_analysis_sweeps[0],
)

app.release_desktop(Fal…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@mahesh-dhanekula
Comment options

@engineer366
Comment options

Comment options

You must be logged in to vote
1 reply
@engineer366
Comment options

Answer selected by engineer366
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants