How to assess the value at Mesh Vertices and convert them to Numpy Array

More
3 years 1 month ago #4003 by itaugust
Hi Guys,

I would like to ask a simple question as I am quite new to the software.

Referring to: ngsolve.org/forum/ngspy-forum/1456-gridf...-to-new-gridfunction ,

I am currently developing the rate determination scheme for the Convection-Diffusion-Reaction model, which requires the inputs as a numpy array of the values of the mesh points to the scheme for every time step. My understanding is that I cannot use the result from the GridFunction as Alex explained that "its components were the coefficients for the interpolating polynomials rather than the values at the points".

I then found the topic ( ngsolve.org/forum/ngspy-forum/1169-how-t...ion-at-mesh-vertices ) which Joachim explained the approach of using IntegrationRule to get the vertices. I think that I can apply the same approach, but I am not sure that what should be the code inside IntegrationRule(...) if I would like to get all the vertices in the 3d- geometric space? Do I need the 8 corner points instead of 4 points? Can you also help me explain what the irrelevant weight is?

Thank you,
Ittisak
Time to create page: 0.109 seconds