def CellNormal(mesh: cpp.mesh.Mesh) -> ufl.CellNormal: """Return symbolic cell normal for given manifold mesh. *Example of usage* .. code-block:: python mesh = UnitSquare(4,4) n = CellNormal(mesh) """ return ufl.CellNormal(mesh.ufl_domain())
def CellNormal(mesh): """Return symbolic cell normal for given manifold mesh. *Arguments* mesh a :py:class:`Mesh <dolfin.cpp.Mesh>`. *Example of usage* .. code-block:: python mesh = UnitSquare(4,4) n = CellNormal(mesh) """ return ufl.CellNormal(_mesh2domain(mesh))