Skip to main content

DPF-Post Python gRPC client

Project description

DPF-Post - Ansys Data Post-Processing Framework

PyPI version

Build Status

The Data Processing Framework (DPF) is designed to provide numerical simulation users/engineers with a toolbox for accessing and transforming simulation data. DPF can access data from solver result files as well as several neutral formats (csv, hdf5, vtk, etc.). Various operators are available allowing the manipulation and the transformation of this data.

The Python ansys.dpf.post package provides an simplified Python interface to DPF, thus enabling rapid post-processing, without ever leaving a Python environment.

This module leverages the DPF-Core project's ansys.dpf.core package and can be found by visiting DPF-Core GitHub. Use ansys.dpf.core for building more advanced and customized workflows using Ansys's DPF.

Visit the DPF-Post Documentation for a detailed description of the package, or see the Examples Gallery for more detailed examples.

Installation

Install this repository with:

pip install ansys-dpf-post

You can also clone and install this repository with:

git clone https://github.com/pyansys/DPF-Post
cd DPF-Post
pip install . --user

Running DPF-Post

Provided you have ANSYS 2021R1 installed, a DPF server will start automatically once you start using DPF-Post. Should you wish to use DPF-Post without 2020R1, see the DPF Docker documentation.

Opening and plotting a result file generated from Ansys workbench or MAPDL is as easy as:

>>> from ansys.dpf import post
>>> from ansys.dpf.post import examples
>>> solution = post.load_solution(examples.multishells_rst)
>>> stress = solution.stress()
>>> stress.xx.plot_contour(show_edges=False)

Example Stress Plot

Or extract the raw data as a numpy array with:

>>> stress.xx.get_data_at_field(0)
array([-3.37871094e+10, -4.42471752e+10, -4.13249463e+10, ...,
        3.66408342e+10,  1.40736914e+11,  1.38633557e+11])

Key Features

Computational Efficiency

The DPF-Post module is based on DPF Framework that been developed with a data framework that localizes the loading and post-processing within the DPF server, enabling rapid post-processing workflows as this is written in C and FORTRAN. At the same time, the DPF-Post Python module presents the result in Pythonic manner, allowing for the rapid development of simple or complex post-processing scripts.

Easy to use

The API of DPF-Post module has been developed in order to make easy post-processing steps easier by automating the use of DPF's chained operators. This allows for fast post-processing of potentially multi-gigabyte models in a short script. DPF-Post also details the usage of the operators used when computing the results so you can also build your own custom, low level scripts using the DPF-Core module.

License

DPF-Post is licensed under the MIT license. Please see the LICENSE for more details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ansys-dpf-post-0.2.2.tar.gz (825.7 kB view details)

Uploaded Source

Built Distribution

ansys_dpf_post-0.2.2-py3-none-any.whl (29.6 kB view details)

Uploaded Python 3

File details

Details for the file ansys-dpf-post-0.2.2.tar.gz.

File metadata

  • Download URL: ansys-dpf-post-0.2.2.tar.gz
  • Upload date:
  • Size: 825.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for ansys-dpf-post-0.2.2.tar.gz
Algorithm Hash digest
SHA256 98e159020b85a3053f82d925dfa150daf3c8cff7d1e01138dbf53feb462a3b62
MD5 d5d624439801183ac20c546885774862
BLAKE2b-256 1006f65910e1539286a6d88f8e55060faec4c9676359c50f6276be657bd693e6

See more details on using hashes here.

File details

Details for the file ansys_dpf_post-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: ansys_dpf_post-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 29.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for ansys_dpf_post-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c3ea34b02dc593b8cccb7cb7f792187fa0f1cb63a347f1744a511d6aeb7b0623
MD5 669ff55e896c258d1d7a24bd7105eaf6
BLAKE2b-256 b0ab9dec64c2d46518e1913882c03cd684ec7d306134e9a8e6cdc5fa0900fe44

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page