Dot product for system of equations
Asked by
Praveen C
Hello
I have a system of two equations in 1-D. If I do the following, I get errors. How do I take dot product in this case.
Thanks
praveen
# Load mesh from file
mesh = UnitInterval(20)
V = FunctionSpace(mesh, "CG", 1)
W = V * V
# Define test functions
w = TestFunctions(W)
# Define trial functions
Uold = Function(W)
U = Function(W)
F = (1/k)*dot(U - Uold,w)*dx
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.