-
Notifications
You must be signed in to change notification settings - Fork 36
Closed
Description
Hi developers,
According to frcition.m, md.friction.coupling is defined as
0: uniform sheet
1: ice pressure only
2: water pressure assuming uniform sheet
3: use provided effective pressure (~ md.friction.effective_pressure)
4: use coupled model (not implemented yet).
However, src/m/mech/basalstress.m contains following logic:
switch(md.friction.coupling)
case 0
N = max(md.constants.g*(md.materials.rho_ice*md.geometry.thickness+md.materials.rho_water*md.geometry.base),0);
case 3
N = max(md.friction.effective_pressure, 0);
otherwise
error('not supported yet');
endI believe the above code should be updated to
switch(md.friction.coupling)
case 0
N = md.constants.g*(md.materials.rho_ice*md.geometry.thickness+md.materials.rho_water*md.geometry.base);
case 1
N = md.constants.g*md.materials.rho_ice;
case 2
N = max(md.constants.g*(md.materials.rho_ice*md.geometry.thickness+md.materials.rho_water*md.geometry.base),0);
case 3
N = max(md.friction.effective_pressure, 0);
case 4
error('md.friction.coupling=4 is not supported yet.');
otherwise
error('not supported yet');
endIf there is agreement on this change, I will commit the updated code to the main branch.
Best regards,
Inwoo
Metadata
Metadata
Assignees
Labels
No labels