Skip to content

Instantly share code, notes, and snippets.

View hherlyng's full-sized avatar

Halvor Herlyng hherlyng

  • Simula Research Laboratory
  • Oslo, Norway
View GitHub Profile
@hherlyng
hherlyng / normals_and_tangents.py
Last active November 20, 2023 07:33
Facet normal and facet tangent vector approximation in dolfinx
# Copyright (C) 2023 Jørgen S. Dokken and Halvor Herlyng
#
# SPDX-License-Identifier: MIT
import ufl
import meshio
import numpy as np
import dolfinx as dfx