handling a term involving composition
Is it possible in Dolfin to solve a problem (given here in
1D for simplicity) like
-u''(x) + u(x^2) = f(x)
on an interval, with boundary conditions. (For example,
if f(x) = x^4 - 2 and the BC are u(0)=0, u(1)=1, then
u(x)=x^2 is a solution.) The oddity is, of course, that the
lower order term is u(x^2), not u(x). In this simple
example, of course, there are analytic things I can do,
but the real problem is much more complicated.
Actually I want to solve a nonlinear problem, where the
lower order term is u(...u(x)...) with the argument
to u involving u(x). When I iterate this will lead
to terms like u(...uold(x)...), where uold will be
a known finite element function, and u a new finite element
function to be determined.
Is there any way to define the bilinear form "u(x^2)*v(x)*dx"
or "u(...uold(
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: