Open giiyms opened 1 year ago
Hi @giiyms MAPDL requires the NDSURF command needs the component names in single quotes - I'm not sure if that is happening. @germa89 can you weigh in here? In the meantime the ndsurf command can be used in non-interactive mode like so:
with mapdl.non_interactive:
mapdl.run("ndsurf,'SRF_N','FL1_E',3")
Mike
@giiyms @germa89 Small update; I thought that maybe this format would work:
mapdl.ndsurf("'SRF_N'","'FL1_E'",3)
If I capture the APDL log file with launch_mapdl option log_apdl then it does capture the command:
But it seems to not be running the command...guess non-interactive is the only answer for now.
Mike
@germa89 The other APDL macro command to create elements, AFSURF, does not work either. But LSSOLVE does (which is a APDL macro as well). I did not test LFSURF. I'm really puzzled....
I'm having a look...
Indeed the NDSURF
command does not work.
The plotting does work though (even if no surfaces are generated):
NPLOT
EPLOT
(However, once EPLOT
crashed python ... )
The '
are important:
but indeed, it does not fix the issue.
UPDATE
The non_interactive
mode does not work here.... interesting.
This is going to need more careful debugging on the MAPDL side. Because the command seems to be streamed properly.
Pinging @FredAns for visibility
@germa89 The other APDL macro command to create elements, AFSURF, does not work either. But LSSOLVE does (which is a APDL macro as well). I did not test LFSURF. I'm really puzzled....
Are the commands exactly the same as the macro?? (I guess they are) So I can use the macro to do some debugging... Just run the stuff step by step and see where it fails... ?
@germa89 yes; the APDL 'command' NDSURF is calling the ndsurf.mac in the installation here:
C:\Program Files\ANSYS Inc\v222\ansys\apdl
I started down the "change the ndsurf.mac file and see where the problem is" road but got nowhere. It seemed like the command was not actually processed by mapdl.
Re-pinging @FredAns for input.
Before submitting the issue
pip install --upgrade --upgrade-strategy eager ansys-mapdl-core
)Description of the bug
Hello,
I am trying to create a SURF152 surface on nodes using NDSURF.
When using
The surface elements are not created.
But if I copy the macro NDSURF.mac (from
C:\Program Files\ANSYS Inc\v222\ansys\apdl\NDSURF.mac
) to the working directory it works as expected by calling:Any ideas?
Also if you do mapdl.nplot() then mapdl.eplot() at the end, it will crash mapdl.
Steps To Reproduce
📝 Steps to reproduce
Main script:
NDSURF.mac (created by Ansys) :
Which Operating System are you using?
Windows
Which Python version are you using?
3.10
PyMAPDL Report
Show the Report!
```text ------------------------------------------------------------------------------- PyMAPDL Software and Environment Report Packages Requirements ********************* Core packages ------------- ansys.mapdl.core : 0.63.2 numpy : 1.24.1 appdirs : 1.4.4 scipy : 1.10.0 grpc : Package not found ansys.api.mapdl.v0 : Package not found ansys.mapdl.reader : 0.52.6 google.protobuf : Package not found Optional packages ----------------- matplotlib : 3.6.2 pyvista : 0.37.0 pyiges : 0.2.1 tqdm : 4.64.1 Ansys Installation ****************** Version Location ------------------ 222 C:\Program Files\ANSYS Inc\v222 Ansys Environment Variables *************************** ANSYS ENV. VARIABLE ANSYS_SYSDIR=winx64 ANSYS222_DIR C:\Program Files\ANSYS Inc\v222\ANSYS AWP_LOCALE222 en-us AWP_ROOT222 C:\Program Files\ANSYS Inc\v222 CADOE_LIBDIR222 C:\Program Files\ANSYS Inc\v222\CommonFiles\Language\en-us ```Installed packages
Show the installed packages!
```text ansys-api-fluent==0.3.5 ansys-api-mapdl==0.5.1 ansys-api-platform-instancemanagement==1.0.0b3 ansys-dpf-core==0.6.0 ansys-dpf-gate==0.2.1 ansys-dpf-gatebin==0.3.0 ansys-dpf-post==0.2.5 ansys-fluent-core==0.11.0 ansys-grantami-bomanalytics==1.0.1 ansys-grantami-bomanalytics-openapi==1.0.0 ansys-grpc-dpf==0.7.0 ansys-mapdl-core==0.63.2 ansys-mapdl-reader==0.52.6 ansys-openapi-common==1.1.1 ansys-platform-instancemanagement==1.0.2 appdirs==1.4.4 asttokens==2.2.1 backcall==0.2.0 cachetools==5.2.1 certifi==2022.12.7 cffi==1.15.1 charset-normalizer==2.1.1 clr-loader==0.2.5 colorama==0.4.6 comm==0.1.2 contourpy==1.0.6 cryptography==39.0.0 cycler==0.11.0 debugpy==1.6.5 decorator==5.1.1 entrypoints==0.4 executing==1.2.0 fonttools==4.38.0 geomdl==5.3.1 google-api-core==2.10.1 google-api-python-client==2.71.0 google-auth==2.15.0 google-auth-httplib2==0.1.0 googleapis-common-protos==1.56.4 grpcio==1.51.1 h5py==3.7.0 httplib2==0.21.0 idna==3.4 imageio==2.24.0 importlib-metadata==6.0.0 ipykernel==6.20.1 ipython==8.8.0 jedi==0.18.2 jupyter_client==7.4.8 jupyter_core==5.1.3 kiwisolver==1.4.4 matplotlib==3.6.2 matplotlib-inline==0.1.6 nest-asyncio==1.5.6 ntlm-auth==1.5.0 numpy==1.24.1 packaging==23.0 pandas==1.5.2 parso==0.8.3 pickleshare==0.7.5 Pillow==9.4.0 platformdirs==2.6.2 plumbum==1.8.1 pooch==1.6.0 prompt-toolkit==3.0.36 protobuf==3.20.1 protoc-gen-swagger==0.1.0 psutil==5.9.4 pure-eval==0.2.2 pyaedt==0.6.3 pyansys==2023.1.1 pyasn1==0.4.8 pyasn1-modules==0.2.8 pycparser==2.21 Pygments==2.14.0 pyiges==0.2.1 pyparsing==3.0.9 pypiwin32==223 python-dateutil==2.8.2 pythonnet==3.0.0rc6 pytz==2022.7 pyvista==0.37.0 pywin32==305 pyzmq==25.0.0 requests==2.28.1 requests-negotiate-sspi==0.5.2 requests-ntlm==1.1.0 rpyc==5.0.1 rsa==4.9 scipy==1.10.0 scooby==0.7.0 six==1.16.0 stack-data==0.6.2 tornado==6.2 tqdm==4.64.1 traitlets==5.8.1 uritemplate==4.1.1 urllib3==1.26.13 vtk==9.2.5 wcwidth==0.2.5 zipp==3.11.0 ```Logger output file
Show the logger output file.
```text # PASTE HERE THE CONTENT OF THE LOGGER OUTPUT FILE. ```