You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the latest version of PyMAPDL and its dependencies (fully updated virtual environment). You can update them using pip install --upgrade --upgrade-strategy eager ansys-mapdl-core in your activated virtual environment.
🔍 Description of the bug
After a solution with mixed uP elements present and after reading the last set of results mapdl.mesh.grid seems to result in a lost connection to the MAPDL aaS instance.
🕵️ Steps To Reproduce
fromansys.mapdl.coreimportlaunch_mapdlimportmatplotlib.pyplotaspltimportpyvistaaspvimportmathmapdl=launch_mapdl(port=50056, additional_switches='-smp')
mapdl.clear()
mapdl.units('mpa')
# materialC1=0.293C2=0.177NU1=0.49967D1= (1-2*NU1)/(C1+C2)
mapdl.prep7()
# 3D 8NODE STRUCTURAL SOLID mixed uP formulationmapdl.et(1, "SOLID185")
mapdl.keyopt(1, 6, 1)
# mooney-rivlin material modelmapdl.tb("HYPER", 1, 1, 2, "MOONEY")
mapdl.tbdata(1, C1, C2, D1)
mapdl.block(0, 1, 0, 1, 0, 1)
mapdl.esize("", 10)
mapdl.smrtsize("off")
mapdl.type(1)
mapdl.vmesh("ALL")
mapdl.nsel("S", "LOC", "X", 0)
mapdl.d("ALL", "UX")
mapdl.nsel("S", "LOC", "Z", 0)
mapdl.d('all', 'uz', 0)
mapdl.nsel("S", "LOC", "Y", 0)
mapdl.d('ALL', "UY", 0)
mapdl.nsel("ALL")
mapdl.shpp('off')
mapdl.finish()
mapdl.slashsolu()
mapdl.antype("STATIC")
mapdl.nlgeom("ON")
mapdl.time(1)
mapdl.autots('off')
mapdl.nsubst(10)
# apply displacementmapdl.nsel('s', 'loc', 'y', 1)
mapdl.d('all', "UY", -.1)
mapdl.allsel()
# write results to result file at every sub stepmapdl.outres("", 1)
mapdl.solve()
mapdl.finish()
mapdl.post1()
mapdl.set('last')
mesh1=mapdl.mesh.grid# am gathering undeformed and deformed mesh for PyVista plotting so next commands would be# mapdl.upcoord(1)# mesh1 = mapdl.mesh.grid# mapdl.upcoord(-1)
💻 Which Operating System are you using?
Windows
🐍 Which Python version are you using?
3.10
📝 PyMAPDL Report
Show the Report!
# PASTE HERE THE OUTPUT OF `python -c "from ansys.mapdl import core as pymapdl; print(pymapdl.Report())"` here
📝 Installed packages
Show the installed packages!
# PASTE HERE THE OUTPUT OF `python -m pip freeze` here
📝 Logger output file
Show the logger output file.
# PASTE HERE THE CONTENT OF THE LOGGER OUTPUT FILE.
The text was updated successfully, but these errors were encountered:
I do not understand why having complex material models would make retrieving the meshing to fail... retrieving the meshing only depends on the type of element, solid186 in this case, which is fairly tested.
@germa89 the element formulation has an 'internal' node with DOF of pressure. If you change the esize to 1 and retry, the mesh.grid will work. Staring at this I am not sure why it does not work at first (1000 elements) but also not sure why it works with 1 element.
🤓 Before submitting the issue
pip install --upgrade --upgrade-strategy eager ansys-mapdl-core
in your activated virtual environment.🔍 Description of the bug
After a solution with mixed uP elements present and after reading the last set of results mapdl.mesh.grid seems to result in a lost connection to the MAPDL aaS instance.
🕵️ Steps To Reproduce
💻 Which Operating System are you using?
Windows
🐍 Which Python version are you using?
3.10
📝 PyMAPDL Report
Show the Report!
📝 Installed packages
Show the installed packages!
📝 Logger output file
Show the logger output file.
The text was updated successfully, but these errors were encountered: