This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Manual assembling of a nonlinear form

0 votes

I solve time-dependent problem with the right hand side of
$$ L = \int_\Omega f(u) v dx $$
with nonlinear function $f(u)$ depending on the $u$ calculated on the previous step. Automatic assembling takes a lot of cpu time per iteration an Fenix manual recommends to make matrix operations using assembling only of mass and stiffness matrix. But how to compute matrix for L if function $f(u)$ is nonlinear and $u$ is a Function object?

asked Aug 27, 2016 by engraver FEniCS Novice (150 points)
...