Hello,
I’ve been using the get_results function normally for different result types. However, when I use STABILITY_ANALYSIS_SURFACES_MODE_SHAPE_MESH_NODES as the result_type, it takes much longer than expected.
For small projects, it takes a few minutes (around 10 minutes), but for medium projects it can take up to one hour on my computer. The execution time also varies between runs. I’m not sure if this is only because of the large amount of data, for example, one medium model generated a table of about 400 MB when saved as a .txt with pandas. Still, for other result types with large datasets, the execution time is much shorter.
I wanted to point this out in case there is something to improve or maybe a bug with the stability analysis.
Hi Pedro_Guimaraes,
would you mind to send me an example? Code and rf6-file would be perfect if not created via code.
Thank you.
Best regards
Robert Milrath
Hello Robert Milrath,
I ran into this issue a few weeks ago, but I tested it again now and the function worked as expected. Anyway, thank you for your response. This is the code I used:
with rfem.Application(api_key_value=api_key) as rfem_app:
start_time = time.time()
df = rfem_app.get_results(
results_type=rfem.results.STABILITY_ANALYSIS_SURFACES_MODE_SHAPE_MESH_NODES,
filters=[
rfem.results.ResultsFilter(column_id='loading', filter_expression="CO2")
]
).data
end_time = time.time()
print(f"Time taken to get results: {end_time - start_time} seconds")
df.to_csv("stability_analysis_result.txt", sep="\t", index=False)
Best Regards,
Pedro.