Manipulate Mixed Functions
I am trying to run this simple code:
mesh = UnitSquare(20,20)
V = VectorFunctionS
Q = FunctionSpace(mesh, 'CG', 1)
W = MixedFunctionSp
u, p = TrialFunctions(W)
v, q = TestFunctions(W)
up_ = Function(W)
u_, p_ = up_.split()
Suppose I perform one iteration of some variational form, and get my results stored in up_.
What I want to do next is to pick and use some values of u_, so I convert it to a vector instance:
U_ = u_.vector()
But I get the following message:
Size of vector: 1323
Size of function space: 882
-------
RuntimeError Traceback (most recent call last)
I am actually doing u_.vector() before solving, but this should work anyway, right?
Thanks for your time,
Marcos
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Marcos Samudio
- Solved:
- Last query:
- Last reply: