Hello,
I would like to solve a time depend problem in a mixed
function space.
What is the correct way to define the functions (u1, tau1, p1)
and to update them in the time loop in what follows:
V_u = VectorFunctionSpace(mesh, "DG", 2) # vector
V_tau = TensorFunctionSpace(mesh, "DG", 2, symmetry=False) # matrix
V_p = FunctionSpace(mesh, "DG", 1) # scalar
W = MixedFunctionSpace([V_u,V_tau,V_p])
(u, tau, p) = TrialFunctions(W)
(v, sig, q) = TestFunctions(W)
# definition of a function in W
(u1, tau1, p1) <-?-> Functions(W)
# definition of my forms
# using operators defined for matrix, vector, ...
a = f( u, tau, p, v, sig, q)
L = f( v, sig, q, u1, tau1, p1, ...)
A = assemble(a)
sol = Function(W)
while t < T
t += dt
b = assemble(L)
solve(A,sol.vector(),b)
# update the right hand side
(u1, tau1, p1) <-?- sol
thanks in advance