demo_adaptive_basisgen More...
Go to the source code of this file.
Functions | |
function | demo_adaptive_basisgen () |
demo_adaptive_basisgen More... | |
demo_adaptive_basisgen
Definition in file demo_adaptive_basisgen.m.
function demo_adaptive_basisgen | ( | ) |
demo_adaptive_basisgen
small animation of the adaptive basis generation for the gdl-convection-diffusion problem. I.e. the parameter domain is plotted with the adaptive grid that is used in the basis generation procedure. The selected parameter is indicated with a point for each new basis vector and the colors indicate the number of basis functions selected for the parameter (as we have a time-dependent problem, many snapshots for identical parameter can possibly be end up in the basis: essentially all time-instants of the trajectory.)
The nice aspect here is, that the physics of the problem is recovered: The beta-value (x-axis) represents a weight in the convex combination defining the boundary data. Hence the most important snapshots are correctly found for beta=0 and 1 (and almost reflection symmetric!) The y-axis represents the diffusivity: We also recover the optimal logarithmical distribution of snapshot points, which is known from theory. But here it is found completely automatically.
Definition at line 17 of file demo_adaptive_basisgen.m.