Changeset 10449


Ignore:
Timestamp:
11/03/11 11:03:56 (13 years ago)
Author:
bkhakbaz
Message:

addition of hydrology.CR and hydrology.n in the GetHydrologyWaterVelocity to convert between Lebrocq and Jesse's formulation

File:
1 edited

Legend:

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

    r10444 r10449  
    46034603        /*material parameters: */
    46044604        double mu_water=0.001787;  //unit= [N s/m2]
     4605        double VelocityFactor;  // This factor represents the number 12 in laminar flow velocity which can vary by differnt hydrology.CR
     4606        double n_man,CR;
    46054607        double w;
    46064608        double rho_ice, rho_water, g;
     
    46144616        rho_water=matpar->GetRhoWater();
    46154617        g=matpar->GetG();
     4618        CR=matpar->GetHydrologyCR(); // To have Lebrocq equavalent equation: CR=0.01,n_man=0.02
     4619        n_man=matpar->GetHydrologyN();
    46164620        Input* surfaceslopex_input=inputs->GetInput(SurfaceSlopeXEnum); _assert_(surfaceslopex_input);
    46174621        Input* surfaceslopey_input=inputs->GetInput(SurfaceSlopeYEnum); _assert_(surfaceslopey_input);
     
    46194623        Input* bedslopey_input=inputs->GetInput(BedSlopeYEnum);         _assert_(bedslopey_input);
    46204624        Input* watercolumn_input=inputs->GetInput(WatercolumnEnum);     _assert_(watercolumn_input);
     4625
     4626        /* compute VelocityFactor */
     4627        VelocityFactor= n_man*pow(CR,2)*rho_water*g/mu_water;
    46214628
    46224629        gauss=new GaussTria();
     
    46304637
    46314638                /* Water velocity x and y components */
    4632                 vx[iv]= - pow(w,2)/(12 * mu_water)*(rho_ice*g*dsdx+(rho_water-rho_ice)*g*dbdx);
    4633                 vy[iv]= - pow(w,2)/(12 * mu_water)*(rho_ice*g*dsdy+(rho_water-rho_ice)*g*dbdy);
    4634                 //vx[iv]=0.001;
    4635                 //vy[iv]=0;
     4639        //      vx[iv]= - pow(w,2)/(12 * mu_water)*(rho_ice*g*dsdx+(rho_water-rho_ice)*g*dbdx);
     4640        //      vy[iv]= - pow(w,2)/(12 * mu_water)*(rho_ice*g*dsdy+(rho_water-rho_ice)*g*dbdy);
     4641       
     4642                vx[iv]= - pow(w,2)/(VelocityFactor* mu_water)*(rho_ice*g*dsdx+(rho_water-rho_ice)*g*dbdx);
     4643                vy[iv]= - pow(w,2)/(VelocityFactor* mu_water)*(rho_ice*g*dsdy+(rho_water-rho_ice)*g*dbdy);
    46364644        }
    46374645
Note: See TracChangeset for help on using the changeset viewer.