Changeset 19061


Ignore:
Timestamp:
02/02/15 14:45:51 (10 years ago)
Author:
Eric.Larour
Message:

CHG: added IceMass computation.

Location:
issm/trunk-jpl/src/c/classes/Elements
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/Elements/Element.h

    r19033 r19061  
    204204                virtual void       GetVerticesCoordinatesBase(IssmDouble** xyz_list)=0;
    205205                virtual void       GetVerticesCoordinatesTop(IssmDouble** xyz_list)=0;
     206                virtual IssmDouble IceMass(void)=0;
    206207                virtual IssmDouble IceVolume(void)=0;
    207208                virtual IssmDouble IceVolumeAboveFloatation(void)=0;
  • issm/trunk-jpl/src/c/classes/Elements/Penta.cpp

    r19029 r19061  
    12871287
    12881288}/*}}}*/
     1289IssmDouble Penta::IceMass(void){/*{{{*/
     1290
     1291        IssmDouble rho_ice;
     1292       
     1293        if(!IsIceInElement())return 0.; //do not contribute to the volume of the ice!
     1294
     1295        /*recover ice density: */
     1296        rho_ice=matpar->GetMaterialParameter(MaterialsRhoIceEnum);
     1297
     1298        return rho_ice*this->IceVolume();
     1299}
     1300/*}}}*/
    12891301IssmDouble Penta::IceVolume(void){/*{{{*/
    12901302
  • issm/trunk-jpl/src/c/classes/Elements/Penta.h

    r18968 r19061  
    8787                void           GetVerticesCoordinatesBase(IssmDouble** pxyz_list);
    8888                void           GetVerticesCoordinatesTop(IssmDouble** pxyz_list);
     89                IssmDouble     IceMass(void);
    8990                IssmDouble     IceVolume(void);
    9091                IssmDouble     IceVolumeAboveFloatation(void);
  • issm/trunk-jpl/src/c/classes/Elements/Seg.h

    r18968 r19061  
    7878                void        GetVerticesCoordinatesBase(IssmDouble** pxyz_list){_error_("not implemented yet");};
    7979                void        GetVerticesCoordinatesTop(IssmDouble** pxyz_list){_error_("not implemented yet");};
     80                IssmDouble  IceMass(void){_error_("not implemented yet");};
    8081                IssmDouble  IceVolume(void){_error_("not implemented yet");};
    8182                IssmDouble  IceVolumeAboveFloatation(void){_error_("not implemented yet");};
  • issm/trunk-jpl/src/c/classes/Elements/Tetra.h

    r18968 r19061  
    8484                bool        HasFaceOnBase();
    8585                bool        HasFaceOnSurface();
     86                IssmDouble  IceMass(void){_error_("not implemented yet");};
    8687                IssmDouble  IceVolume(void){_error_("not implemented yet");};
    8788                IssmDouble  IceVolumeAboveFloatation(void){_error_("not implemented yet");};
  • issm/trunk-jpl/src/c/classes/Elements/Tria.cpp

    r19033 r19061  
    16221622                return false;
    16231623        }
     1624}
     1625/*}}}*/
     1626IssmDouble Tria::IceMass(void){/*{{{*/
     1627
     1628        IssmDouble rho_ice;
     1629       
     1630        if(!IsIceInElement())return 0.; //do not contribute to the volume of the ice!
     1631
     1632        /*recover ice density: */
     1633        rho_ice=matpar->GetMaterialParameter(MaterialsRhoIceEnum);
     1634
     1635        return rho_ice*this->IceVolume();
    16241636}
    16251637/*}}}*/
  • issm/trunk-jpl/src/c/classes/Elements/Tria.h

    r19033 r19061  
    9090                bool        HasEdgeOnBase();
    9191                bool        HasEdgeOnSurface();
     92                IssmDouble  IceMass(void);
    9293                IssmDouble  IceVolume(void);
    9394                IssmDouble  IceVolumeAboveFloatation(void);
Note: See TracChangeset for help on using the changeset viewer.