Hello,
I am working on a 2D hyperelasticity problem.
L = 1. # total length
d = L/10. # thickness
h = d/6. # size of a cell
my_domain = dolfinx.mesh.create_rectangle(comm=MPI.COMM_WORLD,
points=((0.0, -0.5*d), (L, 0.5*d)), n=(int(L/h), int(d/h)),
cell_type=dolfinx.mesh.CellType.triangle)
V = dolfinx.fem.VectorFunctionSpace(my_domain, ("CG", 2))
u = dolfinx.fem.Function(V)
I used to initialize my displacement function to zero using
u.interpolate(dolfinx.fem.Constant((0.,0.)))
But this now yields an error
TypeError: __init__() missing 1 required positional argument: 'c'
Many thanks in advance for your help with this!