Open agrishin opened 2 years ago
Hi @agrishin you should post this to the PyDPF-Post GitHub page. https://github.com/pyansys/pydpf-post
Mike
Hi @agrishin, I have tried replicating the issue but have not been able to. Would it be possible to have more information on the element types included in the model? One remark though is that some package versions are not the right ones for Ansys R222. The compatibility table needs a little update, but using Ansys R222 would require ansys-grpc-dpf 0.5.2 (the latest patch for 222), as well as ansys-dpf-gate and ansys-dpf-gatebin 0.1.2 (same).
From Costas at Honeywell:
Running the code below using 2022R2 crashes the Python interpreter with the message that follows. This is run with Python 3.9.6 with the environment shown in the requirements.txt document on Windows 10 pro. ANSYS 2022R1 is also installed on that machine. The model is fairly complex with many 2D and 1D elements including FLUID116. The RTH file is run with an earlier version of ANSYS, 2020Rxx.
The same code runs fine in 2022R1. The only reason I am trying this in 2022R2 is because ANSYS suggested it as a way to improve performance which is poor with earlier versions (see attached e-mail chain). Can you or ANSYS explain what tests are run on PyAnsys prior to releasing it to customers? Specifically is the code tested on all element types (1D/2D/3D), models of various degree of complexity, etc.? The impression I got from ANSYS presentations is that PyAnsys is touted as production software but I seem to be encountering quite a lot of issues with it, especially DPF.
from ansys.dpf import post from ansys.dpf import core
rstfile=r'C:\Users\THERMAL.rth' res=post.load_solution(rstfile, physics_type='thermal') flux=res.heat_flux(time_scoping=10) nodes = flux.vector.get_scoping_at_field(0) data = flux.vector.get_data_at_field(0)
Process finished with exit code -1073741819 (0xC0000005)
Attachments: iCostas Attachments