Changeset 23800 for issm/trunk-jpl/src/c/classes/Elements/Penta.cpp
- Timestamp:
- 03/15/19 11:03:25 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Elements/Penta.cpp
r23674 r23800 188 188 IssmDouble calvingrate[NUMVERTICES]; 189 189 IssmDouble lambda1,lambda2,ex,ey,vx,vy,vel; 190 IssmDouble B,sigma_ vm,sigma_max,sigma_max_floating,sigma_max_grounded,n;190 IssmDouble B,sigma_max,sigma_max_floating,sigma_max_grounded,n; 191 191 IssmDouble epse_2,groundedice,bed; 192 IssmDouble sigma_vm[NUMVERTICES]; 192 193 193 194 /* Get node coordinates and dof list: */ … … 239 240 /*Calculate sigma_vm*/ 240 241 epse_2 = 1./2. *(lambda1*lambda1 + lambda2*lambda2); 241 sigma_vm 242 sigma_vm[iv] = sqrt(3.) * B * pow(epse_2,1./(2.*n)); 242 243 243 244 /*Tensile stress threshold*/ … … 253 254 } 254 255 else{ 255 calvingratex[iv]=vx*sigma_vm /sigma_max;256 calvingratey[iv]=vy*sigma_vm /sigma_max;256 calvingratex[iv]=vx*sigma_vm[iv]/sigma_max; 257 calvingratey[iv]=vy*sigma_vm[iv]/sigma_max; 257 258 } 258 259 calvingrate[iv] =sqrt(calvingratex[iv]*calvingratex[iv] + calvingratey[iv]*calvingratey[iv]); … … 263 264 this->inputs->AddInput(new PentaInput(CalvingrateyEnum,&calvingratey[0],P1Enum)); 264 265 this->inputs->AddInput(new PentaInput(CalvingCalvingrateEnum,&calvingrate[0],P1Enum)); 266 this->inputs->AddInput(new PentaInput(SigmaVMEnum,&sigma_vm[0],P1Enum)); 265 267 266 268 this->InputExtrude(CalvingratexEnum,-1); 267 269 this->InputExtrude(CalvingrateyEnum,-1); 268 270 this->InputExtrude(CalvingCalvingrateEnum,-1); 271 this->InputExtrude(SigmaVMEnum,-1); 269 272 270 273 /*Clean up and return*/
Note:
See TracChangeset
for help on using the changeset viewer.