Regarding Error Indicator in FF++

Hello, all expert
I am trying to write the following error indicator in FF++.

Its FF++ code( according to me):

Blockquote
sqrt(int1d(Th)(hTriangle*((dx(phi))^2+(dy(phi))^2))+intalledges(Th)((lenEdge*((jump(dx(phi)))^2+(jump(dy(phi)))^2))/nTonEdge*(nTonEdge-1)))
Blockquote
Is It Correct ???.

How, to write this (the normalized error indicator) then in FF++. Please help. Thanks in advance.

There is an example of such a computation in the documentation

page 230

Yes Sir. Thank you. But i am getting problem to write the normalized error indicator.

This is sir.

I am facing problem to write the denominator sir.

just do that in 2 times: one for the numerator etaK ; divide by a constant real cnst = 1 ;
and after compute the constant cnst = max(etaK[]); and the get the correct result if etaK is a P0 finite element.

Thanks sir for your replies. Can you please give me exact FF++ code of it??. I am facing problem to write it.

my code not valided , but running:

monirul25.edp (962 Bytes)

1 Like

Thank you so much sir.