Skip to content

Plotting element solutions saved as array graphically #2419

Answered by germa89
arun-maniam asked this question in Q&A
Discussion options

You must be logged in to vote

You could do something like this:

from ansys.mapdl.core import launch_mapdl

mapdl = launch_mapdl()

# Generate model
# 

# Genertate values of each elements
#

grid = mapdl.mesh.grid
scalars = values_for_each_element
grid.plot(scalars=scalars)

Based on this example: https://mapdl.docs.pyansys.com/version/stable/examples/gallery_examples/00-mapdl-examples/geometry.html#accessesing-element-and-nodes-pythonically

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@arun-maniam
Comment options

@germa89
Comment options

Answer selected by germa89
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants