Changeset 8567
- Timestamp:
- 06/08/11 15:06:27 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Elements/Tria.cpp
r8561 r8567 2767 2767 2768 2768 /*material parameters: */ 2769 double rho_ice, rho_water, g ;2769 double rho_ice, rho_water, g,hydro_p,hydro_q; 2770 2770 double dsdx, dsdy; 2771 2771 double dbdx, dbdy; … … 2778 2778 g=matpar->GetG(); 2779 2779 kn=matpar->GetKn(); 2780 hydro_p=matpar->GetHydroP(); 2781 hydro_q=matpar->GetHydroQ(); 2780 2782 Input* surfaceslopex_input=inputs->GetInput(SurfaceSlopeXEnum); _assert_(surfaceslopex_input); 2781 2783 Input* surfaceslopey_input=inputs->GetInput(SurfaceSlopeYEnum); _assert_(surfaceslopey_input); … … 2796 2798 watercolumn_input->GetParameterValue(&w,gauss); 2797 2799 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 2804 2803 //printf("K[0]=%g,K[1]=%g,w=%g\n",K[0],K[1],w); //bk 2805 2804 //if (w<0) {printf("negative w!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n");
Note:
See TracChangeset
for help on using the changeset viewer.