Hi all,
I encountered an problem when I tried to evaluate FacetNormal on the internal boundary, and hope someone could provide more insight to properly evaluate this. Basically, my domain has two parts connecting together, and I need to apply robin boundary condition on this interface.
Here is my previous post (my equation and boundary conditions). In short, my mistake on previous post is that I did not account for the normal vector orientation. Because I would like to work on more generalized geometry, here is my fix to previous problem by defining normal vector, and do a dot product.
n = FacetNormal(flowing_layer_mesh)
...
F = ... + dot(n, local_shear_rate*Epsilon*Lambda*u*(1.0-u))*v*dsTop + dot(n, local_shear_rate*Epsilon*Lambda*u*(1.0-u))*v*dsBottom
This approach appears to work pretty well if I try to evaluate the curve boundary on the outside of my mesh. However, this method appears to fail when I try to evaluate boundary line that is inside my mesh (which in this case, it is a curve interface between two regions). The reason I suspect it is this part fails is that I basically see exactly the same behavior as in my previous post.
Any help would be appreciated! Thanks!
`