-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Before submitting the issue
- I have visited the Troubleshooting section.
- I have searched among the existing issues.
- I am using a Python virtual environment.
- I have a fully updated virtual environment (i.e.
pip install --upgrade --upgrade-strategy eager ansys-mapdl-core
)
Description of the bug
PyMAPDL plots asymmetric data for a simple symmetric problem using BEAM188 elements.
Steps To Reproduce
from ansys.mapdl.core import launch_mapdl
from ansys.mapdl.reader.rst import Result
# start mapdl and clear it
mapdl = launch_mapdl()
mapdl.clear() # optional as MAPDL just started
mapdl.units("SI") # SI - International system (m, kg, s, K).
mapdl.prep7()
mapdl.antype("STATIC")
mapdl.et(1, "BEAM188")
mapdl.sectype(1, "BEAM", "RECT")
mapdl.secdata(0.01, 0.01)
mapdl.mp("EX", 1, 10.e9)
mapdl.mp("PRXY", 0.33)
nodes = [mapdl.n(1, 0, 0, 0), mapdl.n(2, 0.1, 0, 0), mapdl.n(3, 0.2, 0, 0),
mapdl.n(4, 0.3, 0, 0), mapdl.n(5, 0.4, 0, 0), mapdl.n(6, 0.5, 0, 0),
mapdl.n(7, 0.6, 0, 0), mapdl.n(8, 0.7, 0, 0), mapdl.n(9, 0.8, 0, 0),
mapdl.n(10, 0.9, 0, 0), mapdl.n(11, 1.0, 0, 0),
mapdl.n(12, 0, -0.1, 0), mapdl.n(13, 1.0, -0.1, 0)]
elements = [mapdl.e(1, 2), mapdl.e(2, 3), mapdl.e(3, 4), mapdl.e(4, 5),
mapdl.e(5, 6), mapdl.e(6, 7), mapdl.e(7, 8), mapdl.e(8, 9),
mapdl.e(9, 10), mapdl.e(10, 11), mapdl.e(12, 2), mapdl.e(13, 10)]
# constrain nodes at fixed end
mapdl.nsel("ALL")
for n in [1, 12, 11, 13]:
mapdl.d(n, "ALL")
mapdl.f(5, "FY", -20)
mapdl.f(6, "FY", -20)
mapdl.f(7, "FY", -20)
mapdl.finish()
mapdl.run("/SOLU")
mapdl.solve()
mapdl.finish()
mapdl.post1()
simulation_result = mapdl.result # type: Result
simulation_result.plot_principal_nodal_stress(
0,
"SEQV",
show_edges=True,
cmap="viridis",
cpos="xy",
render_lines_as_tubes=True,
line_width=20.
)
mapdl.finish()
mapdl.exit()
Which Operating System are you using?
Windows
Which Python version are you using?
3.10
PyMAPDL Report
Show the Report!
-------------------------------------------------------------------------------
PyMAPDL Software and Environment Report
Packages Requirements
*********************
Core packages
-------------
ansys.mapdl.core : 0.64.0
numpy : 1.24.2
appdirs : 1.4.4
scipy : 1.10.1
grpc : Package not found
ansys.api.mapdl.v0 : Package not found
ansys.mapdl.reader : 0.52.11
google.protobuf : Package not found
Optional packages
-----------------
matplotlib : 3.7.1
pyvista : 0.38.4
pyiges : 0.2.1
tqdm : 4.65.0
Ansys Installation
******************
Version Location
------------------
222 C:\Program Files\ANSYS Inc\v222
Ansys Environment Variables
***************************
AWP_ROOT222 C:\Program Files\ANSYS Inc\v222
ANSYS222_DIR C:\Program Files\ANSYS Inc\v222\ANSYS
CADOE_LIBDIR222 C:\Program Files\ANSYS Inc\v222\CommonFiles\Language\en-us
ANSYSLIC_DIR C:\Program Files\ANSYS Inc\Shared Files\Licensing
Installed packages
Show the installed packages!
ansys-api-mapdl==0.5.1
ansys-api-platform-instancemanagement==1.0.0b3
ansys-mapdl-core==0.64.0
ansys-mapdl-reader==0.52.11
ansys-platform-instancemanagement==1.0.3
appdirs==1.4.4
certifi==2022.12.7
charset-normalizer==3.1.0
click==8.1.3
colorama==0.4.6
contourpy==1.0.7
cycler==0.11.0
fonttools==4.39.0
geomdl==5.3.1
googleapis-common-protos==1.58.0
grpcio==1.51.3
idna==3.4
imageio==2.26.0
importlib-metadata==6.0.0
kiwisolver==1.4.4
matplotlib==3.7.1
numpy==1.24.2
packaging==23.0
Pillow==9.4.0
platformdirs==3.1.1
pooch==1.7.0
protobuf==3.20.3
protoc-gen-swagger==0.1.0
pyansys-tools-versioning==0.3.3
pyiges==0.2.1
pyparsing==3.0.9
python-dateutil==2.8.2
pyvista==0.38.4
requests==2.28.2
scipy==1.10.1
scooby==0.7.1
six==1.16.0
tqdm==4.65.0
urllib3==1.26.15
vtk==9.2.6
zipp==3.15.0
Logger output file
Show the logger output file.
# PASTE HERE THE CONTENT OF THE LOGGER OUTPUT FILE.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working