Changeset 10449
- Timestamp:
- 11/03/11 11:03:56 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Elements/Tria.cpp
r10444 r10449 4603 4603 /*material parameters: */ 4604 4604 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; 4605 4607 double w; 4606 4608 double rho_ice, rho_water, g; … … 4614 4616 rho_water=matpar->GetRhoWater(); 4615 4617 g=matpar->GetG(); 4618 CR=matpar->GetHydrologyCR(); // To have Lebrocq equavalent equation: CR=0.01,n_man=0.02 4619 n_man=matpar->GetHydrologyN(); 4616 4620 Input* surfaceslopex_input=inputs->GetInput(SurfaceSlopeXEnum); _assert_(surfaceslopex_input); 4617 4621 Input* surfaceslopey_input=inputs->GetInput(SurfaceSlopeYEnum); _assert_(surfaceslopey_input); … … 4619 4623 Input* bedslopey_input=inputs->GetInput(BedSlopeYEnum); _assert_(bedslopey_input); 4620 4624 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; 4621 4628 4622 4629 gauss=new GaussTria(); … … 4630 4637 4631 4638 /* 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); 4636 4644 } 4637 4645
Note:
See TracChangeset
for help on using the changeset viewer.