-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support multiple Neumann boundary conditions per domain and provide a tutorial on this feature #31
Comments
This feature is (at least partially) implemented in the current version of the adapter: fenics-adapter/fenicsadapter/fenicsadapter.py Lines 514 to 529 in 1ccab47
However, I think we should also have an example, where one can see how to apply this feature. Something similar to |
I just discovered that the link provided above seems to be broken. What I was referring to is the example in chapter 4.3 "Defining subdomains for different materials" in the FEniCS tutorials book. |
The FEniCS-X version of this tutorial is provided at https://jorgensd.github.io/dolfinx-tutorial/chapter3/subdomains.html. |
I'm not sure if that really belongs here, but it seems somewhat related: Would it be possible to define a coupling boundary from an external mesh, as it is done here? |
Our adapter only supports a single Neumann boundary condition on the whole domain (see FEniCS tutorial book, p.85). We add
g*ds
in the weak form to implement Neumann boundary conditions.To be able to support multiple Neumann boundary conditions (for example, one coupling boundary condition and one on the original boundary), we have to use markers to restrict the boundary integral to the respective subdomain. Pseudocode:
For more information see FEniCS tutorial book, section 4.4
The text was updated successfully, but these errors were encountered: