Changeset 18033


Ignore:
Timestamp:
05/20/14 15:34:22 (11 years ago)
Author:
cborstad
Message:

CHG: working on P2 implementation for DamageEvolution

File:
1 edited

Legend:

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

    r17889 r18033  
    2323        parameters->AddObject(iomodel->CopyConstantObject(DamageMaxiterEnum));
    2424        parameters->AddObject(iomodel->CopyConstantObject(DamageMaxDamageEnum));
     25        parameters->AddObject(iomodel->CopyConstantObject(DamageElementinterpEnum));
    2526
    2627        /*Requested outputs*/
     
    4748void DamageEvolutionAnalysis::UpdateElements(Elements* elements,IoModel* iomodel,int analysis_counter,int analysis_type){/*{{{*/
    4849
    49         int finiteelement = P1Enum;
     50        int finiteelement;
     51
     52        iomodel->Constant(&finiteelement,DamageElementinterpEnum);
    5053
    5154        /*Update elements: */
     
    7578void DamageEvolutionAnalysis::CreateNodes(Nodes* nodes,IoModel* iomodel){/*{{{*/
    7679
    77         int finiteelement = P1Enum;
     80        int finiteelement;
     81
     82        iomodel->Constant(&finiteelement,DamageElementinterpEnum);
    7883
    7984        if(iomodel->domaintype!=Domain2DhorizontalEnum) iomodel->FetchData(1,MeshVertexonbaseEnum);
     
    8489
    8590        int stabilization;
    86         int finiteelement = P1Enum;
     91        int finiteelement;
    8792        iomodel->Constant(&stabilization,DamageStabilizationEnum);
     93        iomodel->Constant(&finiteelement,DamageElementinterpEnum);
    8894
    8995        IoModelToConstraintsx(constraints,iomodel,DamageSpcdamageEnum,DamageEvolutionAnalysisEnum,finiteelement);
     
    469475                damage_input = element->GetInput(DamageDEnum);   _assert_(damage_input);
    470476        }
    471 
    472 
    473477
    474478        /*retrieve the desired type of equivalent stress*/
     
    509513
    510514        /*Add input*/
    511         element->AddInput(DamageFEnum,f,P1Enum);
     515        element->AddInput(DamageFEnum,f,element->GetElementType());
    512516       
    513517        /*Clean up and return*/
Note: See TracChangeset for help on using the changeset viewer.