Skip to content
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

When I want to import an IGES file and plot it, MAPDL server connection terminated #2948

Open
tryzang opened this issue Mar 29, 2024 Discussed in #2947 · 1 comment
Open

Comments

@tryzang
Copy link

tryzang commented Mar 29, 2024

Discussed in #2947

Originally posted by tryzang March 29, 2024
I want to import an IGES file and then show it, but I get an error
Here's my python code

from ansys.mapdl.core import launch_mapdl
mapdl = launch_mapdl(loglevel="ERROR")

# clear
mapdl.finish()
mapdl.clear()

mapdl.prep7()
mapdl.igesin("D:/1", "IGS")

mapdl.geometry.areas.plot()

Here's the error message

C:\Users\UserX\AppData\Local\Programs\Python\Python312\python.exe D:\桌面\3DD\main.py 
CRITICAL - pymapdl_global -  logging - handle_exception - Uncaught exception
Traceback (most recent call last):
  File "D:\桌面\3DD\main.py", line 6, in <module>
    mapdl.igesin("D:/1.IGS")
  File "C:\Users\UserX\AppData\Local\Programs\Python\Python312\Lib\site-packages\ansys\mapdl\core\mapdl_grpc.py", line 3388, in igesin
    return super().igesin(fname=filename, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\UserX\AppData\Local\Programs\Python\Python312\Lib\site-packages\ansys\mapdl\core\_commands\aux15_.py", line 57, in igesin
    return self.run(f"IGESIN,{fname},{ext}", **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\UserX\AppData\Local\Programs\Python\Python312\Lib\site-packages\ansys\mapdl\core\mapdl.py", line 3291, in run
    text = self._run(command, verbose=verbose, mute=mute)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\UserX\AppData\Local\Programs\Python\Python312\Lib\site-packages\ansys\mapdl\core\mapdl_grpc.py", line 938, in _run
    response = self._send_command(cmd, mute=mute)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\UserX\AppData\Local\Programs\Python\Python312\Lib\site-packages\ansys\mapdl\core\errors.py", line 168, in wrapper
    raise MapdlExitedError("MAPDL server connection terminated") from None
ansys.mapdl.core.errors.MapdlExitedError: MAPDL server connection terminated

进程已结束,退出代码为 1

Also, I have this question, if I want to import a file in STL format and do finite element analysis, is there any way?
Thank you for your reply~~

@germa89
Copy link
Collaborator

germa89 commented Apr 1, 2024

Hi @tryzang

Can you share the IGS file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants