Changeset 17944


Ignore:
Timestamp:
05/06/14 06:52:35 (11 years ago)
Author:
jbondzio
Message:

BUG: compute basal melt rate using ice density, and use relationship (1 - w)*rho_mixture = rho_ice

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/analyses/EnthalpyAnalysis.cpp

    r17943 r17944  
    911911        IssmDouble  heatflux;
    912912        IssmDouble  vec_heatflux[dim],normal_base[dim],d1enthalpy[dim];
    913         IssmDouble  temperature, waterfraction;
    914913        IssmDouble  basalfriction,alpha2;
    915914        IssmDouble  dt,yts;
     
    926925        IssmDouble latentheat = element->GetMaterialParameter(MaterialsLatentheatEnum);
    927926        IssmDouble rho_ice    = element->GetMaterialParameter(MaterialsRhoIceEnum);
    928         IssmDouble rho_water  = element->GetMaterialParameter(MaterialsRhoWaterEnum);
     927        IssmDouble rho_water  = element->GetMaterialParameter(MaterialsRhoFreshwaterEnum);
    929928        Input* enthalpy_input         = element->GetInput(EnthalpyEnum);                    _assert_(enthalpy_input);
    930929        Input* geothermalflux_input   = element->GetInput(BasalforcingsGeothermalfluxEnum); _assert_(geothermalflux_input);
     
    996995                        basalfriction=alpha2*(vx*vx + vy*vy + vz*vz);
    997996
    998                         element->EnthalpyToThermal(&temperature,&waterfraction,enthalpy[vertexdown],pressure[vertexdown]);
    999997                        geothermalflux_input->GetInputValue(&geothermalflux,gauss);
    1000                         /* -Mb= Fb-(q-q_geo)/((1-w)*L), cf Aschwanden 2012, eq.66*/
     998                        /* -Mb= Fb-(q-q_geo)/((1-w)*L*rho), and (1-w)*rho=rho_ice, cf Aschwanden 2012, eqs.1, 2, 66*/
    1001999                        heating[is]=(heatflux+basalfriction+geothermalflux);
    1002                         meltingrate_enthalpy[is]=heating[is]/((1-waterfraction)*latentheat*rho_water); // m/s water equivalent
     1000                        meltingrate_enthalpy[is]=heating[is]/(latentheat*rho_ice); // m/s water equivalent
    10031001                }
    10041002        }
Note: See TracChangeset for help on using the changeset viewer.