Load a result file#

The Simulation object is a central element of PyDPF-Post. This object is the entry point for loading the contents of a result file.

Note

The Simulation class requires DPF 3.0 (2022 R1) or above. For more information, see PyDPF library compatibilities. To work with earlier versions of DPF, see the Solution class and affiliated PyDPF-Post legacy examples.

On Windows#

This code loads a result file on Windows:

>>> from ansys.dpf import post
>>> from ansys.dpf.post import examples
>>> simulation = post.load_simulation('C:/Users/user/file.rst')

On Linux#

This code loads a result file on Linux:

>>> simulation = post.load_simulation('/home/user/file.rst')

For a more detailed example on interacting with the Simulation object, see Get and use a Result object.