Changeset 595
- Timestamp:
- 05/26/09 12:17:44 (15 years ago)
- Location:
- issm/trunk/src/c/objects
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Penta.cpp
r586 r595 3403 3403 3404 3404 /*Material properties: */ 3405 double 3406 double 3407 double 3405 double gravity,rho_ice,rho_water; 3406 double heatcapacity,thermalconductivity; 3407 double mixed_layer_capacity,thermal_exchange_velocity; 3408 3408 3409 3409 /*Collapsed formulation: */ … … 3424 3424 heatcapacity=matpar->GetHeatCapacity(); 3425 3425 thermalconductivity=matpar->GetThermalConductivity(); 3426 3427 3426 3428 3427 /*recover extra inputs from users, dt and velocity: */ … … 3481 3480 D[2][0]=0; D[2][1]=0; D[2][2]=D_scalar; 3482 3481 3483 3484 3482 /* Do the triple product B'*D*B: */ 3485 3483 MatrixMultiply(&B_conduct[0][0],3,numdof,1,&D[0][0],3,3,0,&tBD_conduct[0][0],0); … … 3491 3489 GetB_advec(&B_advec[0][0],&xyz_list[0][0],gauss_coord); 3492 3490 GetBprime_advec(&Bprime_advec[0][0],&xyz_list[0][0],gauss_coord); 3493 3494 3491 3495 3492 //Build the D matrix … … 3511 3508 MatrixMultiply(&B_advec[0][0],3,numdof,1,&D[0][0],3,3,0,&tBD_advec[0][0],0); 3512 3509 MatrixMultiply(&tBD_advec[0][0],numdof,3,0,&Bprime_advec[0][0],3,numdof,0,&Ke_gaussian_advec[0][0],0); 3513 3514 3510 3515 3511 /*Transient: */ … … 3709 3705 double gauss_weight,area_gauss_weight,vert_gauss_weight; 3710 3706 double gauss_coord[4]; 3711 int area_order=2;3712 int num_vert_gauss=3;3713 3714 double 3715 double 3716 double 3717 double 3718 double 3719 double 3720 double 3707 int area_order=2; 3708 int num_vert_gauss=3; 3709 3710 double dt; 3711 double vx_list[numgrids]; 3712 double vy_list[numgrids]; 3713 double vz_list[numgrids]; 3714 double vxvyvz_list[numgrids][3]; 3715 double temperature_list[numgrids]; 3716 double temperature; 3721 3717 3722 3718 /*Material properties: */ 3723 double 3724 double 3725 double 3719 double gravity,rho_ice,rho_water; 3720 double mixed_layer_capacity,heatcapacity; 3721 double beta,meltingpoint,thermal_exchange_velocity; 3726 3722 3727 3723 /* element parameters: */ 3728 int 3729 3730 int 3731 int 3724 int friction_type; 3725 3726 int dofs[3]={0,1,2}; 3727 int dofs1[1]={0}; 3732 3728 3733 3729 /*matrices: */ 3734 double 3735 double 3736 double 3737 double 3738 double 3739 double 3740 double 3741 double 3742 double 3743 3744 double 3745 double 3746 double 3747 double 3748 double 3749 double 3750 double 3751 double 3752 double 3730 double P_terms[numdof]={0.0}; 3731 double L[numdof]; 3732 double l1l2l3[3]; 3733 double alpha2_list[3]; 3734 double basalfriction_list[3]={0.0}; 3735 double basalfriction; 3736 double epsilon[6]; 3737 double epsilon_sqr[3][3]; 3738 double epsilon_matrix[3][3]; 3739 3740 double Jdet; 3741 double viscosity; 3742 double epsilon_eff; 3743 double phi; 3744 double t_pmp; 3745 double scalar; 3746 double scalar_def; 3747 double scalar_ocean; 3748 double scalar_transient; 3753 3749 3754 3750 /*Collapsed formulation: */ … … 3763 3759 GetDofList(&doflist[0],&numberofdofspernode); 3764 3760 3765 / / /*recovre material parameters: */3761 /*recovre material parameters: */ 3766 3762 rho_water=matpar->GetRhoWater(); 3767 3763 rho_ice=matpar->GetRhoIce(); … … 3812 3808 /*Compute strain rate and viscosity: */ 3813 3809 GetStrainRateStokes(&epsilon[0],&vxvyvz_list[0][0],&xyz_list[0][0],gauss_coord); 3814 matice->GetViscosity3d (&viscosity,&epsilon[0]);3810 matice->GetViscosity3dStokes(&viscosity,&epsilon[0]); 3815 3811 3816 3812 /* Get Jacobian determinant: */ -
issm/trunk/src/c/objects/Tria.cpp
r586 r595 51 51 melting[i]=tria_melting[i]; 52 52 accumulation[i]=tria_accumulation[i]; 53 geothermalflux[i]=tria_geothermalflux[i]; } 53 geothermalflux[i]=tria_geothermalflux[i]; 54 } 54 55 matice=NULL; 55 56 matice_offset=UNDEF;
Note:
See TracChangeset
for help on using the changeset viewer.