Changeset 21279


Ignore:
Timestamp:
10/17/16 02:41:47 (8 years ago)
Author:
bdef
Message:

CHG: modification in transfer and EPL thickness computations

Location:
issm/trunk-jpl/src/c
Files:
3 edited

Legend:

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

    r21233 r21279  
    498498                //Computing continuum function to apply to transfer term, transfer is null only if
    499499                // 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;
    503505                break;
    504506        default:
     
    540542                //Computing continuum function to apply to transfer term, transfer is null only if
    541543                // 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;
    545549
    546550                break;
     
    625629                               
    626630                                /*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])));
    628634                                if(EPL_N<0.0)EPL_N=0.0;
    629635                                /*Get then the square of the gradient of EPL heads*/
     
    631637                               
    632638                                /*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]);
    636645                                /*Take care of otherthikening*/
    637646                                if(thickness[i]>max_thick){
  • issm/trunk-jpl/src/c/analyses/HydrologyDCInefficientAnalysis.cpp

    r21233 r21279  
    629629                //Computing continuum function to apply to transfer term, transfer is null only if
    630630                //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;
    634636
    635637                break;
     
    668670                //Computing continuum function to apply to transfer term, transfer is null only if
    669671                //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
    673679                break;
    674680        default:
  • issm/trunk-jpl/src/c/solutionsequences/solutionsequence_hydro_nonlinear.cpp

    r19189 r21279  
    216216                                //If there is some colapse go through sediment again
    217217                                /* if(ThickCount<L2Count)eplconverged=true; */
    218                                 /* eplcount++; */
     218                                eplcount++;
    219219                               
    220220                                delete ug_epl_sub_iter;
Note: See TracChangeset for help on using the changeset viewer.