jorgensd / jorgensd/dolfinx-tutorial

modify the sub-component dirichletbc

Open
#304 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
166
Forks
89
Avg merge
3h 25m
Merged PRs (30d)
2

Description

As pointed out by @lclaire, the mathematics in
https://jsdokken.com/dolfinx-tutorial/chapter3/component_bc.html#boundary-conditions
is a bit inaccurate, as I state

Image
while what we enforce is

Image
which excludes the to right node.

This should be changed to:
```python
def right(x):
return np.logical_and(np.isclose(x[0], L), x[1] <= H + 1e-14)
```
or
```python
def right(x):
return np.isclose(x[0], L)
```
to be accurate

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.