glugeorge / coupled_ice_hydrology

MIT License
7 stars 0 forks source link

Unpacking equations term by term #2

Open glugeorge opened 2 years ago

glugeorge commented 2 years ago

@jkingslake Plotting equations term by term yields these initial plots: Initial steady state condition:

image

Final steady state after perturbation to A leading to retreat of grounding line:

image

Plotting initial and final against each other (legends are a bit messy, need to think of how to better display):

image

This plot below shows how the advection term is largely ineffective until near the terminus.

image
glugeorge commented 2 years ago

I think the most interesting plot here is how the dN/dx term and the effective pressure interact to balance to define the f(Q,S) term

jkingslake commented 2 years ago

OK, nice. Are all these dimensional variables?

I see a bit of a blip at the place the ice-flow grid changes. Any ideas what is causing that?

Agreed the bottom-left plots are really interesting.

glugeorge commented 2 years ago

Yeah these variables are dimensional. I'm trying to think of how to best label the y axis - should I just use the units for the equations?

The blip I believe is due to errors coming from interpolating grids and also taking the gradient of the grids. Here is grad(x):

image

Here is grad(hu):

image
glugeorge commented 2 years ago
image

Using 10% of the grid being at a finer resolution (with 300 data points in the fine domain, 100 data points in coarse domain). We can see that the overall shapes of the curves remain the same whilst the interpolation errors move further up the glacier. There is some weird oscillations in the bottom left plot - I think these are some artifacts coming out of the solver, which solved "with potential inaccuracies". Will continue trying additional simulations at finer resolutions

jkingslake commented 2 years ago

How long did the simulation take?

glugeorge commented 1 year ago
Screen Shot 2022-11-12 at 16 30 05

This one with 900 grid points (800 on fine resolution for 25% of the grid) took 77 minutes. Overall it has the same observed behavior as the other resolution simulations, except the advection term effect becomes even smaller. I'd trust this one more than my initial run of 100 on fine resolution for 3% (even though the resolution becomes a bit worse in fine domain for this new one) because in that first run, the discontinuity happens right in the same area where the advection term becomes important

jkingslake commented 1 year ago

Looks good. I think the final versions of these runs may need to use a uniform resolution. This blip at the junction between the two gross is not very satisfactory. But continue using a lower resolution for now and then increase later for the final versions. Also it will be important to do that convergence analysis we have talked about, where you record some metric of the model (like GL position) for many simulations using increasingly fine resolution.

Do you have the accompanying plot of the variables for this simulation?

jkingslake commented 1 year ago

I think it could be useful for the discussion to describe three or four different regions, based on what the dominant terms are.

glugeorge commented 1 year ago
image

Here are variables for this simulation. And sure, I can do this convergence analysis with the steady state solutions. Yeah, the change between the two grids is pretty annoying, and I think it's mostly in instances where we have grad(variable)/grad(grid) for the term. I'll try playing around with ways of getting rid of this blip

I'll also try to describe these regions