PyDPF - Composites
PyDPF - Composites enables the post-processing of composite structures based on Ansys DPF and the DPF Composites plugin. So it is a Python wrapper which implements classes on top of DPF Composites operators and data accessors for short fiber and layered composites (layered shell and solid elements). This module can be used to postprocess fiber reinforced plastics and layered composites, and to implement custom failure criteria and computation. For information demonstrating the behavior and usage of PyDPF - Composites, see Examples in the DPF Composite documentation.
Contribute
Install in development mode
Installing PyDPF - Composites in development mode allows you to modify the source and enhance it.
Before attempting to contribute to PyDPF - Composites, ensure that you are thoroughly familiar with the PyAnsys Developer’s Guide.
Clone the repository:
git clone https://github.com/ansys/pydpf-composites cd pydpf-compositesInstall dependencies:
python -m pip install pipx pipx ensurepath # Minimum required poetry version is 1.2.0 pipx install poetry pipx install pip pipx install toxPyDPF - Composites uses Poetry to manage the development environment.
Create a virtual environment and install the package with the development dependencies:
poetry install --all-extrasActivate the virtual environment by executing the command printed by:
poetry env activate
Test
There are different ways to run the PyDPF - Composites tests, depending on how the DPF server is started.
Run tests with a Docker container:
Follow the steps in Getting the DPF server Docker image to get and run the DPF docker image. Run the tests with the following command
pytest . --port 50052Run tests with a DPF server from an Ansys installation. Using a DPF server with this package requires Ansys Release 2023 R2 or later. The following example uses Ansys Release 2027 R1.
pytest . --ansys-path "C:\Program Files\Ansys Inc\v271"Run tests with a Docker container from Github (Ansys Internal only):
docker pull ghcr.io/ansys/pydpf-composites:latest pytest .
Build documentation
Follow the description in Getting the DPF server Docker image image to get and run the dpf docker image.
On Windows, build the documentation with:
tox -e doc-windows
On Linux, build the documentation with:
tox -e doc-linux
Ansys internal only: Build the docs with the latest container from Github:
docker pull ghcr.io/ansys/pydpf-composites:latest
docker run -d -p 50052:50052 -e ANSYSLMD_LICENSE_FILE=1055@mylicserver -e ANSYS_DPF_ACCEPT_LA=Y -e DPF_DEFAULT_GRPC_MODE=insecure ghcr.io/ansys/pydpf-composites:latest
tox -e doc-windows
Run style checks
The style checks use pre-commit and can be run through tox:
tox -e style
The style checks can also be configured to run automatically before each git commit:
pre-commit install
View documentation
Documentation for the latest stable release of PyDPF - Composites is hosted at PyDPF - Composites Documentation.
In the upper right corner of the documentation’s title bar, there is an option for switching from viewing the documentation for the latest stable release to viewing the documentation for the development version or previously released versions.
Metadata
Release files for ansys-dpf-composites 0.8.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ansys_dpf_composites-0.8.0.tar.gz | 87.3 kB | Without provenance | Details for ansys_dpf_composites-0.8.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ansys_dpf_composites-0.8.0-py3-none-any.whl | Python 3 | none | any | Details for ansys_dpf_composites-0.8.0-py3-none-any.whl |
Total release size: 244.3 kB
Release files / ansys_dpf_composites-0.8.0.tar.gz
| Download URL | ansys_dpf_composites-0.8.0.tar.gz |
|---|---|
| Size | 87.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2c63bb25af3356909327bbccb2bb7962373d6e0ab9be8a3fa7b02fa59517a83f
|
|
BLAKE2b-256 checksum How to use checksums |
d7d242f75372defa8ebaeb24b3f764b91daf542811da679e9c85c37b8a891360
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.16
|
Release files / ansys_dpf_composites-0.8.0-py3-none-any.whl
| Download URL | ansys_dpf_composites-0.8.0-py3-none-any.whl |
|---|---|
| Size | 157.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c3d3186d38febdd1bf821498997b8388be1680929ce15d1ade533ebd4e31887b
|
|
BLAKE2b-256 checksum How to use checksums |
dfb758b2f86ea94ee86a09a3b66f58b0a5d3e1972e1abba81355fc9efab09628
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.16
|
Security for ansys-dpf-composites 0.8.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.