Giter VIP home page Giter VIP logo

Comments (4)

germa89 avatar germa89 commented on June 23, 2024

Code to replicate this issue in: #3119

GitHub
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.

germa89 avatar germa89 commented on June 23, 2024

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.

germa89 avatar germa89 commented on June 23, 2024

I think the error comes when plotting the labels. The node IDs seems correct.

from pymapdl.

brunotessaro avatar brunotessaro commented on June 23, 2024

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:

image

This is an import issue, specially when setting boundary conditions and/or mesh refinement over complex geometries.

from pymapdl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.