Changeset 22047


Ignore:
Timestamp:
09/06/17 04:43:52 (8 years ago)
Author:
sjohnsen
Message:

NEW: added CoupledFlag for frictionlaw 7, coulomb

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/Loads/Friction.cpp

    r22039 r22047  
    289289
    290290        /*diverse: */
     291        int         CoupledFlag;
    291292        IssmDouble  r,s;
    292293        IssmDouble  drag_p, drag_q;
     
    308309        IssmDouble rho_ice          = element->GetMaterialParameter(MaterialsRhoIceEnum);
    309310        IssmDouble gravity          = element->GetMaterialParameter(ConstantsGEnum);
     311        element->parameters->FindParam(&CoupledFlag,FrictionCouplingEnum);
    310312
    311313        //compute r and q coefficients: */
     
    314316
    315317        //From base and thickness, compute effective pressure when drag is viscous:
    316         Neff=gravity*(rho_ice*thickness+rho_water*(base-sealevel));
     318        switch(CoupledFlag){
     319                case 0:
     320                        Neff=gravity*(rho_ice*thickness+rho_water*(base-sealevel));
     321                        break; 
     322                case 1:
     323                        element->GetInputValue(&Neff,gauss,FrictionEffectivePressureEnum);
     324                        break;
     325                case 2:
     326                        element->GetInputValue(&Neff,gauss,EffectivePressureEnum);
     327                        break;
     328                default:
     329                        _error_("not supported");
     330        }
     331
    317332        if(Neff<0)Neff=0;
    318333
Note: See TracChangeset for help on using the changeset viewer.