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

How to access estimated error in nonlinear adaptive variational solver

+1 vote

I am using a nonlinear adaptive variational solver for a time dependent problem and would like to save the estimated error from each iteration and time step. I am using python. If I have named the solver as "solver" I can type solver.summary() and this will print out information about the error at each step which is useful but I would like to be able to plot the error. Is there a way to output the error information as a list I can save and then load to analyze later?

asked Jan 28, 2016 by aldenpack FEniCS User (1,450 points)

1 Answer

0 votes
 
Best answer

GenericAdaptiveVariationalSolver::adaptive_data() returns a list of Parameters objects. Example

data = solver.adaptive_data()
err = data[-1]['error_estimate']
answered Jan 29, 2016 by Jan Blechta FEniCS Expert (51,420 points)
selected Jun 27, 2016 by aldenpack

why do I get an empty list data?

The error message is below:
print data[-1]['error_estimate']
IndexError: list index out of range.

Would you please help me with the below problem, if you are convenient?
enter link description here
I want to solve the problem desperately.
Thank you very much!!!

Would you please help me with the below problem, if you are convenient?
How to get convergence rate in adaptive poisson problem ?
I want to solve the problem desperately.
Thank you very much!!!

...