Help understanding elemental variables #17273
-
Hi all, I'm trying to get a better understanding of the
but rather with quadrature points. But then in the transfer itself, the target points in the receiving app for FIRST MONOMIAL are set to the nodes of element: (code here)
How do these two statements reconcile with one another? I'm trying to figure out why transfers to/from FIRST MONOMIAL give strange-looking results for this transfer (see here), and I feel like this (apparent, to me) inconsistency might explain something. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
In libMesh, the dofs for elemental variables are represented on the element themselves. Let's say you have a system with just a single first order, elemental variable and QUAD4 elems. Each QUAD4 elem would have 4 dofs associated with it (a value at each "node"; note I use "node" here because it's not actually stored on the Node object!). Then, all of the physical Node objects (which represent the vertices for each QUAD4 elem, which are shared between elems) have no dofs whatsoever. In addition, for first-order L2_LAGRANGE variables, the spatial location of each node (where the dofs live physically in space) happen to also be the physical location of the Nodes - even though the Node objects do not own the dofs! Within the loop that you linked, we're specifying that we need a value for each of the dof values for the L2_LAGRANGE element (again, the Node locations are the locations for the dofs, even though the dofs don't live on the Node objects). I'm still working through the validity of using the Node ID (stored here) for the purposes of mapping the incoming evaluations here. |
Beta Was this translation helpful? Give feedback.
In libMesh, the dofs for elemental variables are represented on the element themselves.
Let's say you have a system with just a single first order, elemental variable and QUAD4 elems. Each QUAD4 elem would have 4 dofs associated with it (a value at each "node"; note I use "node" here because it's not actually stored on the Node object!). Then, all of the physical Node objects (which represent the vertices for each QUAD4 elem, which are shared between elems) have no dofs whatsoever. In addition, for first-order L2_LAGRANGE variables, the spatial location of each node (where the dofs live physically in space) happen to also be the physical location of the Nodes - even though the Node object…