Changeset 17944
- Timestamp:
- 05/06/14 06:52:35 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/analyses/EnthalpyAnalysis.cpp
r17943 r17944 911 911 IssmDouble heatflux; 912 912 IssmDouble vec_heatflux[dim],normal_base[dim],d1enthalpy[dim]; 913 IssmDouble temperature, waterfraction;914 913 IssmDouble basalfriction,alpha2; 915 914 IssmDouble dt,yts; … … 926 925 IssmDouble latentheat = element->GetMaterialParameter(MaterialsLatentheatEnum); 927 926 IssmDouble rho_ice = element->GetMaterialParameter(MaterialsRhoIceEnum); 928 IssmDouble rho_water = element->GetMaterialParameter(MaterialsRho WaterEnum);927 IssmDouble rho_water = element->GetMaterialParameter(MaterialsRhoFreshwaterEnum); 929 928 Input* enthalpy_input = element->GetInput(EnthalpyEnum); _assert_(enthalpy_input); 930 929 Input* geothermalflux_input = element->GetInput(BasalforcingsGeothermalfluxEnum); _assert_(geothermalflux_input); … … 996 995 basalfriction=alpha2*(vx*vx + vy*vy + vz*vz); 997 996 998 element->EnthalpyToThermal(&temperature,&waterfraction,enthalpy[vertexdown],pressure[vertexdown]);999 997 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*/ 1001 999 heating[is]=(heatflux+basalfriction+geothermalflux); 1002 meltingrate_enthalpy[is]=heating[is]/( (1-waterfraction)*latentheat*rho_water); // m/s water equivalent1000 meltingrate_enthalpy[is]=heating[is]/(latentheat*rho_ice); // m/s water equivalent 1003 1001 } 1004 1002 }
Note:
See TracChangeset
for help on using the changeset viewer.