Hi Colin,
Thanks, indeed I had forgotten a trial function in my residual.
Yes I do need the the u-dependence in the maximum during the solve. If I substitute the definition of maximum into the residual, i.e. write
F = v*(u + 0.5*(u
+ abs(u)))*dx
gives the error
ufl.log.UFLException: UFL conditions cannot be evaluated as bool in a Python context.
Will it work if I use
assign instead of interpolate?
Best, Anna.
Hi Anna,
Are you intending that the u-dependence in maximum should be maintained during the solve? After doing the interpolation, there will be no symbolic record of where maximum's values came from.
That's probably not the cause of the error message though. It says that the form is not a linear form. This might mean that you accidentally included some TrialFunction (which turns it into a bilinear form) or perhaps forgot a factor of dx or
dS somewhere (which stops it from being a form).
all the best
--cjc
_______________________________________________
firedrake mailing list
firedrake@imperial.ac.uk
https://mailman.ic.ac.uk/mailman/listinfo/firedrake