-
Notifications
You must be signed in to change notification settings - Fork 123
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
Reducing pymapdl-reader
dependency on the mesh
module
#1299
Conversation
The last commit was by mistake. |
By the way, I implemented the |
Codecov Report
@@ Coverage Diff @@
## main #1299 +/- ##
==========================================
+ Coverage 76.76% 77.50% +0.73%
==========================================
Files 43 44 +1
Lines 6878 7104 +226
==========================================
+ Hits 5280 5506 +226
Misses 1598 1598 |
@germa89 its not correct to use DPF to replace the reader in mesh_grpc. Prior to this change, it is possible to use mesh_grpc to get the mesh without solving. When using dpf, there must be a result file in order for dpf to get a mesh. As it stands, I believe we are losing important functionality. |
I think we should separate out the mesh reading component from the result post-processing component from ansys-mapdl-reader. In fact, we still don't have an archive reader, so it's something critical that |
I think what @koubaa is quite important. Hence we should not really relay on the DPF (or at least only). After thinking about it, and examining DPF core VTK functions, I think the best approach is to externalize the whole thing (VTK export). I have open a discussion in here: ansys/pydpf-core#421 If successful, we will use this new library to build the dynamic mesh (from the MAPDL instance), and also to build the mesh from the RST file. |
Removing RST methods.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
doc/source/examples/technology_showcase_examples/techdemo-28/ex_28-tecfricstir.rst
Outdated
Show resolved
Hide resolved
Only issue I see from this is the potential for duplication. If we plan to depreciate |
I see two options here:
I have been advocating for the latest, because it can be reused in Prime and DPF. References: |
Agreed. Let's implement that as a standalone. I don't want this to be dependent on DPF; it just needs to be a simple C library with a python wrapper. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving. Test failure appears to be a service launch failure. Recommend fixing in a follow-up.
Error response from daemon: Container 7c73f2d58b7da19bce19438a6601c20fdea363faee2f10da3f98f71952888fd5 is restarting, wait until the container is running
I have seen that message quite a lot lastly... but I have a plan.
I'm a bit skeptical that a C library that takes as input an mapdl mesh as arrays can be reused by DPF or prime. |
We should probably then discuss with them what are their needs. |
This will remove the dependency of the
mapdl.mesh
module on PyMAPDL Reader (ansys-mapdl-reader
).The main issue here is parsing the RST file to a VTK file which can be then be used in Pyvista for plotting.
In theory, if we are not plotting, we don't need to parse. I shall make sure this is something extra (removing dependencies, lazy imports, etc).