Skip to content

Post processing in ICEPAK using pyaedt #4899

Discussion options

You must be logged in to vote

I'm pasting here some code used in another example, but that should suit your request, please adapt to your needs. Let me know if you need anything else.

report = ipk.post.create_report(
    expressions=["Temperature", "Speed"],
    context=line.name,
    primary_sweep_variable="Distance",
    report_category="Fields",
    polyline_points=500,
)
report_data = report.get_solution_data()
distance = [k[0] for k, _ in report_data.full_matrix_mag_phase[0]["Temperature"].items()]
temperature = [v for _, v in report_data.full_matrix_mag_phase[0]["Temperature"].items()]
speed = [v for _, v in report_data.full_matrix_mag_phase[0]["Speed"].items()]

# Plot the data

fig, ax = plt.subplots(1, 1)
sc …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@pruthvi1991
Comment options

@lorenzovecchietti
Comment options

Answer selected by lorenzovecchietti
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