snowpack-model / snowpack

SNOWPACK model
GNU Lesser General Public License v3.0
10 stars 5 forks source link

Branch divergenceSnowDrift: Mismatch between WINDEROSIONDEPOSITION and delta SWE #22

Closed EricKeenan closed 3 years ago

EricKeenan commented 3 years ago

I'm noticing some strange differences between WINDEROSIONDEPOSITION and delta SWE.

For example, after a few time steps, the time sum of WINDEROSIONDEPOSITION looks like this. Sensible right?

Screen Shot 2021-04-16 at 2 23 33 PM

But then delta SWE looks like this.

Screen Shot 2021-04-16 at 2 25 48 PM

Somehow I think the different variables in SnowpackInterface.cc are not being updated properly.

EricKeenan commented 3 years ago

Variables to look at include:

mns, winderosiondeposition, tmp_ErodedMass, and ErodedMass.

EricKeenan commented 3 years ago

In the driftingsnow branch winderosiondeposition is defined twice in calcExplicitSnowDrift. Is this relevant for my problem? E.g.

L1541

winderosiondeposition(ix, iy) = tmp_ErodedMass(ix, iy);

and L1665

winderosiondeposition(ix, iy) = dM(ix, iy);
EricKeenan commented 3 years ago

After discussion with @nwever, we determined that the mismatch between delta SWE and WINDEROSIONDEPOSITION can be explained by the MS_WIND variable. MS_WIND represents the mass of eroded snow (kg/m^2). This mass, while suspended above the snow surface is not included in the model SWE. This is why delta SWE has a much larger magnitude than WINDEROSIONDEPOSITION.