Skip to content

use pyaedt to export SummaryReport #4687

Closed Answered by lorenzovecchietti
aknsj asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @aknsj, I introduced a new class that I think can help you in this case.

temperature_fs = ipk.post.create_field_summary()
temperature_fs.add_calculation(
        entity="Object",
        geometry="Surface",
        geometry_name="FaceList1",
        quantity="Temperature",
        side="Default",
        mesh="All",
    )
temperature_fs = temperature_fs.get_field_summary_data(pandas_output=True)

With this you'll have a pandas dataframe that allows you to do whatever post-processing in python directly using the power of pandas.

If you are interested instead only to the csv export, after you create the field summary object, you can execute:
temperature_fs.export_csv(output_file="test.csv")

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@aknsj
Comment options

@lorenzovecchietti
Comment options

@aknsj
Comment options

@Samuelopez-ansys
Comment options

@aknsj
Comment options

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