Changeset 17863


Ignore:
Timestamp:
04/28/14 15:20:07 (11 years ago)
Author:
seroussi
Message:

BUG: last changes for sigmaNN and Contact

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/Elements/Tria.cpp

    r17862 r17863  
    166166                /* Get node coordinates and dof list: */
    167167                GetVerticesCoordinates(&xyz_list);
    168            GetVerticesCoordinatesTop(&xyz_list_base);
     168           GetVerticesCoordinatesBase(&xyz_list_base);
    169169
    170170                /*Retrieve all inputs we will be needing: */
     
    193193
    194194                /*Compute sigma_nn*/
    195                 sigma_nn=sigma_xx*base_normal[0]*base_normal[0] + sigma_xy*base_normal[0]*base_normal[1] + sigma_yy*base_normal[1]*base_normal[1];
     195                sigma_nn=sigma_xx*base_normal[0]*base_normal[0] + 2*sigma_xy*base_normal[0]*base_normal[1] + sigma_yy*base_normal[1]*base_normal[1];
    196196
    197197                /*Add Stress tensor components into inputs*/
     
    14501450        /* Get node coordinates and dof list: */
    14511451        GetVerticesCoordinates(&xyz_list);
    1452         GetVerticesCoordinatesTop(&xyz_list_base);
     1452        GetVerticesCoordinatesBase(&xyz_list_base);
    14531453
    14541454        /*Retrieve all inputs we will be needing: */
     
    16911691        top_normal[0]= + vector[1]/norm;
    16921692        top_normal[1]= - vector[0]/norm;
    1693         _assert_(top_normal[1]<0);
     1693        _assert_(top_normal[1]>0);
    16941694}
    16951695/*}}}*/
Note: See TracChangeset for help on using the changeset viewer.