Changeset 21479


Ignore:
Timestamp:
01/11/17 07:29:00 (8 years ago)
Author:
bdef
Message:

CHG:Making Nightly run great again

File:
1 edited

Legend:

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

    r21476 r21479  
    347347                basalelement ->JacobianDeterminant(&Jdet,xyz_list,gauss);
    348348                basalelement ->NodalFunctions(basis,gauss);
    349 
    350349                epl_storing     = EplStoring(basalelement,gauss,epl_thick_input,epl_head_input,base_input);
    351350                /*Loading term*/
     
    570569                                /*Compute first the effective pressure in the EPL*/
    571570                                EPL_N=gravity*((rho_ice*ice_thickness[i])-(rho_water*(eplhead[i]-bed[i])));
    572                                 //                              if(EPL_N<0.0)EPL_N=0.0;
     571                                if(EPL_N<0.0)EPL_N=0.0;
    573572                                /*Get then the square of the gradient of EPL heads*/
    574573                                EPLgrad2 = (epl_slopeX[i]*epl_slopeX[i])+(epl_slopeY[i]*epl_slopeY[i]);
    575574                                /*And proceed to the real thing*/
    576                                 thickness[i] = old_thickness[i]*
    577                                         (2.0+((rho_water*gravity*dt)/(rho_ice*latentheat))*epl_conductivity*EPLgrad2-(2.0*(A*dt/(pow(n,n)))*(pow(EPL_N,n))))/
    578                                         (2.0-((rho_water*gravity*dt)/(rho_ice*latentheat))*epl_conductivity*EPLgrad2+(2.0*(A*dt/(pow(n,n)))*(pow(EPL_N,n))));
     575                                thickness[i] = old_thickness[i]/(1.0-((rho_water*gravity*epl_conductivity*EPLgrad2*dt)/(rho_ice*latentheat))+((2.0*A*dt*pow(EPL_N,n))/(pow(n,n))));
    579576                                /*Take care of otherthikening*/
    580577                                if(thickness[i]>max_thick){
     
    735732        storing=rho_freshwater*g*epl_porosity*epl_thickness*(water_compressibility+(epl_compressibility/epl_porosity));
    736733
    737         //porosity for unconfined region
    738         if (water_sheet<=0.9*epl_thickness){
    739                 epl_storing=epl_porosity;
    740         }
    741         //continuity ramp
    742         else if((water_sheet<epl_thickness) && (water_sheet>0.9*epl_thickness)){
    743                 epl_storing=(epl_thickness-water_sheet)*(epl_porosity-storing)/(0.1*epl_thickness)+storing;
    744         }
    745         //storing coefficient for confined
    746         else{
    747                 epl_storing=storing;
    748         }
    749         //return storing;
    750         return epl_storing;
     734        /* //porosity for unconfined region */
     735        /* if (water_sheet<=0.9*epl_thickness){ */
     736        /*      epl_storing=epl_porosity; */
     737        /* } */
     738        /* //continuity ramp */
     739        /* else if((water_sheet<epl_thickness) && (water_sheet>0.9*epl_thickness)){ */
     740        /*      epl_storing=(epl_thickness-water_sheet)*(epl_porosity-storing)/(0.1*epl_thickness)+storing; */
     741        /* } */
     742        /* //storing coefficient for confined */
     743        /* else{ */
     744        /*      epl_storing=storing; */
     745        /* } */
     746        return storing;
     747        //return epl_storing;
    751748}/*}}}*/
    752749
     
    760757        base_input->GetInputValue(&base_elev,gauss);
    761758
    762         //water_sheet=max(0.0,(prestep_head-base_elev));
    763         water_sheet=prestep_head-base_elev;
     759        water_sheet=max(0.0,(prestep_head-base_elev));
     760        //water_sheet=prestep_head-base_elev;
    764761       
    765762        //epl_transmitivity=epl_conductivity*epl_thickness;
    766         //if (element->Sid()==8)printf("water sheet is %f for Elt %i\n",water_sheet,element->Sid());
    767763        epl_transmitivity=epl_conductivity*min(water_sheet,epl_thickness);
    768764        return epl_transmitivity;
Note: See TracChangeset for help on using the changeset viewer.