Good evening
I wish I was able to answer your question, but I have another one instead.
In the code above you use
Ue = VectorElement("CG", domain.ufl_cell(), 1, dim=3)
it looks like ufl.VectorElement has been replaced with basix.ufl.element)
So I tried the following with your simple beam mesh
# Define the vector element using basix
Ue = basix.ufl.element(
family=basix.ElementFamily.P, # Lagrange family
cell=basix.CellType.interval, # 1D cell type
degree=1,
shape=(3,))
but I get this error I don’t manage :
---> 13 W = FunctionSpace(domain, Ue*Ue)
unsupported operand type(s) for *: '_BlockedElement' and '_BlockedElement'
Also tried :
Ue = dolfinx.fem.functionspace(domain, ("CG", 2,(gdim,)))
W = FunctionSpace(domain, Ue*Ue)
but got :
----> 2 W = FunctionSpace(domain, Ue*Ue)
TypeError: unsupported operand type(s) for *: 'FunctionSpace' and 'FunctionSpace'
Can anyone help me through this one ?