Comments (4)
Code to replicate this issue in: #3119
hello :) When I use the BEAM188 unit to calculate, the node number displayed in the eplot window is not the same as the node number when vtk=False. What is the reason? If you could discuss with me,...
from pymapdl.
Further more, I am getting this error:
>>> mapdl.nplot(vtk=True, show_node_numbering=True)
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Cell In[4], line 1
----> 1 mapdl.nplot(vtk=True, show_node_numbering=True)
File ~/Other_pymapdls/pymapdl_0/pymapdl/src/ansys/mapdl/core/mapdl_extended.py:1104, in _MapdlCommandExtended.nplot(self, nnum, vtk, **kwargs)
1102 labels = [{"points": pcloud.points, "labels": pcloud["labels"]}]
1103 points = [{"points": self.mesh.nodes}]
-> 1104 return general_plotter([], points, labels, mapdl=self, **kwargs)
1106 # otherwise, use the built-in nplot
1107 if isinstance(nnum, bool):
TypeError: general_plotter() got an unexpected keyword argument 'show_node_numbering'
from pymapdl.
I think the error comes when plotting the labels. The node IDs seems correct.
from pymapdl.
This issue seems to happen not only on element numbering, but with general geometrical entities. Here is a minimal example creating 3 keypoints and connecting the first two with a line:
from ansys.mapdl.core import launch_mapdl
# Launch MAPDL instance
mapdl = launch_mapdl()
# Enter pre-processing mode
mapdl.prep7()
# Create keypoints 3 keypoints
mapdl.k(1, 0, 0, 0)
mapdl.k(2, 1, 0, 0)
mapdl.k(3, 1, 1, 0)
# Create line connecting keypoints 1 and 2
mapdl.l(1, 2)
# Plot the geometry
mapdl.lplot(show_line_numbering=False, show_keypoint_numbering=True, color_lines=True)
The output shows keypoint 1 connected to keypoint 3 instead of 2:
This is an import issue, specially when setting boundary conditions and/or mesh refinement over complex geometries.
from pymapdl.
Related Issues (20)
- Revise project metadata to align with PyAnsys standards HOT 1
- Add ML course link to docs
- No dynamic visualization HOT 10
- Using HPC licenses with `MapdlPool` HOT 2
- PyMAPDL should fail if not instances have been launched in MapdlPool
- Use chain_commands in convert_script HOT 1
- PyMapdl crahes/looses connection, when running in a loop HOT 1
- Change support for /EXPAND as EXPAND has been added as a APDL command. HOT 2
- 2d plane stress concentration analysis returns an error HOT 2
- Modify ``incorrect environment variables``
- Fix background in documentation images
- Reference naming conventions in docs HOT 1
- Fix the ``release.yml`` file
- Filtering tags that trigger releases HOT 4
- Wrong coverage tagging
- launch_mapdl.save(fname) and launch_mapdl.resume(fname) strips white spaces from the path string HOT 3
- Coverage seems partially broken
- Update Numpy to 2.0.0 HOT 1
- OCDATA can define up to 14 values. PyMAPDL OCDATA limits to 4.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pymapdl.