Usually, to apply the pressure P boundary condition, the pressure P is decomposed into x, y, z directions as Px, Py, Pz. Now I have a curvy boundary to apply pressure. In this case, the normal direction of the boundary need to be calculated by use: n=FacetNormal(mesh).
But I can't use P*n to define the traction boundary conditions for defining Px, Py, Pz.
Anyone knows how to define a pressure boundary condition which is normal to the boundary.