Default class Element
attribute value
#3687
-
When we export MFEM from Fidelity Pointwise, if the user does not explicitly provide a boundary condition (BC) ID value, we export the "magic" value of
We have a customer reporting that the
If I understand the MFEM code correctly, this value is stored in the What is the valid range for Do you have a suggestion for which value should be used by Fidelity Pointwise to represent the Fidelity Pointwise auto-numbers BC IDs starting at 1. However, the end-user can change the ID to any valid integer value. Ideally this thanks for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi, @dbgarlisch, The range of valid attribute IDs is from 1 to It's not uncommon in MFEM to find what we call "marker arrays" which have a length equal to the maximum attribute number. I'm sure you see the potential for problems. It might be wise for MFEM to scan the attribute numbers and look for potential problems of this sort and at least issue a warning. Perhaps in the longer term we might even want to move away from using these marker arrays. In the near term I'm afraid you'll need to find another solution. MFEM doesn't have the concept of an "unspecified boundary ID". In such cases we simply don't include these boundary faces as "boundary elements". This successfully avoids the problem but it does create another issue which you should be aware of. Specifically, by default GLVis visualizes fields only on boundary elements. Consequently, faces which physically exist on the surface of the mesh but are not included as "boundary elements" appear as holes in the GLVis representation. This may be acceptable particularly if GLVis support is not needed or if unspecified boundaries are uncommon. Another solution, and one that we have employed from time to time, is to choose an attribute number a little larger than the user-specified attribute numbers and assign this to unspecified boundary elements. It could be any number that the user hasn't assigned. I see the virtue of the Fidelity PointWise choice but I don't think MFEM can match that for recognizability. Perhaps the closest we could provide would be a sequence of 9s larger than the maximum user-specified ID. Assuming the user hasn't chosen very large integers (which does happen) this could work. Unfortunately we do need to consider the overhead required to occasionally allocate, scan, and deallocate integer arrays of length Best wishes, |
Beta Was this translation helpful? Give feedback.
Hi, @dbgarlisch,
The range of valid attribute IDs is from 1 to
max(int)
. In theory your "magic" number should work fine. However...It's not uncommon in MFEM to find what we call "marker arrays" which have a length equal to the maximum attribute number. I'm sure you see the potential for problems. It might be wise for MFEM to scan the attribute numbers and look for potential problems of this sort and at least issue a warning. Perhaps in the longer term we might even want to move away from using these marker arrays. In the near term I'm afraid you'll need to find another solution.
MFEM doesn't have the concept of an "unspecified boundary ID". In such cases we simply don't include these bou…