Changeset 6271
- Timestamp:
- 10/12/10 16:11:10 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Elements/Penta.cpp
r6270 r6271 2917 2917 double gravity,rho_ice,rho_water; 2918 2918 double heatcapacity,thermalconductivity,dt; 2919 double scalar_artdiff;2920 2919 double tau_parameter,diameter; 2921 2920 double xyz_list[NUMVERTICES][3]; … … 3040 3039 3041 3040 tau_parameter=GetStabilizationParameter(u,v,w,diameter,rho_ice,heatcapacity,thermalconductivity); 3042 if(dt) scalar_artdiff=scalar_artdiff*dt; 3043 3044 scalar_artdiff=tau_parameter*gauss->weight*Jdet; 3041 3045 3042 for(i=0;i<numdof;i++){ 3046 3043 for(j=0;j<numdof;j++){ 3047 Ke_gaussian_artdiff[i][j]=scalar_artdiff*(u*dh1dh6[0][i]+v*dh1dh6[1][i]+w*dh1dh6[2][i])*(u*dh1dh6[0][j]+v*dh1dh6[1][j]+w*dh1dh6[2][j]); 3044 Ke_gaussian_artdiff[i][j]=tau_parameter*D_scalar_advec*(u*dh1dh6[0][i]+v*dh1dh6[1][i]+w*dh1dh6[2][i])*(u*dh1dh6[0][j]+v*dh1dh6[1][j]+w*dh1dh6[2][j]); 3045 } 3046 } 3047 if(dt){ 3048 for(i=0;i<numdof;i++){ 3049 for(j=0;j<numdof;j++){ 3050 Ke_gaussian_artdiff[i][j]+=tau_parameter*D_scalar_trans*L[j]*(u*dh1dh6[0][i]+v*dh1dh6[1][i]+w*dh1dh6[2][i]); 3051 } 3048 3052 } 3049 3053 } … … 3891 3895 3892 3896 for(i=0;i<NUMVERTICES;i++) pe->values[i]+=tau_parameter*scalar_def*(u*dh1dh6[0][i]+v*dh1dh6[1][i]+w*dh1dh6[2][i]); 3897 if(dt){ 3898 for(i=0;i<NUMVERTICES;i++) pe->values[i]+=tau_parameter*scalar_transient*(u*dh1dh6[0][i]+v*dh1dh6[1][i]+w*dh1dh6[2][i]); 3899 } 3893 3900 } 3894 3901 }
Note:
See TracChangeset
for help on using the changeset viewer.