Skip to content

Commit ba49766

Browse files
authored
Update documentation for 2025.1.pre0 (#1675)
* Update Compatibility for 2025.1.pre0 Signed-off-by: paul.profizi <[email protected]> * Update dpf_server.rst for 2025.1.pre0 Signed-off-by: paul.profizi <[email protected]> * Update doc/source/getting_started/compatibility.rst * Fix typing in collection_base.py Signed-off-by: paul.profizi <[email protected]> * Fix docstring in plugins.py Signed-off-by: paul.profizi <[email protected]> * Fix example references for hdf5 Signed-off-by: paul.profizi <[email protected]> * Fix example references for modal cyclic Signed-off-by: paul.profizi <[email protected]> * Fix example 03-fluids_isosurface.py formatting Signed-off-by: paul.profizi <[email protected]> * Fix formatting in licensing.rst Signed-off-by: paul.profizi <[email protected]> * Remove direct references to getting_started_with_dpf_server Signed-off-by: paul.profizi <[email protected]> --------- Signed-off-by: paul.profizi <[email protected]>
1 parent 035b41b commit ba49766

File tree

13 files changed

+46
-25
lines changed

13 files changed

+46
-25
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ To reach the project support team, email [[email protected]](mailto:pyansys
7070

7171
PyDPF-Core requires DPF to be available. You can either have a compatible Ansys version installed
7272
or install the standalone ``ansys-dpf-server`` server package. For more information, see
73-
[Getting Started with DPF Server](https://dpf.docs.pyansys.com/version/stable/user_guide/getting_started_with_dpf_server.html)
73+
[Getting Started with DPF Server](https://dpf.docs.pyansys.com/version/stable/getting_started/dpf_server.html)
7474
in the PyDPF-Core documentation.
7575

7676
For the compatibility between PyDPF-Core and Ansys, see

doc/source/getting_started/compatibility.rst

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,16 @@ package should also be synchronized with the server version.
4949
- ``ansys.grpc.dpf`` Python module version
5050
- ``ansys.dpf.gatebin`` binaries Python module version
5151
- ``ansys.dpf.gate`` Python module version
52+
* - 9.0 (Ansys 2025 R1 pre0)
53+
- 0.13.0 and later
54+
- None
55+
- None
56+
- None
57+
* - 8.2 (Ansys 2024 R2)
58+
- 0.12.1 and later
59+
- None
60+
- None
61+
- None
5262
* - 8.1 (Ansys 2024 R2 pre1)
5363
- 0.12.0 and later
5464
- None
@@ -124,7 +134,7 @@ package should also be synchronized with the server version.
124134
- None
125135
- None
126136
* - 2.0 (Ansys 2021 R2)
127-
- 0.3.0 and later**
137+
- 0.3.0 to 0.9.0**
128138
- 0.3.0
129139
- None
130140
- None

doc/source/getting_started/dpf_server.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ Install DPF Server
2525

2626
.. _target_installing_server:
2727

28-
#. Download the ``ansys_dpf_server_win_v2024.2.pre0.zip`` or ``ansys_dpf_server_lin_v2024.2.pre0.zip`` file as appropriate.
28+
#. Download the ``ansys_dpf_server_win_v2025.1.pre0.zip`` or ``ansys_dpf_server_lin_v2025.1.pre0.zip`` file as appropriate.
2929
#. Unzip the package.
3030
#. Optional: download any other plugin ZIP file as appropriate and unzip the package. For example, to access the ``composites`` plugin for Linux,
31-
download ``ansys_dpf_composites_lin_v2024.2.pre0.zip`` and unzip the package in the same location as ``ansys_dpf_server_lin_v2024.2.pre0.zip``.
32-
#. Change to the root folder (``ansys_dpf_server_win_v2024.2.pre0``) of the unzipped package.
31+
download ``ansys_dpf_composites_lin_v2025.1.pre0.zip`` and unzip the package in the same location as ``ansys_dpf_server_lin_v2025.1.pre0.zip``.
32+
#. Change to the root folder (``ansys_dpf_server_win_v2025.1.pre0``) of the unzipped package.
3333
#. In a Python environment, run this command:
3434

3535
.. code::
@@ -107,15 +107,15 @@ Run DPF Server in a Docker container
107107
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
108108
DPF Server can be run in a Docker container.
109109

110-
#. Along with the ``ansys_dpf_server_lin_v2024.2.pre0.zip`` file mentioned earlier
110+
#. Along with the ``ansys_dpf_server_lin_v2025.1.pre0.zip`` file mentioned earlier
111111
in :ref:`Install DPF Server <target_installing_server>`, download the ``Dockerfile`` file.
112112
#. Optional: download any other plugin ZIP file as appropriate. For example, to access the ``composites`` plugin for Linux,
113-
download ``ansys_dpf_composites_lin_v2024.2.pre0.zip``.
113+
download ``ansys_dpf_composites_lin_v2025.1.pre0.zip``.
114114
#. Copy all the ZIP files and ``Dockerfile`` file in a folder and navigate into that folder.
115115
#. To build the DPF Docker container, run the following command:
116116

117117
.. code::
118118
119-
docker build . -t dpf-core:v2024.2.pre0 --build-arg DPF_VERSION=242
119+
docker build . -t dpf-core:v2025.1.pre0 --build-arg DPF_VERSION=251
120120
121121
5. To run the DPF Docker container, license it. For more information, see :ref:`DPF Preview License Agreement<target_to_license_terms>`.

doc/source/getting_started/licensing.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ For more information on installing DPF Server, see :ref:`ref_dpf_server`.
1616

1717

1818
.. _target_to_license_terms:
19+
1920
License terms
2021
-------------
2122

@@ -46,6 +47,7 @@ existing license for the edition and version of DPF Server that you intend to us
4647

4748

4849
.. _configure_licensing:
50+
4951
Configure licensing
5052
-------------------
5153

@@ -78,6 +80,7 @@ the Ansys license mechanism that is used with DPF Server.
7880

7981

8082
.. _target_to_ansys_license_mechanism:
83+
8184
License checks and usage
8285
------------------------
8386

@@ -119,6 +122,7 @@ location is not the native result location. In that case, averaging occurs which
119122
as data transformation (such as elemental to nodal, nodal to elemental, or any other location change).
120123

121124
.. _licensing_server_context:
125+
122126
Server context
123127
~~~~~~~~~~~~~~
124128

@@ -137,6 +141,7 @@ To update the context, apply a new server context:
137141
server.apply_context(dpf.AvailableServerContexts.premium)
138142
139143
.. _licensing_errors:
144+
140145
Licensing errors
141146
~~~~~~~~~~~~~~~~
142147

@@ -153,6 +158,7 @@ The following user actions may fail due to licensing:
153158

154159

155160
.. _target_to_ansys_license_increments_list:
161+
156162
Compatible Ansys license increments
157163
-----------------------------------
158164

doc/source/user_guide/how_to.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ How-tos
88

99
plotting.rst
1010
custom_operators.rst
11-
getting_started_with_dpf_server.rst
11+
dpf_server.rst
1212
server_types.rst
1313
server_context.rst
1414
xmlfiles.rst

examples/05-file-IO/00-hdf5_double_float_comparison.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# noqa: D400
22
"""
3-
.. _ref_basic_hdf5:
3+
.. _ref_io_hdf5_export_precision:
44
55
HDF5 export and compare precision
66
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

examples/05-file-IO/02-hdf5_serialize_and_read.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
.. _ref_basic_hdf5:
2+
.. _ref_io_hdf5_import_export:
33
44
HDF5 export and import operations
55
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

examples/08-python-operators/02-python_operators_with_dependencies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,4 +264,4 @@
264264
dpf.download_file(os.path.join(tmp, "out.glb"), os.path.join(os.getcwd(), "out.glb"))
265265

266266
# %%
267-
# You can download :download:`output <images/thumb/out02.glb>` from the ``gltf`` operator.
267+
# You can download :download:`output <images/thumb/out.glb>` from the ``gltf`` operator.

examples/12-fluids/03-fluids_isosurface.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
.. _ref_fluids_isosurface:
33
44
Compute iso-surfaces on fluid models
5-
------------------------------------------
5+
------------------------------------
66
77
This example demonstrates how to compute iso-surfaces on fluid models.
88
@@ -14,15 +14,15 @@
1414

1515
###############################################################################
1616
# Import the ``dpf-core`` module and its examples files.
17-
# ~~~~~~~~~~~~~~~~~~
17+
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1818

1919
import ansys.dpf.core as dpf
2020
from ansys.dpf.core import examples
2121
from ansys.dpf.core.plotter import DpfPlotter
2222

2323
###############################################################################
2424
# Specify the file path.
25-
# ~~~~~~~~~~~~~~~~~~
25+
# ~~~~~~~~~~~~~~~~~~~~~~
2626
# We work on a cas/dat.h5 file with only nodal variables.
2727

2828
path = examples.download_cfx_heating_coil()
@@ -33,7 +33,7 @@
3333

3434
###############################################################################
3535
# Whole mesh scoping.
36-
# ~~~~~~~~~~~~~~~~~~
36+
# ~~~~~~~~~~~~~~~~~~~
3737
# We evaluate the mesh with the mesh_provider operator to scope the mesh_cut operator
3838
# with the whole mesh.
3939

@@ -44,7 +44,7 @@
4444

4545
###############################################################################
4646
# Extract the physics variable
47-
# ~~~~~~~~~~~~~~~~~
47+
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4848
# Here we choose to work with the static pressure by default which is a scalar and
4949
# nodal variable without multi-species/phases. With a multi-species case,
5050
# select one using qualifier ellipsis pins and connecting a LabelSpace "species"/"phase".
@@ -63,7 +63,7 @@
6363

6464
###############################################################################
6565
# Evaluate iso-surfaces
66-
# ~~~~~~~~~~~~~~
66+
# ~~~~~~~~~~~~~~~~~~~~~
6767
# We can finally use the iso_surfaces operator on this specific variable.
6868
# We choose to cut the whole mesh with 9 iso-surface manually selected between
6969
# the min and max of the static_pressure variable.
@@ -102,7 +102,7 @@
102102

103103
###############################################################################
104104
# Important note
105-
# ------------------------------
105+
# --------------
106106
# Iso-surfaces computation through the `mesh_cut` operator are only supported for Nodal Fields.
107107
# For Elemental variables, you must perform an averaging operation on the Nodes before
108108
# running the `mesh_cut` operator. This can be done by chaining the `elemental_to_nodal` operator

src/ansys/dpf/core/collection_base.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@
2424
dpf_vector,
2525
dpf_array,
2626
)
27-
from typing import Optional, Generic, TypeVar
27+
from typing import Optional, Generic, TypeVar, TYPE_CHECKING
28+
29+
if TYPE_CHECKING:
30+
from ansys.dpf.core.support import Support
2831

2932
from ansys.dpf.gate.integral_types import MutableListInt32
3033

0 commit comments

Comments
 (0)