Changeset 17157


Ignore:
Timestamp:
01/22/14 14:42:57 (11 years ago)
Author:
jbondzio
Message:

CHG: enthalpy melting rates and drainage are now computed in water equivalent

File:
1 edited

Legend:

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

    r17046 r17157  
    869869        IssmDouble latentheat = element->GetMaterialParameter(MaterialsLatentheatEnum);
    870870        IssmDouble rho_ice    = element->GetMaterialParameter(MaterialsRhoIceEnum);
     871        IssmDouble rho_water  = element->GetMaterialParameter(MaterialsRhoWaterEnum);
    871872        Input* enthalpy_input         = element->GetInput(EnthalpyEnum);                    _assert_(enthalpy_input);
    872873        Input* geothermalflux_input   = element->GetInput(BasalforcingsGeothermalfluxEnum); _assert_(geothermalflux_input);
     
    942943                        /* -Mb= Fb-(q-q_geo)/((1-w)*L), cf Aschwanden 2012, eq.66*/
    943944                        heating[is]=(heatflux+basalfriction+geothermalflux);
    944                         meltingrate_enthalpy[is]=heating[is]/((1-waterfraction)*latentheat*rho_ice); // m/s water equivalent //????
    945                 }
    946         }
    947         /* enthalpy might have been changed, update */
    948         //element->AddInput(EnthalpyEnum,enthalpy,P1Enum);
     945                        meltingrate_enthalpy[is]=heating[is]/((1-waterfraction)*latentheat*rho_water); // m/s water equivalent
     946                }
     947        }
    949948
    950949        /******** DRAINAGE *****************************************/
     
    987986                        watercolumn[vertexdown]+=meltingrate_enthalpy[is];
    988987                }       
     988                basalmeltingrate[vertexdown]*=rho_water/rho_ice; // convert meltingrate from water to ice equivalent
    989989                _assert_(watercolumn[vertexdown]>=0.);
    990990        }
     
    10551055                vertexup   = pairindices[is*2+1];
    10561056                height_element=fabs(xyz_list[vertexup*3+2]-xyz_list[vertexdown*3+2]);
    1057                 pdrainrate_element[is]=(deltawaterfractions[vertexdown]+deltawaterfractions[vertexup])/2.*rho_water/rho_ice*height_element;
     1057                pdrainrate_element[is]=(deltawaterfractions[vertexdown]+deltawaterfractions[vertexup])/2.*height_element; // return water equivalent of drainage
    10581058        }
    10591059
Note: See TracChangeset for help on using the changeset viewer.