Changeset 6271


Ignore:
Timestamp:
10/12/10 16:11:10 (14 years ago)
Author:
seroussi
Message:

continued to add SUPG in thermal (transient)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/objects/Elements/Penta.cpp

    r6270 r6271  
    29172917        double     gravity,rho_ice,rho_water;
    29182918        double     heatcapacity,thermalconductivity,dt;
    2919         double     scalar_artdiff;
    29202919        double     tau_parameter,diameter;
    29212920        double     xyz_list[NUMVERTICES][3];
     
    30403039
    30413040                        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
    30453042                        for(i=0;i<numdof;i++){
    30463043                                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                                        }
    30483052                                }
    30493053                        }
     
    38913895
    38923896                        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                        }
    38933900                }
    38943901        }
Note: See TracChangeset for help on using the changeset viewer.