Skip to content

Commit

Permalink
Update to dev.
Browse files Browse the repository at this point in the history
  • Loading branch information
jhale committed Mar 26, 2024
1 parent 7a18e64 commit c22b461
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions demo/demo_kirchhoff-love-clamped.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,13 @@

import numpy as np

from basix.ufl import element, mixed_element
import dolfinx
import ufl
from dolfinx.fem import FunctionSpace, dirichletbc
from dolfinx.fem import functionspace, dirichletbc
from dolfinx.fem.petsc import LinearProblem
from dolfinx.mesh import CellType, create_unit_square
from ufl import (FacetNormal, FiniteElement, Identity, Measure, MixedElement,
from ufl import (FacetNormal, Identity, Measure,
grad, inner, sym, tr)

from mpi4py import MPI
Expand All @@ -65,9 +66,9 @@

# +
k = 2
U_el = MixedElement([FiniteElement("Lagrange", ufl.triangle, k + 1),
FiniteElement("HHJ", ufl.triangle, k)])
U = FunctionSpace(mesh, U_el)
U_el = mixed_element([element("Lagrange", mesh.basix_cell(), k + 1),
element("HHJ", mesh.basix_cell(), k)])
U = functionspace(mesh, U_el)

w, M = ufl.TrialFunctions(U)
w_t, M_t = ufl.TestFunctions(U)
Expand Down

0 comments on commit c22b461

Please sign in to comment.