Changeset 21479
- Timestamp:
- 01/11/17 07:29:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk-jpl/src/c/analyses/HydrologyDCEfficientAnalysis.cpp ¶
r21476 r21479 347 347 basalelement ->JacobianDeterminant(&Jdet,xyz_list,gauss); 348 348 basalelement ->NodalFunctions(basis,gauss); 349 350 349 epl_storing = EplStoring(basalelement,gauss,epl_thick_input,epl_head_input,base_input); 351 350 /*Loading term*/ … … 570 569 /*Compute first the effective pressure in the EPL*/ 571 570 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; 573 572 /*Get then the square of the gradient of EPL heads*/ 574 573 EPLgrad2 = (epl_slopeX[i]*epl_slopeX[i])+(epl_slopeY[i]*epl_slopeY[i]); 575 574 /*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)))); 579 576 /*Take care of otherthikening*/ 580 577 if(thickness[i]>max_thick){ … … 735 732 storing=rho_freshwater*g*epl_porosity*epl_thickness*(water_compressibility+(epl_compressibility/epl_porosity)); 736 733 737 / /porosity for unconfined region738 if (water_sheet<=0.9*epl_thickness){739 epl_storing=epl_porosity;740 }741 / /continuity ramp742 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 confined746 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; 751 748 }/*}}}*/ 752 749 … … 760 757 base_input->GetInputValue(&base_elev,gauss); 761 758 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; 764 761 765 762 //epl_transmitivity=epl_conductivity*epl_thickness; 766 //if (element->Sid()==8)printf("water sheet is %f for Elt %i\n",water_sheet,element->Sid());767 763 epl_transmitivity=epl_conductivity*min(water_sheet,epl_thickness); 768 764 return epl_transmitivity;
Note:
See TracChangeset
for help on using the changeset viewer.