# Second-order Serendipity Elements \[dirichletbc\]

**URL:** <https://fenicsproject.discourse.group/t/second-order-serendipity-elements-dirichletbc/13164>\
**Category:** Errors\
**Tags:** boundary-conditions, dolfinx\
**Created:** [December 28, 2023, 11:57am UTC](https://fenicsproject.discourse.group/t/second-order-serendipity-elements-dirichletbc/13164 "2023-12-28T11:57:48Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![jaribeiro](https://yyz2.discourse-cdn.com/free1/user_avatar/fenicsproject.discourse.group/jaribeiro/32/4314_2.png) [@jaribeiro](https://fenicsproject.discourse.group/u/jaribeiro)\
**Post date:** [December 28, 2023, 2:06pm UTC](https://fenicsproject.discourse.group/t/second-order-serendipity-elements-dirichletbc/13164/3 "2023-12-28T14:06:08Z")

</div>

Thanks, @francesco-ballarin!  
Could you also tell me how the code would change if the displacement values are a constant instead of zero?

Additionally, out of curiosity, do you know why my solution doesn’t work with Serendipity Elements but works with Lagrange Elements?

---

_[View the full topic](https://fenicsproject.discourse.group/t/second-order-serendipity-elements-dirichletbc/13164)._
