-
Get nodal stresses while incorporating power/full graphics
Hello, I'm currently attempting to retrieve nodal stresses from a model utilizing PyMAPDL. My approach involves employing both mapdl.result.nodal_stress and mapdl.post_processing.nodal_component_stress commands. While these commands successfully fetch stress values at the nodes, I aim to integrate the options 'power…
-
Getting "MapdlConnectionError" often when runnung PyMAPDL
Hi Team, We have developed a PyMAPDL script. When we run the script we get frequently the following error: " Error using mapdl_grpc>_multi_connect Python Error: MapdlConnectionError: Unable to connect to MAPDL gRPC instance at 127.0.0.1:50053. Reached either maximum amount of connection attempts (5) or timeout (45 s).The…
-
Centroid of elements
I have 11 elements after meshing, I need the centroid location of each element in a list or file format for using it later. Can someone provide me with the APDL code?
-
In Mechanical scripting, how can I run APDL using the same license as Mechanical?
In Mechanical scripting, I am using the RunAnsys() to do some custom post-processing in MAPDL. However RunAnsys() is looking for a license that I do not have.
-
apdl command that allows to write to file large numbers
hello! I'm writing to a file an array, but it only writes the small numbers such as 23.328746 or 0.7 and not any large number like 356236. For the larger numbers it just prints *****. /OUTPUT *CFOPEN,'interpolated_val','txt' *VWRITE,final_val(1,1,1),final_val(1,2,1) %f,%f *CFCLOS do you have any suggestions for this?
-
Read data from txt with apdl commands inserted in tree
Hello everyone! I'm working in workbench mechanical (2022r2) in a coupled field module. I want to insert apdl commands in the tree to read a table and interpolate to get some results. I have a file (txt with values separated by comma)with element ids and for each element i have temperature and two parameters defined.…
-
PyMAPDL exits intermittently when run in a loop
Hi, I'm currently running a PyMAPDL script in a for loop. During each iteration, the script makes slight modifications to the mesh and performs a pre-stressed modal analysis. However, I'm encountering an intermittent issue where PyMAPDL exits with the following error message after few iterations: CRITICAL - pymapdl_global…
-
pymapdl jupyter notebook example
I used the old training example and brought it into jupyternotebook/pymapdl: https://ansyshelp.ansys.com/account/secured?returnurl=/Views/Secured/corp/v231/en/ans_tut/structural_cb.html The jupyternotebook file is in the attached zip.
-
PyMAPDL exits intermittently while running in a loop when mapdl.input() command is used
Hello, I'm encountering an issue while running a PyMAPDL script in a for-loop for a large number of iterations (approximately 8000). In each iteration, I modify the node locations using an input file and then solve the problem. To change the node locations, I utilize the "mapdl.input(update_nodes.inp)" command, which…
-
PyMAPDL exits intermittently while running in a loop when mapdl.input() command is used
Hello, I'm encountering an issue while running a PyMAPDL script in a for-loop for a large number of iterations (approximately 8000). In each iteration, I modify the node locations using an input file and then solve the problem. To change the node locations, I utilize the "mapdl.input(update_nodes.inp)" command, which…
-
Update the mesh in PyAnsys
Hello, I would like to update one mesh with another mesh using a PyMAPDL command. Specifically, I have a .db file that I'll load using the PyMAPDL command mapdl.resume(). After loading it, I save the mesh as a new parameter, let's call it original_mesh. Next, I make some modifications to node locations using the mapdl.n()…
-
How do I run MAPDL in batch mode from the command line?
I am looking for command line command to run a MAPDL script in batch mode.