Changeset 22049


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

NEW: added CoupledFlag(Neff) for frictionlaw 7, coulomb

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/analyses/ThermalAnalysis.cpp

    r22011 r22049  
    162162                        iomodel->FetchDataToInput(elements,"md.friction.q",FrictionQEnum);
    163163                        if (FrictionCoupling==1){
    164                           iomodel->FetchDataToInput(elements,"md.friction.effective_pressure",FrictionEffectivePressureEnum);
     164                                iomodel->FetchDataToInput(elements,"md.friction.effective_pressure",FrictionEffectivePressureEnum);
    165165                        }
    166166                        break;
     
    175175                        iomodel->FetchDataToInput(elements,"md.friction.q",FrictionQEnum);
    176176                        if (FrictionCoupling==1){
    177                           iomodel->FetchDataToInput(elements,"md.friction.effective_pressure",FrictionEffectivePressureEnum);
     177                                iomodel->FetchDataToInput(elements,"md.friction.effective_pressure",FrictionEffectivePressureEnum);
    178178                        }
    179179                        break;
     
    196196                        iomodel->FetchDataToInput(elements,"md.initialization.pressure",PressureEnum);
    197197                        iomodel->FetchDataToInput(elements,"md.initialization.temperature",TemperatureEnum);
     198                        break;
     199                case 7:
     200                        iomodel->FindConstant(&FrictionCoupling,"md.friction.coupling");
     201                        iomodel->FetchDataToInput(elements,"md.friction.coefficient",FrictionCoefficientEnum);
     202                        iomodel->FetchDataToInput(elements,"md.friction.coefficientcoulomb",FrictionCoefficientcoulombEnum);
     203                        iomodel->FetchDataToInput(elements,"md.friction.p",FrictionPEnum);
     204                        iomodel->FetchDataToInput(elements,"md.friction.q",FrictionQEnum);
     205                        if (FrictionCoupling==1){
     206                                iomodel->FetchDataToInput(elements,"md.friction.effective_pressure",FrictionEffectivePressureEnum);
     207                        }
    198208                        break;
    199209                case 9:
     
    232242                parameters->AddObject(iomodel->CopyConstantObject("md.friction.gamma",FrictionGammaEnum));
    233243        }
    234         if(frictionlaw==3 || frictionlaw==1){
     244        if(frictionlaw==3 || frictionlaw==1 || frictionlaw==7){
    235245                parameters->AddObject(iomodel->CopyConstantObject("md.friction.coupling",FrictionCouplingEnum));
    236246        }
Note: See TracChangeset for help on using the changeset viewer.