Vector Space Function
Asked by
Sebastian Rau
Hello,
i have a problem concerning a function of a Vector Function Space:
So there is a two dimensional mesh, and i use the function spaces and the function f as
V = FunctionSpace(
Q = FunctionSpace(
W = MixedFunctionSp
f = Function(W)
Then, after some steps, i want to calculate
inner(grad(f[0]), f[1])*dx,
but that gives me a shape mismatch error, so i guess f[1] only denotes the first component of the function in Space Q !? How can i call the part of f being in Q, such that the dimensions fit?
Your help is very much appreciated, thanks!
Regards
Sebastian
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Martin Sandve Alnæs
- Solved:
- Last query:
- Last reply:
To post a message you must log in.