Posted Sat, 11 May 2024 13:54:22 GMT by x Huang
I tried to use ifm drawing from the following link [https://github.com/DHI/ifm/blob/master/tutorials/mass-load-boundary-condition.ipynb], but got the following error.   Traceback (most recent call last): File "xxx\plot.py", line 19, in doc.c.plot.faces() ^^^^^ AttributeError: 'doctype' object has no attribute 'c' How does the related example [https://github.com/DHI/ifm/blob/master/benchmarks/domenico_palciauskas/domenico_palciauskas.ipynb] in this repository done it? Or has this function been removed? I'm using FEFLOW 8.0, the results of ifm.getKernelVersion()  is 8000. I found an related problem from six years ago, but it seems that the last link given has expired due to the migration of the forum. Any suggestions? Plotting *.dar files... - DHI Customer Care Portal (dhigroup.com) [https://support.dhigroup.com/forums/feflow/8d1a1588-47e3-ec11-bb3c-000d3ab6f805#5d803889-47e3-ec11-bb3c-000d3ab6f50d]
Posted Sat, 11 May 2024 14:00:19 GMT by x Huang
Uh, format has been corrupted. My error is:  doc.c.plot.faces() ---> AttributeError: 'doctype' object has no attribute 'c' ifm github repo tutorial link: https://github.com/DHI/ifm/blob/master/tutorials/mass-load-boundary-condition.ipynb  
Posted Tue, 14 May 2024 10:15:26 GMT by Carlos Andres Rivera Villarreyes Global Product Specialist - FEFLOW
If you see that the script has a line "import ifm_contrib as ifm", this means that it is not really using the standard IFM functionality. The script contains a layer above named "contribution", which is a community extension. FEFLOW standard IFM will give you all the arrays of results. These can be subsequently used by any graphical Python packages for visualization and/or plotting such as Matplotlib, PyVista, etc. You may want to visit our free self-paced course about FEFLOW Python integration. I have few official examples how to plot FEFLOW's results with Matplotlib. The link is below https://www.theacademybydhi.com/course-sessions/feflow---getting-started-with-feflow-python-interface-11600061-149  
Posted Thu, 16 May 2024 06:26:51 GMT by x Huang
Thank you, I will look into it🫡. I had found the GitHub repository for ifm_contrib, and if there are no conflicts of interest, perhaps it could also be mentioned in the documentation of the software.  

You must be signed in to post in this forum.