# Difference between revisions of "Kees' assignment"

From Interactive System for Ice sheet Simulation

(added solution section) |
m (→Numerical tips) |
||

Line 33: | Line 33: | ||

From the diffusivity, the flux is computed | From the diffusivity, the flux is computed | ||

− | :<math>\phi_{i+1/2} = D(x_{i+1/2}) \frac{\partial h}{\partial x}</math>, | + | :<math>\phi_{i+1/2} = -D(x_{i+1/2}) \frac{\partial h}{\partial x}</math>, |

where | where |

## Revision as of 18:58, 5 August 2009

## Contents |

## Model equation

where

and

## Model parameters

- km/yr
- = 920
- g=9.8
- A = 1e-16
- n=3
- dx=1.0 km

## Boundary conditions

- (left boundary)

- (right boundary)

## Numerical tips

Use a staggered grid such that the are computed at the **centers** of the grid (as opposed to the vertices, as we have been doing), so

From the diffusivity, the flux is computed

- ,

where

and then the flux () can be used to compute the rate of change of the surface from