Changeset 6077
- Timestamp:
- 09/29/10 15:47:55 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Elements/Penta.cpp
r6045 r6077 2082 2082 2083 2083 /*Constants*/ 2084 const int numdofp= 2*NUMVERTICES;2085 const int numdofs= 4*NUMVERTICES;2086 const int numdoftotal=( 4+2)*NUMVERTICES;2084 const int numdofp=NDOF2*NUMVERTICES; 2085 const int numdofs=NDOF4*NUMVERTICES; 2086 const int numdoftotal=(NDOF2+NDOF4)*NUMVERTICES; 2087 2087 int i,j; 2088 2088 … … 2359 2359 /*Intermediaries */ 2360 2360 int i,j,ig; 2361 int approximation; 2361 2362 double xyz_list[NUMVERTICES][3]; 2362 2363 double Jdet; … … 2376 2377 2377 2378 /*Retrieve all inputs and parameters*/ 2379 inputs->GetParameterValue(&approximation,ApproximationEnum); 2378 2380 GetVerticesCoordinates(&xyz_list[0][0], nodes, NUMVERTICES); 2379 2381 this->parameters->FindParam(&viscosity_overshoot,ViscosityOvershootEnum); … … 3045 3047 3046 3048 for(i=0;i<NUMVERTICES;i++){ 3047 pe->values[i*NDOF4+0]+=-Jdet*gauss->weight*viscosity*dw[0]*dh1dh6[2][i] /2;3048 pe->values[i*NDOF4+1]+=-Jdet*gauss->weight*viscosity*dw[1]*dh1dh6[2][i] /2;3049 pe->values[i*NDOF4+2]+=-Jdet*gauss->weight*viscosity*(dw[0]*dh1dh6[0][i]+dw[1]*dh1dh6[1][i]+ dw[2]*dh1dh6[2][i])/2;3049 pe->values[i*NDOF4+0]+=-Jdet*gauss->weight*viscosity*dw[0]*dh1dh6[2][i]; 3050 pe->values[i*NDOF4+1]+=-Jdet*gauss->weight*viscosity*dw[1]*dh1dh6[2][i]; 3051 pe->values[i*NDOF4+2]+=-Jdet*gauss->weight*viscosity*(dw[0]*dh1dh6[0][i]+dw[1]*dh1dh6[1][i]+2*dw[2]*dh1dh6[2][i]); 3050 3052 pe->values[i*NDOF4+3]+=Jdet*gauss->weight*stokesreconditioning*dw[2]*l1l6[i]; 3051 3053 } … … 3117 3119 3118 3120 for(i=0;i<NUMVERTICES2D;i++){ 3119 pe->values[i*NDOF4+0]+=Jdet2d*gauss->weight*(alpha2_gauss*w*bed_normal[0]*bed_normal[2]+ viscosity*dw[2]*bed_normal[0])*l1l6[i];3120 pe->values[i*NDOF4+1]+=Jdet2d*gauss->weight*(alpha2_gauss*w*bed_normal[1]*bed_normal[2]+ viscosity*dw[2]*bed_normal[1])*l1l6[i];3121 pe->values[i*NDOF4+2]+=Jdet2d*gauss->weight* viscosity*(dw[0]*bed_normal[0]+dw[1]*bed_normal[1]+dw[2]*bed_normal[2])*l1l6[i];3121 pe->values[i*NDOF4+0]+=Jdet2d*gauss->weight*(alpha2_gauss*w*bed_normal[0]*bed_normal[2]+2*viscosity*dw[2]*bed_normal[0])*l1l6[i]; 3122 pe->values[i*NDOF4+1]+=Jdet2d*gauss->weight*(alpha2_gauss*w*bed_normal[1]*bed_normal[2]+2*viscosity*dw[2]*bed_normal[1])*l1l6[i]; 3123 pe->values[i*NDOF4+2]+=Jdet2d*gauss->weight*2*viscosity*(dw[0]*bed_normal[0]+dw[1]*bed_normal[1]+dw[2]*bed_normal[2])*l1l6[i]; 3122 3124 } 3123 3125 }
Note:
See TracChangeset
for help on using the changeset viewer.