Unable to solve .inp file using pymapdl
Hi, I am trying to access a mechanical model and change the co-eff of friction for contact. But while doing so I am not able to solve the .inp file which I created from mechanical. Can anyone help me with this. The error says "SOLVE is not a recognized BEGIN command"
My code is as below:
from ansys.mapdl.core import launch_mapdl import numpy as np #import matplotlib.pyplot as plt mapdl = launch_mapdl() print(mapdl) mapdl.input("D:\ACT\PyAnsys\PyAnsys_2021R2\X_Demo_Ansys_File\model1_input.inp") # Change the friction coefficient for contact pair with ID 1 to 0.3 #mapdl.cmcoeff(1, "FRICTION", 0.3) # Solve the model #mapdl.slashsolu() #mapdl.solve() #mapdl.finish() output = mapdl.solve() print(output) #result.plot_principal_nodal_stress(0,'seqv',background='w',show_edges=True,text_color='k',add_text=True) mapdl.exit