Hello everyone,
This is my first time using Fenics and I've run into a bit of trouble.
I am trying to construct the UFL file to setup solving the following PDE:
$$ \nabla^2 \phi = -\frac{\Lambda^5}{\phi^2} + \frac{\rho}{M} $$
where $ \Lambda $ and $M$ are constants and $\rho$ is the source term.
I'm trying to do this by defining the semi-linear form F = (...) as for the dolfin implementation, but I'm running into the error:
"FFC: Applying nonlinear operator to expression depending on form argument v_1".
Here is my UFL:
Elements
element = FiniteElement("Lagrange", triangle, 1)
Trial and Test Functions
u = TrialFunction(element)
v = TestFunction(element)
f = Coefficient(element)
Parameters
Lambda = Constant(triangle)
M = Constant(triangle)
Semilinear Form
F = inner(grad(u), grad(v))dx - ((fv/M)dx) + (pow(Lambda, 5.0)v/pow(u, 2.0))*dx
I've tried my best to piece together what this should look like based on the documentation, but giving that this is my first project I definitely have a lot to learn.
Any advice would be hugely appreciated.
Thanks!