Skip to content

Commit 8325879

Browse files
akaszynskianslpajazztekk
authored
Cleanup Readme (#18)
* gitignore updated * user_guide files added * speed -> velocity * solution doc string fix * old user guide index file removed * API files added * doc string stress update * user guide and API references added * fix for get result info * fixes for generation with sphinx * rth files added in user guide * accesing_result .rst file update * misc_results file updated * _plot_chart removed (need to be discussed) * examples order changed * thermal analysis and mechanics analysis * extensions removed * suggested editorial improvements * suggested editorial improvements * suggested editorial improvements (API & index.rst) * cleaned up code docgen * touch log file to avoid tail on non-existing file * added readme and cleaned up example titles * fix setup.py Co-authored-by: lparadis <[email protected]> Co-authored-by: jazztekk <[email protected]>
1 parent 09336a1 commit 8325879

File tree

7 files changed

+108
-25
lines changed

7 files changed

+108
-25
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License
22

3-
Copyright (c) 2020 ANSYS
3+
Copyright (c) 2021 ANSYS
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 87 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,97 @@
1-
# DPF-Post
2-
ANSYS Data Processing Framework: post processing package.
1+
# DPF-Post - Ansys Data Post-Processing Framework
32

4-
## Disclaimer
3+
[![PyPI version](https://badge.fury.io/py/ansys-dpf-post.svg)](https://badge.fury.io/py/ansys-dpf-post)
54

6-
This API is currently a work in progress - things will break and change!
5+
[![Build Status](https://dev.azure.com/pyansys/pyansys/_apis/build/status/pyansys.DPF-Post?branchName=master)](https://dev.azure.com/pyansys/pyansys/_build/latest?definitionId=6&branchName=master)
76

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

9-
## Get Started
14+
The Python `ansys.dpf.post` package provides an simplified Python
15+
interface to DPF, thus enabling rapid post-processing, without ever
16+
leaving a Python environment.
1017

11-
Clone or copy this directory and then install using:
18+
This module leverages the DPF-Core project's ``ansys.dpf.core``
19+
package and can be found by visiting [DPF-Core GitHub](https://github.com/pyansys/DPF-Core). Use ``ansys.dpf.core``
20+
for building more advanced and customized workflows using Ansys's DPF.
21+
22+
Visit the [DPF-Post Documentation](https://postdocs.pyansys.com) for a
23+
detailed description of the package, or see the [Examples
24+
Gallery](https://postdocs.pyansys.com/examples/index.html) for more
25+
detailed examples.
26+
27+
28+
### Installation
29+
30+
Install this repository with:
1231

1332
```
33+
pip install ansys-dpf-post
34+
```
35+
36+
You can also clone and install this repository with:
37+
38+
```
39+
git clone https://github.com/pyansys/DPF-Post
40+
cd DPF-Post
1441
pip install . --user
1542
```
1643

17-
See the example scripts in the examples folder for some basic example. More will be added later.
44+
### Running DPF-Post
45+
Provided you have ANSYS 2021R1 installed, a DPF server will start
46+
automatically once you start using DPF-Post. Should you wish to use
47+
DPF-Post without 2020R1, see the [DPF Docker](https://dpfdocs.pyansys.com/getting_started/docker.html) documentation.
48+
49+
Opening and plotting a result file generated from Ansys workbench or
50+
MAPDL is as easy as:
51+
52+
```python
53+
>>> from ansys.dpf import post
54+
>>> from ansys.dpf.post import examples
55+
>>> solution = post.load_solution(examples.multishells_rst)
56+
>>> stress = solution.stress()
57+
>>> stress.xx.plot_contour(show_edges=False)
58+
```
59+
60+
![Example Stress Plot](https://github.com/pyansys/dpf-post/raw/master/docs/source/images/main_example.png)
61+
62+
63+
Or extract the raw data as a `numpy` array with:
64+
65+
```python
66+
>>> stress.xx.get_data_at_field(0)
67+
array([-3.37871094e+10, -4.42471752e+10, -4.13249463e+10, ...,
68+
3.66408342e+10, 1.40736914e+11, 1.38633557e+11])
69+
```
70+
71+
### Key Features
72+
73+
74+
**Computational Efficiency**
75+
76+
The DPF-Post module is based on DPF Framework that been developed with
77+
a data framework that localizes the loading and post-processing within
78+
the DPF server, enabling rapid post-processing workflows as this is
79+
written in C and FORTRAN. At the same time, the DPF-Post Python
80+
module presents the result in Pythonic manner, allowing for the rapid
81+
development of simple or complex post-processing scripts.
82+
83+
84+
**Easy to use**
85+
86+
The API of DPF-Post module has been developed in order to make easy
87+
post-processing steps easier by automating the use of DPF's chained
88+
operators. This allows for fast post-processing of potentially
89+
multi-gigabyte models in a short script. DPF-Post also details the
90+
usage of the operators used when computing the results so you can also
91+
build your own custom, low level scripts using the
92+
[DPF-Core](https://github.com/pyansys/DPF-Core) module.
93+
94+
95+
### License
96+
97+
``DPF-Post`` is licensed under the MIT license. Please see the [LICENSE](https://github.com/pyansys/dpf-post/raw/master/LICENSE) for more details.

docs/source/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ leaving a Python environment.
1414

1515
This module leverages the DPF-Core module ``ansys.dpf.core`` module
1616
and can be found by visiting `DPF-Core GitHub
17-
<https://github.com/pyansys/DPF-Post>`_. Use ``ansys.dpf.core`` for
17+
<https://github.com/pyansys/DPF-Core>`_. Use ``ansys.dpf.core`` for
1818
building more advanced and customized workflows using Ansys's DPF.
1919

2020

@@ -70,7 +70,7 @@ operators. This allows for fast post-processing of potentially
7070
multi-gigabyte models in a short script. DPF-Post also details the
7171
usage of the operators used when computing the results so you can also
7272
build your own custom, low level scripts using the
73-
`DPF-Core <https://github.com/pyansys/DPF-Post>`_ module.
73+
`DPF-Core <https://github.com/pyansys/DPF-Core>`_ module.
7474

7575

7676
.. toctree::

examples/00-Overview/README.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.. _ref_overview:
22

3-
DPF-Post overview
3+
DPF-Post Overview
44
~~~~~~~~~~~~~~~~~
5-
Here are a quick overview of DPF-Post module with ``ansys-dpf-post``.
5+
Here are a quick overview of DPF-Post module with ``ansys-dpf-post``.
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.. _ref_different_analysis:
22

3-
DPF-Post different analysis type
4-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5-
Here are a series of analysis type focused examples with ``ansys-dpf-post`` module.
3+
DPF-Post Analysis Types
4+
~~~~~~~~~~~~~~~~~~~~~~~
5+
Here are a series of analysis type focused examples with
6+
``ansys-dpf-post`` module.

examples/README.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.. _gallery:
22

3-
DPF-Post examples
4-
=================
5-
Here are a series of examples DPF-Post module with ``ansys-dpf-post``.
3+
========
4+
Examples
5+
========
6+
Here are a series of examples DPF-Post module with ``ansys-dpf-post``.

setup.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
install_requires = ['pyvista>=0.24.0',
77
'matplotlib',
8-
'ansys.dpf.core==0.2.0']
8+
'ansys.dpf.core>=0.2.0']
99

1010

1111
# Get version from version info
@@ -22,21 +22,22 @@
2222
name='ansys-dpf-post',
2323
packages=['ansys.dpf.post', 'ansys.dpf.post.examples'],
2424
version=__version__,
25-
26-
description='DPF Python gRPC client',
27-
# long_description=io_open(readme_file, encoding="utf-8").read(),
25+
maintainer='ANSYS',
26+
maintainer_email='[email protected]',
27+
description='DPF-Post Python gRPC client',
28+
url='https://github.com/pyansys/DPF-Post',
29+
long_description=open('README.md').read(),
30+
long_description_content_type='text/markdown',
2831
classifiers=[
2932
'Development Status :: 4 - Beta',
3033
'Intended Audience :: Science/Research',
3134
'Topic :: Scientific/Engineering :: Information Analysis',
3235
'Operating System :: Microsoft :: Windows',
3336
'Operating System :: POSIX',
34-
'Programming Language :: Python :: 3.5',
3537
'Programming Language :: Python :: 3.6',
3638
'Programming Language :: Python :: 3.7',
3739
'Programming Language :: Python :: 3.8',
3840
],
39-
40-
python_requires='>=3.5.*',
41+
python_requires='>=3.6.*',
4142
install_requires=install_requires,
4243
)

0 commit comments

Comments
 (0)