Changeset 21279
- Timestamp:
- 10/17/16 02:41:47 (8 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/analyses/HydrologyDCEfficientAnalysis.cpp
r21233 r21279 498 498 //Computing continuum function to apply to transfer term, transfer is null only if 499 499 // epl_head>sediment_head AND sediment_head>h_max 500 continuum=((1.0/(1.0+exp(-20.0*(sediment_head-epl_head)))))+(1.0/(1.0+exp(-20.0*(hmax-sediment_head)))); 501 factor=min(continuum,1.0); 502 transfer=leakage*factor; 500 //let's try without that for a while 501 /* continuum=((1.0/(1.0+exp(-20.0*(sediment_head-epl_head)))))+(1.0/(1.0+exp(-20.0*(hmax-sediment_head)))); */ 502 /* factor=min(continuum,1.0); */ 503 /* transfer=leakage*factor; */ 504 transfer=leakage; 503 505 break; 504 506 default: … … 540 542 //Computing continuum function to apply to transfer term, transfer is null only if 541 543 // epl_head>sediment_head AND sediment_head>h_max 542 continuum=((1.0/(1.0+exp(-20.0*(sediment_head-epl_head)))))+(1.0/(1.0+exp(-20.0*(hmax-sediment_head)))); 543 factor=min(continuum,1.0); 544 transfer=sediment_head*leakage*factor; 544 //let's try without that for a while 545 /* continuum=((1.0/(1.0+exp(-20.0*(sediment_head-epl_head)))))+(1.0/(1.0+exp(-20.0*(hmax-sediment_head)))); */ 546 /* factor=min(continuum,1.0); */ 547 /* transfer=sediment_head*leakage*factor; */ 548 transfer=sediment_head*leakage; 545 549 546 550 break; … … 625 629 626 630 /*Compute first the effective pressure in the EPL*/ 627 EPL_N=gravity*((rho_ice*ice_thickness[i])-(rho_water*max(0.0,(eplhead[i]-bed[i])))); 631 //EPL_N=gravity*((rho_ice*ice_thickness[i])-(rho_water*max(0.0,(eplhead[i]-bed[i])))); 632 //allowing EPLN larger than Pi 633 EPL_N=gravity*((rho_ice*ice_thickness[i])-(rho_water*(eplhead[i]-bed[i]))); 628 634 if(EPL_N<0.0)EPL_N=0.0; 629 635 /*Get then the square of the gradient of EPL heads*/ … … 631 637 632 638 /*And proceed to the real thing*/ 633 thickness[i] = old_thickness[i]*(1.0+((rho_water*gravity*dt)/(rho_ice*latentheat))*epl_conductivity*EPLgrad2- 634 (2.0*(A*dt/(pow(n,n)))*(pow(EPL_N,n)))); 635 639 /* thickness[i] = old_thickness[i]*(1.0+((rho_water*gravity*dt)/(rho_ice*latentheat))*epl_conductivity*EPLgrad2- */ 640 /* (2.0*(A*dt/(pow(n,n)))*(pow(EPL_N,n)))); */ 641 thickness[i] = old_thickness[i]* 642 (2.0+((rho_water*gravity*dt)/(rho_ice*latentheat))*epl_conductivity*EPLgrad2-(2.0*(A*dt/(pow(n,n)))*(pow(EPL_N,n))))/ 643 (2.0-((rho_water*gravity*dt)/(rho_ice*latentheat))*epl_conductivity*EPLgrad2+(2.0*(A*dt/(pow(n,n)))*(pow(EPL_N,n)))); 644 //thickness[i] = 0.5*(thickness[i]+old_thickness[i]); 636 645 /*Take care of otherthikening*/ 637 646 if(thickness[i]>max_thick){ -
issm/trunk-jpl/src/c/analyses/HydrologyDCInefficientAnalysis.cpp
r21233 r21279 629 629 //Computing continuum function to apply to transfer term, transfer is null only if 630 630 //epl_head>sediment_head AND sediment_head>h_max 631 continuum=((1.0/(1.0+exp(-20.0*(sediment_head-epl_head)))))+(1.0/(1.0+exp(-20.0*(hmax-sediment_head)))); 632 factor=min(continuum,1.0); 633 transfer=leakage*factor; 631 //let's try without that for a while 632 /* continuum=((1.0/(1.0+exp(-20.0*(sediment_head-epl_head)))))+(1.0/(1.0+exp(-20.0*(hmax-sediment_head)))); */ 633 /* factor=min(continuum,1.0); */ 634 /* transfer=leakage*factor; */ 635 transfer=leakage; 634 636 635 637 break; … … 668 670 //Computing continuum function to apply to transfer term, transfer is null only if 669 671 //epl_head>sediment_head AND sediment_head>h_max 670 continuum=((1.0/(1.0+exp(-20.0*(sediment_head-epl_head)))))+(1.0/(1.0+exp(-20.0*(hmax-sediment_head)))); 671 factor=min(continuum,1.0); 672 transfer=epl_head*leakage*factor; 672 //let's try without that for a while 673 /* continuum=((1.0/(1.0+exp(-20.0*(sediment_head-epl_head)))))+(1.0/(1.0+exp(-20.0*(hmax-sediment_head)))); */ 674 /* factor=min(continuum,1.0); */ 675 /* transfer=epl_head*leakage*factor; */ 676 677 transfer=epl_head*leakage; 678 673 679 break; 674 680 default: -
issm/trunk-jpl/src/c/solutionsequences/solutionsequence_hydro_nonlinear.cpp
r19189 r21279 216 216 //If there is some colapse go through sediment again 217 217 /* if(ThickCount<L2Count)eplconverged=true; */ 218 /* eplcount++; */218 eplcount++; 219 219 220 220 delete ug_epl_sub_iter;
Note:
See TracChangeset
for help on using the changeset viewer.