ansys / pymapdl

Pythonic interface to MAPDL
https://mapdl.docs.pyansys.com
MIT License
423 stars 120 forks source link

Jupyter Kernel dies when calling mapdl.mesh.grid and server connection crash #1373

Closed 2014-1542 closed 1 year ago

2014-1542 commented 2 years ago

Before submitting the issue

Description of the bug

### Steps To Reproduce

import os
import vtk
import math
import numpy as np
import pyvista as pv

### Launch MAPDL
from ansys.mapdl.reader import save_as_archive
from ansys.mapdl.core import launch_mapdl

mainfolder = os.getcwd()  # Set the current path as directory
jobfilename = 'Model_1'
mapdl = launch_mapdl(run_location=os.path.abspath(mainfolder), override=True, jobname=jobfilename, nproc=12,
                     clear_on_connect=1, additional_switches='-smp',
                     log_apdl=os.path.join(mainfolder, 'apdl' + "." + 'log'))

[...]

mapdl.allsel()
mapdl.slashsolu()
mapdl.solve()

Which Operating System are you using?

Windows

Which Python version are you using?

3.9

PyMAPDL Report

PyMAPDL Software and Environment Report

Packages Requirements


Core packages

ansys.mapdl.core : 0.63.1 numpy : 1.23.2 appdirs : 1.4.4 scipy : 1.8.0 grpc : Package not found ansys.api.mapdl.v0 : Package not found ansys.mapdl.reader : 0.51.11 google.protobuf : Package not found

Optional packages

matplotlib : 3.5.2 pyvista : 0.36.1 pyiges : 0.2.1 tqdm : 4.64.0

Ansys Installation


Version Location

202 C:\Program Files\ANSYS Inc\v202

Ansys Environment Variables


ANSYS202_DIR C:\Program Files\ANSYS Inc\v202\ANSYS ANSYS_SYSDIR winx64 AWP_ROOT202 C:\Program Files\ANSYS Inc\v202 CADOE_LIBDIR202 C:\Program Files\ANSYS Inc\v202\CommonFiles\Language\fr

Installed packages

aiohttp==3.8.1 aiosignal==1.2.0 ansys-api-mapdl==0.5.1 ansys-api-platform-instancemanagement==1.0.0b3 ansys-mapdl-core==0.63.1 ansys-mapdl-reader==0.51.11 ansys-platform-instancemanagement==1.0.2 anyio==3.6.1 appdirs==1.4.4 argon2-cffi==21.3.0 argon2-cffi-bindings==21.2.0 asttokens==2.0.5 async-timeout==4.0.2 attrs==21.4.0 Babel==2.10.3 backcall==0.2.0 beautifulsoup4==4.11.1 bleach==5.0.0 certifi==2022.6.15 cffi==1.15.0 charset-normalizer==2.0.12 colorama==0.4.4 cycler==0.11.0 debugpy==1.6.0 decorator==5.1.1 defusedxml==0.7.1 entrypoints==0.4 executing==0.8.3 fastjsonschema==2.15.3 fonttools==4.33.3 frozenlist==1.3.0 geomdl==5.3.1 googleapis-common-protos==1.56.4 grpcio==1.46.1 idna==3.3 imageio==2.19.2 importlib-metadata==4.11.3 ipycanvas==0.12.0 ipyevents==2.0.1 ipykernel==6.13.0 ipython==8.3.0 ipython-genutils==0.2.0 ipyvtklink==0.2.2 ipywidgets==7.7.0 jedi==0.18.1 Jinja2==3.1.2 json5==0.9.9 jsonschema==4.5.1 jupyter==1.0.0 jupyter-client==7.3.1 jupyter-console==6.4.4 jupyter-core==4.11.1 jupyter-server==1.18.1 jupyterlab==3.4.5 jupyterlab-pygments==0.2.2 jupyterlab-server==2.15.0 jupyterlab-widgets==1.1.0 kiwisolver==1.4.2 MarkupSafe==2.1.1 matplotlib==3.5.2 matplotlib-inline==0.1.3 mistune==0.8.4 multidict==6.0.2 nbclassic==0.4.3 nbclient==0.5.13 nbconvert==6.5.0 nbformat==5.4.0 nest-asyncio==1.5.5 notebook==6.4.11 notebook-shim==0.1.0 numpy==1.23.2 packaging==21.3 pandocfilters==1.5.0 parso==0.8.3 pickleshare==0.7.5 Pillow==9.1.0 prometheus-client==0.14.1 prompt-toolkit==3.0.29 protobuf==3.20.1 protoc-gen-swagger==0.1.0 psutil==5.9.0 pure-eval==0.2.2 pycparser==2.21 Pygments==2.12.0 pyiges==0.2.1 pyparsing==3.0.9 pyrsistent==0.18.1 python-dateutil==2.8.2 pytz==2022.2.1 pyvista==0.36.1 pywin32==304 pywinpty==2.0.5 pyzmq==22.3.0 qtconsole==5.3.1 QtPy==2.2.0 requests==2.28.1 scipy==1.8.0 scooby==0.5.12 Send2Trash==1.8.0 six==1.16.0 sniffio==1.2.0 soupsieve==2.3.2.post1 stack-data==0.2.0 terminado==0.15.0 tinycss2==1.1.1 tornado==6.1 tqdm==4.64.0 traitlets==5.2.1.post0 urllib3==1.26.11 voila==0.3.6 vtk==9.1.0 wcwidth==0.2.5 webencodings==0.5.1 websocket-client==1.3.3 websockets==10.3 widgetsnbextension==3.6.0 wslink==1.6.4 yarl==1.7.2 zipp==3.8.0

akaszynski commented 2 years ago

There's a variety of issues that might be causing this, but I'm leaning towards something like:

germa89 commented 1 year ago

Closing this issue because there is not enough details to replicate it. If new info arises, feel free to reopen this issue.