Changeset 8567


Ignore:
Timestamp:
06/08/11 15:06:27 (14 years ago)
Author:
bkhakbaz
Message:

generalizing the K[0] and K[1] in hydrology for different hydro_p and hydro_q rather than 2 and 1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/objects/Elements/Tria.cpp

    r8561 r8567  
    27672767
    27682768        /*material parameters: */
    2769         double rho_ice, rho_water, g;
     2769        double rho_ice, rho_water, g,hydro_p,hydro_q;
    27702770        double dsdx, dsdy;
    27712771        double dbdx, dbdy;
     
    27782778        g=matpar->GetG();
    27792779        kn=matpar->GetKn();
     2780        hydro_p=matpar->GetHydroP();
     2781        hydro_q=matpar->GetHydroQ();
    27802782        Input* surfaceslopex_input=inputs->GetInput(SurfaceSlopeXEnum); _assert_(surfaceslopex_input);
    27812783        Input* surfaceslopey_input=inputs->GetInput(SurfaceSlopeYEnum); _assert_(surfaceslopey_input);
     
    27962798        watercolumn_input->GetParameterValue(&w,gauss);
    27972799
    2798         K[0]=pow(w,2)*(rho_ice*g*dsdx+(rho_water/rho_ice-1)*rho_ice*g*dbdx) - rho_ice * g * kn* w * (dsdx - dbdx ) * surface_slope;
    2799         K[1]=pow(w,2)*(rho_ice*g*dsdy+(rho_water/rho_ice-1)*rho_ice*g*dbdy) - rho_ice * g * kn *w * (dsdy - dbdy ) * surface_slope;
    2800  
    2801         //bk
    2802         //K[0]=fabs(pow(w,2)*(rho_ice*g*dsdx+(rho_water/rho_ice-1)*rho_ice*g*dbdx) - rho_ice * g * kn* w * (dsdx - dbdx ) * surface_slope);
    2803         //K[1]=fabs(pow(w,2)*(rho_ice*g*dsdy+(rho_water/rho_ice-1)*rho_ice*g*dbdy) - rho_ice * g * kn *w * (dsdy - dbdy ) * surface_slope);
     2800        K[0]=pow(w,hydro_p)*pow((rho_ice*g*dsdx+(rho_water/rho_ice-1)*rho_ice*g*dbdx) - rho_ice * g * kn/w * (dsdx - dbdx ) * surface_slope,hydro_q);
     2801        K[1]=pow(w,hydro_p)*pow((rho_ice*g*dsdy+(rho_water/rho_ice-1)*rho_ice*g*dbdy) - rho_ice * g * kn/w * (dsdy - dbdy ) * surface_slope,hydro_q);
     2802       
    28042803        //printf("K[0]=%g,K[1]=%g,w=%g\n",K[0],K[1],w); //bk
    28052804        //if (w<0) {printf("negative w!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n");
Note: See TracChangeset for help on using the changeset viewer.