This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from mpi4py import MPI | |
from petsc4py import PETSc | |
from dolfinx.mesh import CellType, create_unit_square, create_rectangle | |
from dolfinx.fem import Function, FunctionSpace | |
import ufl | |
from dolfinx import fem, io | |
from ufl import dx, grad, inner, lhs, rhs | |
from dolfinx import cpp as _cpp | |
import numpy as np |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from mpi4py import MPI | |
from petsc4py import PETSc | |
from dolfinx.mesh import CellType, create_unit_square | |
from dolfinx.fem import Function, FunctionSpace | |
import ufl | |
from dolfinx import fem, io | |
from ufl import dx, grad, inner, lhs, rhs | |
from dolfinx import cpp as _cpp | |
import numpy as np |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import dolfinx | |
import sys | |
import numpy as np | |
import ufl | |
import json |