assemble matrix in stokes problem, projection vrs assemble
I am implementing the Uzawa algorithm for a Stokes Problem therefore I need 3 matrices A, BT, B:
# Define function spaces
V = VectorFunctionS
Q = FunctionSpace(mesh, "CG", 1)
u = TrialFunction(V)
v = TestFunction(V)
p = TrialFunction(Q)
q = TestFunction(Q)
A=assemble(
BT=assemble(
B=assemble(
A, BT work well, but B should be BT transposed, and it isnt. B is wrong. But when B is assembled implicitely in each iteration step with a given velocity u_current as project(
The same thing with assemble doesn't work either assemble(
thanks,
Daniel
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Daniel Bare for more information if necessary.