Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unpacking equations term by term #2

Open
glugeorge opened this issue Nov 4, 2022 · 9 comments
Open

Unpacking equations term by term #2

glugeorge opened this issue Nov 4, 2022 · 9 comments
Assignees

Comments

@glugeorge
Copy link
Owner

glugeorge commented Nov 4, 2022

@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 glugeorge assigned glugeorge and unassigned glugeorge Nov 4, 2022
@glugeorge
Copy link
Owner Author

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
Copy link
Collaborator

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
Copy link
Owner Author

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
Copy link
Owner Author

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
Copy link
Collaborator

How long did the simulation take?

@glugeorge
Copy link
Owner Author

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
Copy link
Collaborator

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
Copy link
Collaborator

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

@glugeorge
Copy link
Owner Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants