Skip to content

Commit ddf9ee3

Browse files
authored
Merge pull request #167 from pyansys/merge/0.4.0
Make ansys-dpf-core compatible with Ansys release 2022R1 Update master version to 0.4.dev0 > Enhancements: > - native remote workflows capability: [Workflows](https://dpfdocs.pyansys.com/api/ansys.dpf.core.workflow.html) and [Operators](https://dpfdocs.pyansys.com/api/ansys.dpf.core.dpf_operator.html) instantiated on different servers can be connected together transparently to create distributed pre and post processing workflows. Workflows created on a given server can be moved to other servers. > - add optional progress bar when [Operators](https://dpfdocs.pyansys.com/api/ansys.dpf.core.dpf_operator.html) or [Workflows](https://dpfdocs.pyansys.com/api/ansys.dpf.core.workflow.html) are evaluated. This uses the new Session API through grpc > - server on Docker Container is started automatically with, either the environment variable DPF_DOCKER or either the parameter `docker_name` of the function [`start_local_server`](https://dpfdocs.pyansys.com/api/ansys.dpf.core.server.html) set to the name of the docker. Unit tests can be run on Docker Container > - implement Integral Collection to connect and get output data as int, double or string arrays more efficiently from [Operators](https://dpfdocs.pyansys.com/api/ansys.dpf.core.dpf_operator.html) and [Workflows](https://dpfdocs.pyansys.com/api/ansys.dpf.core.workflow.html) > - create generic calls to get and set field properties from and to the [MeshedRegion](https://dpfdocs.pyansys.com/api/ansys.dpf.core.meshed_region.html) > - identify DPF entities in grpc databases by their entity IDs and their DataBase IDs to allow for better communication between servers > - add capability to generate [operators](https://dpfdocs.pyansys.com/api/ansys.dpf.core.operators.html) python code client side > - by default, the mesh is read when a displacement is requested (can be disabled with [`model.mesh_by_default = False`](https://dpfdocs.pyansys.com/api/ansys.dpf.core.model.html) ) > - new operators to support [averaging](https://dpfdocs.pyansys.com/api/ansys.dpf.core.operators.averaging.html) from elemental centroids results > - improve handling of MAPDL coupled analysis > - create [path_utilities](https://dpfdocs.pyansys.com/api/ansys.dpf.core.operators.path_utilities.html) to offer helpers on path depending on the server os > Bug fixes: > - automatic code generation for [`model.results....`](https://dpfdocs.pyansys.com/api/ansys.dpf.core.results.html) is working for results with scripting names having " ", "/", "\", ".", ":", ";", ",", "(", ")" characters. > - decorator `server_meet_version` "wraps" the method so that the call stack when exception are raised is correct > - fetch named selections from the [MeshedRegion](https://dpfdocs.pyansys.com/api/ansys.dpf.core.meshed_region.html) only when it's specifically required to improve performances > - properly release memory server side when time/frequencies are requested by the [TimeFreqSupport](https://dpfdocs.pyansys.com/api/ansys.dpf.core.time_freq_support.html) > - add more unary calls in [ResultInfo](https://dpfdocs.pyansys.com/api/ansys.dpf.core.result_info.html) service > Documentation fixes: > - README.md reference pydpf-core instead of DPF-Core > - improve spelling
2 parents 499304e + a9f91b6 commit ddf9ee3

File tree

616 files changed

+115547
-43309
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

616 files changed

+115547
-43309
lines changed

.ci/azure-pipelines.yml

Lines changed: 0 additions & 220 deletions
This file was deleted.

.ci/build_doc.bat

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
ECHO %AWP_ROOT212%
21
set SPHINX_APIDOC_OPTIONS=inherited-members
3-
call sphinx-apidoc -o ../docs/source/api ../ansys ../ansys/dpf/core/aeneid.py -f --implicit-namespaces --separate --no-headings
2+
call sphinx-apidoc -o ../docs/source/api ../ansys -f --implicit-namespaces --separate --no-headings
43
pushd .
54
cd ../docs/
65
call make clean

.ci/edit_ansys_version.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import sys
2+
import pkgutil
3+
import os
4+
5+
if __name__ == "__main__":
6+
directory = os.path.dirname(pkgutil.get_loader("ansys.dpf.core").path)
7+
file_path = os.path.join(directory, "_version.py")
8+
for i, arg in enumerate(sys.argv):
9+
if arg == "--version":
10+
print(sys.argv[i+1])
11+
version = sys.argv[i+1]
12+
file = open(file_path, 'r')
13+
lines = file.readlines()
14+
for i, line in enumerate(lines):
15+
if "__ansys_version__" in line:
16+
lines[i] = f'__ansys_version__ = "{version}"\n'
17+
file.close()
18+
with open(file_path, 'w') as file:
19+
file.writelines(lines)

.ci/templates/kill-servers-windows.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

.ci/templates/prepare-environment-linux.yml

Lines changed: 0 additions & 64 deletions
This file was deleted.

.ci/templates/prepare-environment-windows.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.

0 commit comments

Comments
 (0)