Changeset 5588
- Timestamp:
- 08/26/10 09:19:06 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Elements/Penta.cpp
r5585 r5588 2899 2899 2900 2900 int i,j; 2901 2902 2901 const int numgrids=6; 2903 2902 const int DOFPERGRID=4; … … 2908 2907 const int numdof2d=numgrids2d*DOFPERGRID; 2909 2908 2910 double K_terms[numdof][numdof]={0.0};2911 2912 /*Material properties: */2913 double gravity,rho_ice,rho_water;2914 2915 2909 /*Collapsed formulation: */ 2916 2910 Tria* tria=NULL; 2917 2911 2918 2912 /*Grid data: */ 2919 double xyz_list[numgrids][3]; 2920 2921 /*parameters: */ 2922 double xyz_list_tria[numgrids2d][3]; 2923 double surface_normal[3]; 2924 double bed_normal[3]; 2925 double thickness; 2913 double xyz_list[numgrids][3]; 2914 double xyz_list_tria[numgrids2d][3]; 2915 double surface_normal[3]; 2916 double bed_normal[3]; 2926 2917 2927 2918 /*matrices: */ 2919 double K_terms[numdof][numdof]={0.0}; 2928 2920 double Ke_temp[27][27]={0.0}; //for the six nodes and the bubble 2929 2921 double Ke_reduced[numdof][numdof]; //for the six nodes only … … 2957 2949 double gauss_coord[4]; 2958 2950 double gauss_coord_tria[3]; 2959 int area_order=5;2960 int num_vert_gauss=5;2951 int area_order=5; 2952 int num_vert_gauss=5; 2961 2953 2962 2954 double epsilon[6]; /* epsilon=[exx,eyy,ezz,exy,exz,eyz];*/ … … 2991 2983 /*If on water or not Stokes, skip stiffness: */ 2992 2984 if(onwater || approximation!=StokesApproximationEnum) return; 2993 2994 /*recovre material parameters: */2995 rho_water=matpar->GetRhoWater();2996 rho_ice=matpar->GetRhoIce();2997 gravity=matpar->GetG();2998 2985 2999 2986 /*retrieve some parameters: */ … … 3160 3147 /*Add Ke_gg to global matrix Kgg: */ 3161 3148 MatSetValues(Kgg,numdof,doflist,numdof,doflist,(const double*)K_terms,ADD_VALUES); 3162 3163 3149 3164 3150 /*Free ressources:*/
Note:
See TracChangeset
for help on using the changeset viewer.