Skip to main content
This is a quick-reference guide for PyDPF-Core. Jump to a section of your choosing with these links: Import a model | Fetch metadata | Manage data sources | Read results | Read the mesh | Scope results over time / space domains | Get a data field | Plot contour results | Workflows

Import a model

Import a DPF model to see an overview of the content in its results file:

Fetch metadata

Fetch all the results available in the results file:
Print the time or frequency of the results:
Print available named selections:

Manage data sources

Manage results files by creating a DPF DataSources object from scratch or from a model:

Read results

Read displacement results by instantiating a displacement operator and then print the fields container:
Get field by TimeID=1:

Read the mesh

Get mesh information, the list of node IDs, and the list of element IDs:
Get a node and an element using their IDs:

Scope results over time / space domains

Scope results over particular time IDs to make fetching data faster:
Scope over particular elements:
Retrieve a mesh from a scoping:

Get a data field

Apply operators and extract the resulting data field:

Plot contour results

Plot a field on its mesh and show the minimum and maximum values:
Take a screen shot from a specific camera position:

Workflows

Combine operators to create workflows:
Use the workflow:

References

References from PyDPF-Core documentation: