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
PyMAPDL 0.68.1
Get a:
raise KeyError(f'Data array ({name}) not present in this dataset.')
When plotting nodal pressure for an model with CPT element type and pressure as a DOF activated.
Have tried with 2D CPT213 and 3D CPT215. Here is example using CPT213.
🕵️ Steps To Reproduce
fromansys.mapdl.coreimportlaunch_mapdlmapdl=launch_mapdl(loglevel="WARNING", print_com=True, port=50056)
mapdl.clear()
mapdl.units('mks')
# parameters# loadingPressure=10# geometricH1=-10W1=1# material propertiesEXX=5.8E5NU=0.0permiability=8.62E-3biot=1mapdl.prep7()
# 2D 8 NODE COUPLED PORE-PRESSURE ELEMENT, plane strain formulationmapdl.et(1, "CPT213")
mapdl.keyopt(1, 3, 2)
mapdl.keyopt(1, 12, 1)
# material moldel# linear elasticmapdl.mp("EX", 1, EXX)
mapdl.mp("NUXY", 1, NU)
# PERMEABILITYmapdl.tb("PM", 1, "", "", "PERM")
mapdl.tbdata(1, permiability, permiability, permiability)
# BIOT COEFFICIENTmapdl.tb("PM", 1, "", "", "BIOT")
mapdl.tbdata(1, biot)
# solid modelmapdl.rectng(0, W1, 0, H1)
# set element size and meshmapdl.esize(W1)
mapdl.amesh(1)
# HORIZONTAL DOFS ARE CONSTRAINEDmapdl.d("ALL", "UX")
# BOTTOM SURFACE IS CONSTRAINED IN Y DIRECTIONmapdl.nsel("S", "LOC", "Y", H1)
mapdl.d("ALL", "UY", 0)
mapdl.allsel()
# PRESSURE DOF BLOCKED ON TOP SURFACEmapdl.nsel("S", "LOC", "Y", 0)
mapdl.d("ALL", "PRES", 0)
mapdl.allsel()
mapdl.finish()
# set up for a static unsymmetric solution at time .002 secmapdl.slashsolu()
mapdl.antype("STATIC")
mapdl.nropt("UNSYM")
mapdl.time(0.002)
# use 100, 1000, 10 initial, max and min substepsmapdl.nsubst(100, 1000, 10)
# write out all results at all substeps to the result filemapdl.outres("ALL", "ALL")
# step change loadmapdl.kbc(1)
# APPLY EXTERNAL LOAD ON TOP SURFACEmapdl.nsel("S", "LOC", "Y", 0)
mapdl.sf("ALL", "PRES", Pressure)
mapdl.allsel()
mapdl.solve()
mapdl.finish()
mapdl.post1()
mapdl.set('last')
# this returns the pressure datamapdl.post_processing.nodal_pressure()
# this fails to plotapdl.post_processing.plot_nodal_pressure()
mapdl.finish()
mapdl.exit
💻 Which Operating System are you using?
Windows
🐍 Which Python version are you using?
3.10
💾 Which MAPDL version are you using?
2023 R2
📝 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:
mikerife
changed the title
post_processing.plot_nodal_pressure() fails for CPT213 element type though data is there.
post_processing.plot_nodal_pressure() fails for CPT element type though data is there.
Apr 30, 2024
🤓 Before submitting the issue
pip install --upgrade --upgrade-strategy eager ansys-mapdl-core
in your activated virtual environment.🔍 Description of the bug
PyMAPDL 0.68.1
Get a:
raise KeyError(f'Data array ({name}) not present in this dataset.')
When plotting nodal pressure for an model with CPT element type and pressure as a DOF activated.
Have tried with 2D CPT213 and 3D CPT215. Here is example using CPT213.
🕵️ Steps To Reproduce
💻 Which Operating System are you using?
Windows
🐍 Which Python version are you using?
3.10
💾 Which MAPDL version are you using?
2023 R2
📝 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: