underworld3 icon indicating copy to clipboard operation
underworld3 copied to clipboard

Advection-diffusion convergence issue

Open bknight1 opened this issue 1 year ago • 7 comments

With increasing resolution the error is not showing a convergence order: AdvDiff_HP_convergence

The errors are concentrated at the diffusive boundary: unknown (T) degree comparison: Hot_pipe_l1_deg_comparison

diffusivity (D) value comparison: Hot_pipe_l1_D_comparison

To test any updates, the script to check convergence is found here

bknight1 avatar Feb 19 '24 02:02 bknight1

I had a look at this. I think it is unrealistic to start with a case which has an infinite gradient. I have an example notebook that looks at advection starting from a finite time and looking at the change over time and with advection. I'll upload and you can review.

lmoresi avatar Feb 21 '24 09:02 lmoresi

Keen to have a look!

bknight1 avatar Feb 21 '24 11:02 bknight1

@bknight1 Take a look at Jupyterbook/Notebooks/Examples-Convection/Ex_AdvectionDiffusion_1dBlock.py.

I'm careful to start from a finite time after the step-function initial condition is applied so that it can be represented reasonably well by the mesh (maybe less so for the simplex example shown). Move it / diffuse it and compare before the analytic solution becomes invalid.

lmoresi avatar Feb 22 '24 11:02 lmoresi

Makes sense! I'll update the script and see how it performs

bknight1 avatar Feb 22 '24 13:02 bknight1

@bknight1 - is this still live with the replacement for the test and the recent debugging ?

lmoresi avatar Aug 29 '24 12:08 lmoresi

Last time I run it the convergence looked a bit better: AdvDiff-HP_setup&results.pdf

Re-running it now to see if the updates make a difference (updated my install to development last night)

bknight1 avatar Aug 30 '24 02:08 bknight1

These are the results after the update:

AdvDiff_convergence_tol=1e-06_new.pdf

Which appears to be worse...

bknight1 avatar Aug 30 '24 03:08 bknight1

Think this has been solved, so closing for now

bknight1 avatar Oct 17 '24 09:10 bknight1