Skip to content

Averaging element values (saved as Numpy array) at common nodes #2463

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

You must be logged in to vote

I'm not sure about his one. Pinging @mikerife for the MAPDL side and @AlejandroFernandezLuces for the pyvista side.

To summarise you want to average the elements (cells) values in the nodes (points) and plot its results.

However, I believe you could accomplish something similar by just using nodal values in the scalar field in add_mesh, instead of using the elemental values. I do not think the nodal values are the average in the nodes of the elemental values (what you want), but, it should be close to, specially if the nodal values are elemental derived quantities (stresses, strains, etc)

...
import pyvista as pv

grid = mapdl.mesh._grid

nodal_values = mapdl.post_processing.nodal_displac…

Replies: 2 comments 4 replies

Comment options

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

@germa89
Comment options

@arun-maniam
Comment options

@germa89
Comment options

Answer selected by germa89
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants