Changeset 23114
- Timestamp:
- 08/17/18 13:45:39 (7 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/analyses/StressbalanceAnalysis.cpp
r23066 r23114 845 845 InputUpdateFromConstantx(elements,1.,FrictionQEnum); 846 846 break; 847 case 10: 848 iomodel->FetchDataToInput(elements,"md.friction.till_friction_angle",FrictionTillFrictionAngleEnum); 849 iomodel->FetchDataToInput(elements,"md.friction.sediment_compressibility_coefficient",FrictionSedimentCompressibilityCoefficientEnum); 850 iomodel->FetchDataToInput(elements,"md.friction.watercolumn_max",FrictionWatercolumnMaxEnum); 851 break; 847 852 default: 848 _error_(" not supported");853 _error_("friction law "<< frictionlaw <<" not supported"); 849 854 } 850 855 … … 910 915 if(frictionlaw==5) parameters->AddObject(iomodel->CopyConstantObject("md.friction.f",FrictionFEnum)); 911 916 if(frictionlaw==9) parameters->AddObject(iomodel->CopyConstantObject("md.friction.gamma",FrictionGammaEnum)); 917 if(frictionlaw==10){ 918 parameters->AddObject(iomodel->CopyConstantObject("md.friction.pseudoplasticity_exponent",FrictionPseudoplasticityExponentEnum)); 919 parameters->AddObject(iomodel->CopyConstantObject("md.friction.threshold_speed",FrictionThresholdSpeedEnum)); 920 parameters->AddObject(iomodel->CopyConstantObject("md.friction.delta",FrictionDeltaEnum)); 921 parameters->AddObject(iomodel->CopyConstantObject("md.friction.void_ratio",FrictionVoidRatioEnum)); 922 } 912 923 913 924 }/*}}}*/ -
issm/trunk-jpl/src/c/classes/Loads/Friction.cpp
r23066 r23114 681 681 */ 682 682 683 /*Compute effective pressure first */ 684 IssmDouble N,delta,W,Wmax,e0,Cc,P0; 683 /*compute ice pressure P0*/ 684 IssmDouble thickness,base,P0; 685 element->GetInputValue(&thickness, gauss,ThicknessEnum); 686 element->GetInputValue(&base, gauss,BaseEnum); 687 //element->GetInputValue(&sealevel, gauss,SealevelEnum); 688 IssmDouble rho_ice = element->GetMaterialParameter(MaterialsRhoIceEnum); 689 IssmDouble gravity = element->GetMaterialParameter(ConstantsGEnum); 690 P0 = gravity*rho_ice*thickness; 691 692 /*Compute effective pressure*/ 693 IssmDouble N,delta,W,Wmax,e0,Cc; 685 694 element->parameters->FindParam(&delta,FrictionDeltaEnum); 686 695 element->parameters->FindParam(&e0,FrictionVoidRatioEnum); 687 //element->parameters->FindParam(&P0,XXEnum);688 _error_("don't know what P0 is");689 696 element->GetInputValue(&Cc,gauss,FrictionSedimentCompressibilityCoefficientEnum); 690 697 element->GetInputValue(&W,gauss,WatercolumnEnum); 691 Wmax = 0.; _error_("Don't know what to do with Wmax yet");698 element->GetInputValue(&Wmax,gauss,FrictionWatercolumnMaxEnum); 692 699 N = delta*P0*pow(10.,(e0/Cc)*(1.-W/Wmax)); 693 700
Note:
See TracChangeset
for help on using the changeset viewer.