# Custom Values in Dirichlet BCs, solving Poisson

**URL:** <https://fenicsproject.discourse.group/t/custom-values-in-dirichlet-bcs-solving-poisson/5614>\
**Category:** I/O\
**Created:** [April 19, 2021, 3:18pm UTC](https://fenicsproject.discourse.group/t/custom-values-in-dirichlet-bcs-solving-poisson/5614 "2021-04-19T15:18:22Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dokken](https://yyz2.discourse-cdn.com/free1/user_avatar/fenicsproject.discourse.group/dokken/32/1560_2.png) [@dokken](https://fenicsproject.discourse.group/u/dokken)\
**Post date:** [April 19, 2021, 3:40pm UTC](https://fenicsproject.discourse.group/t/custom-values-in-dirichlet-bcs-solving-poisson/5614/2 "2021-04-19T15:40:22Z")

</div>

There are quite a few ways to do this. One approach would be to match the input coordinates with the degree of freedom and the insert values at these indices.  
You can obtain the dof coordinates using `V.tabulate_dof_coordinates()`.  
Then you should match the indices of these coordinates with your input indices, and insert them into a corresponding function.  
For the insertion into the function see: [Assign nodal values in parallel - #2 by nate](https://fenicsproject.discourse.group/t/assign-nodal-values-in-parallel/1310/2) and the following posts.

---

_[View the full topic](https://fenicsproject.discourse.group/t/custom-values-in-dirichlet-bcs-solving-poisson/5614)._
