Nonlinear convective term UFL file
Asked by
Charles Cook
Hello,
I am working on solving a nonlinear convective diffusion (Burger's) equation by linearizing the PDE (following suite of the fenics-book tutorial chapter).
For the convective term,
u*grad(u)
after linearizing with u^(k+1) = u^k+du with du small so that Higher order terms may be neglected, multiplying by a test function, and integrating over d_omega, I have a term
int(uk*grad(du) v, d_omega)
My best guess for my bilinear term is
uk*grad(du)*v*dx
however, I receive indexing errors (assuming this term is of the wrong dimension).
My first question is obvious, how did I go wrong, and the second, is there a tutorial/guide for writing UFL files?
Thank you!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Marie Rognes
- Solved:
- Last query:
- Last reply:
To post a message you must log in.