I am confused about this.? What does dot(n, direction)("+") mean? How is it defined on cells and why does it make a difference when coming from "+" or “-”?
Each interior facet is visited once and then the following happens:
There are two cells adjecent to the facet. One is called positive and labeled “+”, the other is called negative and labeled “-”. Which one is labeled positive should be thought of as an implementation detai. (It is decided by a cell function g. The cell on which g has the bigger value is labeled positive.)
Now if f involves a discontinuous quantity q, we need to decide if we want to evalutate it on the positive or on the negative cell. This is done by q("+") or q("-").
Similar, if we want to use a unit normal vector to the facet, we need to decide which one. FacetNormal(mesh)("+") gives the unit normal of the positive cell. FacetNormal(mesh)("-") gives the unit normal of the negative cell.