Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge changes for release 0.6.2 #549

Merged
merged 29 commits into from
Dec 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
488b46d
support of dpf server 9.0 (2025R1 pre0) (#501)
roosre Aug 14, 2024
9ca44b8
bump version 0.7.0dev (#502)
roosre Aug 14, 2024
3391e46
Update conf.py to adapt to new ansys-sphinx-theme (#504)
greschd Aug 18, 2024
d8d8cc6
Bump the dependencies group across 1 directory with 5 updates (#513)
dependabot[bot] Sep 6, 2024
a5d3831
Fix Field Indexer and get_element_indices for layered solids and add …
roosre Sep 9, 2024
e44f311
Bump the dependencies group across 1 directory with 3 updates (#518)
dependabot[bot] Sep 17, 2024
cfa6929
Doc/cyclic symmetry (#517)
roosre Sep 18, 2024
0b0eeba
Doc/revised example 13 (#519)
nshum4 Sep 18, 2024
f31cb7c
Bump ansys-sphinx-theme from 1.0.9 to 1.0.10 in the dependencies grou…
dependabot[bot] Sep 19, 2024
4556da1
Bump ansys-sphinx-theme from 1.0.10 to 1.0.11 in the dependencies gro…
dependabot[bot] Sep 20, 2024
9fbfe47
Bump pylint from 3.2.7 to 3.3.0 in the dependencies group (#523)
dependabot[bot] Sep 23, 2024
d31da84
Add and document an [examples] extra requirement (#525)
greschd Sep 27, 2024
a4185ca
Bump ansys/actions from 7 to 8 (#526)
dependabot[bot] Oct 1, 2024
995c5b7
Tweak material results example heading (#527)
greschd Oct 7, 2024
b1c6562
Remove obsolete constant TEMPERARTURE_COMPONENT (#533)
roosre Oct 16, 2024
471d907
Fix doc upload for v8 actions (#537)
greschd Oct 16, 2024
04954a6
Add note to the examples how to get the input files from a WB project…
roosre Oct 16, 2024
947410f
Bump the dependencies group across 1 directory with 5 updates (#536)
dependabot[bot] Oct 16, 2024
4801795
Update AUTHORS and CONTRIBUTORS.md (#538)
greschd Oct 16, 2024
41ff962
Bump mypy from 1.12.0 to 1.12.1 in the dependencies group (#539)
dependabot[bot] Oct 21, 2024
c71f5ef
Bump mypy from 1.12.1 to 1.13.0 in the dependencies group (#540)
dependabot[bot] Oct 23, 2024
838723f
Bump the dependencies group across 1 directory with 2 updates (#542)
dependabot[bot] Nov 11, 2024
9ff7e3d
Bump pytest-rerunfailures from 14.0 to 15.0 in the dependencies group…
dependabot[bot] Nov 20, 2024
fb362da
Bump pyvista from 0.44.1 to 0.44.2 in the dependencies group (#545)
dependabot[bot] Nov 27, 2024
6bb6605
Bump the dependencies group with 4 updates (#547)
dependabot[bot] Dec 2, 2024
92aadc5
Add Python 3.13 support, drop 3.9 (#546)
greschd Dec 4, 2024
4200332
Merge branch 'main' of https://github.com/ansys/pydpf-composites into…
greschd Dec 4, 2024
ebc0f4b
Change version to 0.6.2
greschd Dec 4, 2024
43c5867
Fix tests + pre-commit
greschd Dec 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 17 additions & 13 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
inputs:

env:
MAIN_PYTHON_VERSION: '3.12'
MAIN_PYTHON_VERSION: '3.13'
CONTAINER_TAG: 'latest'
PACKAGE_NAME: 'ansys-dpf-composites'
DOCUMENTATION_CNAME: 'composites.dpf.docs.pyansys.com'
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
name: "Documentation style"
runs-on: ubuntu-latest
steps:
- uses: ansys/actions/doc-style@v7
- uses: ansys/actions/doc-style@v8
with:
token: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -58,7 +58,7 @@ jobs:
# docker images on the windows agents. See the issue
# https://github.com/actions/runner-images/issues/1143
os: [ubuntu-latest]
python-version: ['3.9', '3.10', '3.11', '3.12']
python-version: ['3.10', '3.11', '3.12', '3.13']
fail-fast: false
steps:
- name: "Login in Github Container registry"
Expand Down Expand Up @@ -134,7 +134,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip tox tox-gh-actions
Expand Down Expand Up @@ -212,7 +212,7 @@ jobs:
needs: [doc-style, doc-build, code-style, tests, tests_minimal_version]
steps:
- name: "Build library source and wheel artifacts"
uses: ansys/actions/build-library@v7
uses: ansys/actions/build-library@v8
with:
library-name: ${{ env.PACKAGE_NAME }}

Expand All @@ -223,10 +223,10 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ['3.9', '3.10', '3.11', '3.12']
python-version: ['3.10', '3.11', '3.12', '3.13']
steps:
- name: "Build a wheelhouse of the Python library"
uses: ansys/actions/build-wheelhouse@v7
uses: ansys/actions/build-wheelhouse@v8
with:
library-name: "ansys-dpf-composites"
operating-system: ${{ matrix.os }}
Expand All @@ -238,11 +238,13 @@ jobs:
runs-on: ubuntu-latest
needs: [build-library, build-wheelhouse]
steps:
- uses: ansys/actions/doc-deploy-dev@v7
- uses: ansys/actions/doc-deploy-dev@v8
with:
cname: ${{ env.DOCUMENTATION_CNAME }}
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
force-orphan: false
bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }}

release:
name: "Release project"
Expand All @@ -252,14 +254,14 @@ jobs:
steps:

- name: "Release to the public PyPI repository"
uses: ansys/actions/release-pypi-public@v7
uses: ansys/actions/release-pypi-public@v8
with:
library-name: ${{ env.PACKAGE_NAME }}
twine-username: "__token__"
twine-token: ${{ secrets.PYPI_TOKEN }}

- name: "Release to GitHub"
uses: ansys/actions/release-github@v7
uses: ansys/actions/release-github@v8
with:
library-name: ${{ env.PACKAGE_NAME }}

Expand All @@ -269,8 +271,10 @@ jobs:
needs: [release]
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/v')
steps:
- uses: ansys/actions/doc-deploy-stable@v7
- uses: ansys/actions/doc-deploy-stable@v8
with:
cname: ${{ env.DOCUMENTATION_CNAME }}
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
force-orphan: false
bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }}
2 changes: 1 addition & 1 deletion .github/workflows/package_cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: "Delete untagged package versions"
uses: ansys/actions/hk-package-clean-untagged@v7
uses: ansys/actions/hk-package-clean-untagged@v8
with:
package-name: 'pydpf-composites'
allow-last-days: '14'
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ repos:
rev: v3.15.2
hooks:
- id: pyupgrade
args: [--py39-plus]
args: [--py310-plus]

- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
Expand Down
4 changes: 2 additions & 2 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
# For contributions made under a Corporate CLA, the organization is
# added to this file.
#
# If you have contributed to the repository and wish to be added to this file
# please submit a request.
# If you have contributed to the repository and want to be added to this file,
# submit a request.
#
#
ANSYS, Inc.
2 changes: 1 addition & 1 deletion CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Contributors

## Project Lead or Owner
## Project Lead

* [Jan von Rickenbach](https://github.com/janvonrickenbach)

Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ PyDPF Composites
:target: https://docs.pyansys.com/
:alt: PyAnsys

.. |python| image:: https://img.shields.io/badge/Python-%3E%3D3.9-blue
.. |python| image:: https://img.shields.io/badge/Python-%3E%3D3.10-blue
:target: https://pypi.org/project/ansys-dpf-composites/
:alt: Python

Expand Down
1 change: 1 addition & 0 deletions doc/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ Here are some key features of PyDPF Composites:
Limitations
'''''''''''
- Only the Mechanical APDL solver is supported.
- The post-processing of expanded cyclic symmetry models is not implemented.
- The following operators and features are only supported if the model was
preprocessed with ACP and if the corresponding lay-up definition file is passed to the :class:`.CompositeModel` class.

Expand Down
9 changes: 8 additions & 1 deletion doc/source/intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,14 @@ Install the ``ansys-dpf-composites`` package with ``pip``:

pip install ansys-dpf-composites

Specific versions can be installed by specifying the version in the pip command. For example: Ansys 2023 R1 requires ansys-dpf-composites version 0.1.0:

To install the optional dependencies used in the examples, add the ``[examples]`` suffix when installing the package:

.. code::

pip install ansys-dpf-composites[examples]

Specific versions can be installed by specifying the version in the pip command. For example, Ansys 2023 R1 requires ansys-dpf-composites version 0.1.0:

.. code::

Expand Down
7 changes: 7 additions & 0 deletions examples/001_failure_operator_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@
allows you to assess different type of materials and failure modes at once.
The scoping enables you to evaluate the minimum and maximum failures per element
or select a list of materials or plies.

.. note::

When using a Workbench project,
use the :func:`.get_composite_files_from_workbench_result_folder`
method to obtain the input files.

"""
# %%
# Set up analysis
Expand Down
6 changes: 6 additions & 0 deletions examples/002_sampling_point_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@
This example uses the :class:`Composite Model <.CompositeModel>` to scope a
Sampling Point to a certain element and to visualize the laminate.

.. note::

When using a Workbench project,
use the :func:`.get_composite_files_from_workbench_result_folder`
method to obtain the input files.

"""

# %%
Expand Down
10 changes: 9 additions & 1 deletion examples/004_get_material_properties_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,15 @@
implement a custom failure criterion. The failure criterion is computed for
all layers and integration points. Finally, the elemental maximum is computed and shown.

Note: Only constant material properties are currently supported.
.. note::

Only constant material properties are currently supported.

.. note::
When using a Workbench project,
use the :func:`.get_composite_files_from_workbench_result_folder`
method to obtain the input files.

"""

# %%
Expand Down
7 changes: 7 additions & 0 deletions examples/005_get_layup_properties_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@

To get the full layer information of an element, including results,
consider using the :class:`SamplingPoint <.SamplingPoint>` class.

.. note::

When using a Workbench project,
use the :func:`.composite_files_from_workbench_harmonic_analysis`
method to obtain the input files.

"""
# %%
# Set up analysis
Expand Down
7 changes: 7 additions & 0 deletions examples/006_filter_composite_data_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@
The examples show filtering data by layer, spot, and node, as well as material
or analysis ply ID. To learn more about how layered result data is organized,
see :ref:`select_indices`.

.. note::

When using a Workbench project,
use the :func:`.composite_files_from_workbench_harmonic_analysis`
method to obtain the input files.

"""

# %%
Expand Down
6 changes: 6 additions & 0 deletions examples/007_interlaminar_normal_stress_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@
:ref:`sphx_glr_examples_gallery_examples_006_filter_composite_data_example.py`
shows how helper functions can be used to obtain composite result data.

.. note::

When using a Workbench project,
use the :func:`.composite_files_from_workbench_harmonic_analysis`
method to obtain the input files.

"""

# %%
Expand Down
6 changes: 6 additions & 0 deletions examples/008_assembly_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@
:class:`Composite Model <.CompositeModel>` class is used to access
the data of the different parts.

.. note::

When using a Workbench project,
use the :func:`.composite_files_from_workbench_harmonic_analysis`
method to obtain the input files.

"""
# %%
# Set up analysis
Expand Down
8 changes: 4 additions & 4 deletions examples/010_harmonic_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@
Postprocess a harmonic analysis
-------------------------------

This example shows how to evaluate failure criteria for a harmonic simulation.
It shows how to create a phase sweep to compute the maximum IRF in the frequency-phase
space and shows how to identify the critical failure mode and the critical layer.

.. note::

When using a Workbench project,
use the :func:`.composite_files_from_workbench_harmonic_analysis`
method to obtain the input files.

This example shows how to evaluate failure criteria for a harmonic simulation.
It shows how to create a phase sweep to compute the maximum IRF in the frequency-phase
space and shows how to identify the critical failure mode and the critical layer.

"""


Expand Down
7 changes: 7 additions & 0 deletions examples/011_rst_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@
The postprocessing of MAPDL models is supported in 2024 R2 (DPF Server version 8.0)
and later. A few advanced features are not supported with the RST only workflow.
For more information, see :ref:`limitations`.

.. note::

When using a Workbench project,
use the :func:`.composite_files_from_workbench_harmonic_analysis`
method to obtain the input files.

"""
# %%
# Set up analysis
Expand Down
7 changes: 7 additions & 0 deletions examples/012_fatigue_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@
of the user to verify that it works as expected. For more information, see the
`fatpack package <https://pypi.org/project/fatpack/>`_,

.. note::

When using a Workbench project,
use the :func:`.composite_files_from_workbench_harmonic_analysis`
method to obtain the input files.


"""


Expand Down
Loading
Loading