ansys / pydpf-post

Data Processing Framework - Post Processing Module
https://post.docs.pyansys.com
MIT License
43 stars 10 forks source link

Does pydpf support .res files generated by ansys cfx-solver? #632

Closed lyh-source closed 5 months ago

lyh-source commented 5 months ago

Description of the modifications

Description

I used cfx-solver to get the .res file after the simulation. This can be operated in the cfd-post software, but it is a bit complicated when processing multiple .res files. Does pydpf support the operation of .res files, or is there any way to convert it to other formats? Snipaste_2024-04-22_21-21-16 This way is not work. Snipaste_2024-04-22_21-23-29

Useful links and references

No response

PProfizi commented 5 months ago

Hello @lyh-source, PyDPF does NOT officially support .res files from CFX. The officially supported formats for CFX are .cas.cff and .dat.cff files.

You can however feed a .res file to a post.FluidSimulation as both cas and dat file to get some limited functionalities:

from ansys.dpf import post
from ansys.dpf.post import examples

fluid_example_files = examples.download_cfx_mixing_elbow()
simulation = post.FluidSimulation(
    cas=fluid_example_files["cas"], dat=fluid_example_files["dat"]
)
# Printing the simulation will show most of the available metadata
print(simulation)

Again, the .res format is not officially supported, meaning that bugs may be present relative to this format and will not get fixed. To use with caution!