Question about Neumann boundary conditions

Hello All,

Just to confirm, the BC

md.add_source_term_brick(mim, 'f', 'zeros', 45)

will add a boundary condition requiring the derivative of f to be zero across the boundary at boundary 45, correct? I want to make sure in case there is some other thing I am missing, since right now my results do not have the derivative of f being zero at this boundary.

Sincerely,
Eric Comstock

adding a source term with zeros is the same as if you do not add any source term.

You need to add the term only if the gradient is not zero, like in this example:

https://scicomp.stackexchange.com/questions/44229/how-to-constraint-the-tangential-gradient-on-a-boundary-in-fenics/44250#44250

1 Like