Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 2
    $\begingroup$ That's because MeshRegion can not deal with the second order Prism elements. Try this: mesh1 = ToElementMesh[rtext, "MeshOrder" -> 1]; mesh2 = ToElementMesh[rline, "MeshOrder" -> 1]; productMesh = ElementMeshRegionProduct[mesh1, mesh2]; MeshRegion[productMesh] $\endgroup$ Commented Feb 23, 2024 at 8:49
  • $\begingroup$ @user21 Thanks! $\endgroup$ Commented Feb 23, 2024 at 9:43
  • $\begingroup$ @cvgmt Thank you so much! I have no clue why I must use a machine number as the second Line coordinate, or why the 0 can remain an integer. As a (so far) non-FEM-user, I was equally surprised by the connection to FEM and to NDSolve, and I look forward to learning more about it. Thank you! $\endgroup$ Commented Feb 23, 2024 at 9:53
  • 1
    $\begingroup$ @user21 Are second-order prism elements ones with curved boundaries? So much to learn – thank you! $\endgroup$ Commented Feb 23, 2024 at 9:57
  • 1
    $\begingroup$ @FelixKasza, yes, curved edges: In the Details and Options section of PrismElement the is an illustration. $\endgroup$ Commented Feb 23, 2024 at 10:24