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

Restrict an expression twice

0 votes

I ve tried to add this integral but comes with error

Exception: Expression is restricted twice

+dot(u0*n,avg(D*grad(v('-'))))*ds(3)
asked May 4, 2017 by LeoCosta FEniCS User (1,190 points)
edited May 4, 2017 by LeoCosta

Can you write the mathematical integral you're trying to formulate in ufl?

$\int an \cdot \lbrace D \nabla u \rbrace d S(3)$

It can be seen in page 9 from article. It is a particle of equation 3.9 in $ \Gamma_I$ interface

1 Answer

0 votes

I ve open the expression to solve it. If any have the same problem. Look below:

-(0.5)dot(D("-")grad(v)("-"),u0n("-"))dS(3)-(0.5)dot(D("+")grad(v)("+"),u0n("+"))dS(3)
-(0.5)dot(D("+")grad(v)("+"),u0n("-"))dS(3)-(0.5)dot(D("-")grad(v)("-"),u0n("+"))dS(3)

But the problem has been solved for

-(0.5)dot(D("-")grad(v)("-"),u0n("-"))dS(3)

answered May 8, 2017 by LeoCosta FEniCS User (1,190 points)
...