v0.5.2
v0.5.2 Release Notes
pydpf-core 0.5.2 release for Ansys 2022 R2
What's Changed
Enhancements
-
Three server configurations are available. PyDPF can communicate either in Process or via gRPC with DPF C++ core server.
- InProcessServer: Loads DPF's binaries in Process and shares memory with DPF's data. Performance is greatly improved. Now the default configuration.
- GrpcServer: Uses gRPC communication through DPF gRPC CLayer Ans.Dpf.GrpcClient.
- LegacyGrpcServer: Uses gRPC communication through the Python module ansys.grpc.dpf.
-
Enhanced DPF capabilities by creating custom Python operators. See the Create Custom Operators documentation.
-
You can now use RuntimeClientConfig (commit) and RuntimeCoreConfig to parametrize DPF.
RuntimeClientConfig (commit) allows you to:- Set the streaming_buffer_size while streaming data through gRPC server configurations.
- Choose whether to stream float or double values while streaming Field data through gRPC server configurations.
- Choose whether to return numpy arrays by default (for scoping's IDs, field's data_pointer). The default is now True.
RuntimeCoreConfig allows you to set the number of threads used (on the server side) for operators that enable multi-threaded data computation.
-
Parallelized pre- and post-processing workflows with remote operators.
-
Added new operators in the ansys.dpf.core.operators module, such as logic.ascending_sort(), logic.ascending_sort_fc(), logic.descending_sort(), logic.descending_sort_fc(), serialization.data_tree_to_json(), serialization.json_to_data_tree(), mesh.meshes_provider(), and so on. See the PyDPF documentation related to operators to learn how to use them.
-
Warped mesh in plotter: Enable data visualization on a deformed mesh. Example here.
Continuous Integration
- ansys-dpf-gate is a new dependency of ansys-dpf-core.
- tqdm replaces progressbar2 as the third party module for progress bars.
- Backward compatibility workflow running on Ansys 2022 R1.
- Examples workflow running documentation examples for different server configurations.
- protobuf breaking change is not supported, supported versions are <=3.20.1.
- Added Dependabot to CI.
- Added dependency on packaging module.
Bug fixes
- Fixed circular references between DPF objects.
Documentation fixes
- Improved user guide. Added section on custom operators, usage of DPF XML file, documentation on main entities, and DPF concepts.
- New example: ASME Section VIII Division 2: pressure vessels, by @jviqueg
- Automatically generate Graphviz diagrams in documentation examples.
New Contributors
- @jviqueg made their first contribution in #265
- @dependabot made their first contribution in #287
- @jorgepiloto made their first contribution in #307
- @vsousacosta made their first contribution in #337
Full Changelog: 0.4.2...v0.5.2