<div dir="ltr"><div dir="ltr">On Tue, May 16, 2023 at 10:27 AM K. Wu <<a href="mailto:wuktsinghua@gmail.com">wuktsinghua@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi all,<div><br></div><div>Good day!</div><div><br></div><div>I am currently working on interploating the nodal field vector I obtained to its corresponding elemental field vector. I am doing it in a simple way by using structured mesh, the element value is just the average of its corresponding nodal values.</div><div><br></div><div>Is it possible to generate a connectivity matrix to implement this function? I also need this matrix later on to do a reverse transformation. </div><div><br></div><div>I am wondering is there a way in PETSc to generate this connectivity matrix between nodal and elemental mesh. Or is there any better way to accomplish this?</div><div><br></div><div>Thanks for your kind help!</div></div></blockquote><div><br></div><div>1. Are you using a PETSc DM, or your own mesh?</div><div><br></div><div>2. In order to define what you mean, you have to attach function spaces (or something equivalent) to the</div><div>    two representations. Do you mean linear interpolation between vertices and constants on cells?</div><div><br></div><div>  Thanks,</div><div><br></div><div>     Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div></div><div>Best regards,</div><div>Kai</div></div>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>