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

Integration within a function in the weak form

+1 vote

Hi,

I am wondering is there an easy way to enable a function to be use in the weak formulation to contain an integration?

For example, the function $F(u)$ in the weak form has a variable $u$ that appears as an integration limit....

$$F(u) = \int^{u}_{0} H(u) K(\bar{u}) d\bar{u}$$

where $K(\bar{u})$ is some prescribed expression?

I thought of using numerical integration (e.g. scipy.integrate) to evaluate the integral. Is it possible to do it in FeNiCs?

Thanks!

asked Jul 6, 2015 by lee FEniCS User (1,170 points)
...