Changeset 12274


Ignore:
Timestamp:
05/22/12 17:25:35 (13 years ago)
Author:
cborstad
Message:

progress toward damage in 3D plus a few typo fixes

Location:
issm/branches/trunk-jpl-damage/src/c
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • issm/branches/trunk-jpl-damage/src/c/modules/ModelProcessorx/CreateElementsVerticesAndMaterials.cpp

    r12004 r12274  
    7171                                InversionMaxParametersEnum,InversionThreshParametersEnum);
    7272
    73         /*Add new constrant material property tgo materials, at the end: */
     73        /*Add new constant material property to materials, at the end: */
    7474        materials->AddObject(new Matpar(numberofelements+1,iomodel));//put it at the end of the materials
    7575       
     
    8282        for (i=0;i<numberofvertices;i++){
    8383
    84                 /*vertices and nodes (same number, as we are running continuous galerkin formulation: */
     84                /*vertices and nodes (same number, as we are running continuous galerkin formulation): */
    8585                if(iomodel->my_vertices[i]){
    8686                       
  • issm/branches/trunk-jpl-damage/src/c/objects/Elements/Penta.cpp

    r12168 r12274  
    44754475        Input* input=NULL;
    44764476
    4477         if(enum_type==MaterialsRheologyBbarEnum){
     4477        if(enum_type==MaterialsRheologyBbarEnum || enum_type==MaterialsRheologyZbarEnum){
    44784478                if(!IsOnBed()) return;
    4479                 input=(Input*)matice->inputs->GetInput(MaterialsRheologyBEnum);
     4479                input=(Input*)matice->inputs->GetInput(enum_type);
    44804480        }
    44814481        else{
     
    44944494        Input* input=NULL;
    44954495
    4496         if(enum_type==MaterialsRheologyBbarEnum){
    4497                 input=(Input*)matice->inputs->GetInput(MaterialsRheologyBEnum);
     4496        if(enum_type==MaterialsRheologyBbarEnum || enum_type==MaterialsRheologyZbarEnum){
     4497                input=(Input*)matice->inputs->GetInput(enum_type);
    44984498        }
    44994499        else{
     
    45134513        Input* input=NULL;
    45144514
    4515         if(enum_type==MaterialsRheologyBbarEnum){
    4516                 input=(Input*)matice->inputs->GetInput(MaterialsRheologyBEnum);
     4515        if(enum_type==MaterialsRheologyBbarEnum || enum_type==MaterialsRheologyZbarEnum){
     4516                input=(Input*)matice->inputs->GetInput(enum_type);
    45174517        }
    45184518        else{
     
    50695069        this->InputDepthAverageAtBase(MaterialsRheologyBEnum,MaterialsRheologyBbarEnum,MaterialsEnum);
    50705070
     5071        /*Depth Average Z*/
     5072        this->InputDepthAverageAtBase(MaterialsRheologyZEnum,MaterialsRheologyZbarEnum,MaterialsEnum);
     5073
    50715074        /*Collapse element to the base*/
    50725075        Tria* tria=(Tria*)SpawnTria(0,1,2); //nodes 0, 1 and 2 make the new tria (lower face).
     
    50865089        /*Depth Average B*/
    50875090        this->InputDepthAverageAtBase(MaterialsRheologyBEnum,MaterialsRheologyBbarEnum,MaterialsEnum);
     5091
     5092        /*Depth Average Z*/
     5093        this->InputDepthAverageAtBase(MaterialsRheologyZEnum,MaterialsRheologyZbarEnum,MaterialsEnum);
    50885094
    50895095        /*Collapse element to the base*/
     
    51045110        this->InputDepthAverageAtBase(MaterialsRheologyBEnum,MaterialsRheologyBbarEnum,MaterialsEnum);
    51055111
     5112        /*Depth Average Z*/
     5113        this->InputDepthAverageAtBase(MaterialsRheologyZEnum,MaterialsRheologyZbarEnum,MaterialsEnum);
     5114
    51065115        /*Collapse element to the base*/
    51075116        Tria* tria=(Tria*)SpawnTria(0,1,2);
     
    51265135        for(int i=0;i<num_controls;i++){
    51275136
    5128                 if(control_type[i]==MaterialsRheologyBbarEnum){
     5137                if(control_type[i]==MaterialsRheologyBbarEnum || control_type[i]==MaterialsRheologyZbarEnum){
    51295138                        if (!IsOnBed()) goto cleanup_and_return;
    5130                         input=(Input*)matice->inputs->GetInput(MaterialsRheologyBEnum); _assert_(input);
     5139                        input=(Input*)matice->inputs->GetInput(control_type[i]); _assert_(input);
    51315140                }
    51325141                else{
     
    51405149                if (save_parameter) ((ControlInput*)input)->SaveValue();
    51415150
    5142                 if(control_type[i]==MaterialsRheologyBbarEnum){
    5143                         this->InputExtrude(MaterialsRheologyBEnum,MaterialsEnum);
     5151                if(control_type[i]==MaterialsRheologyBbarEnum || control_type[i]==MaterialsRheologyZbarEnum){
     5152                        this->InputExtrude(control_type[i],MaterialsEnum);
    51445153                }
    51455154        }
  • issm/branches/trunk-jpl-damage/src/c/objects/Elements/Tria.cpp

    r12168 r12274  
    37893789        this->GetConnectivityList(&connectivity[0]);
    37903790
    3791         /*Build frictoin element, needed later: */
     3791        /*Build friction element, needed later: */
    37923792        friction=new Friction("2d",inputs,matpar,analysis_type);
    37933793
Note: See TracChangeset for help on using the changeset viewer.