Changeset 6934
- Timestamp:
- 01/05/11 08:31:12 (14 years ago)
- Location:
- issm/trunk/src/c/objects/Elements
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Elements/Penta.cpp
r6723 r6934 1752 1752 ElementVector* Penta::CreatePVectorCouplingMacAyealStokes(void){ 1753 1753 1754 _error_("coupling MacAyeal Stokes not implemented yet");1755 1754 /*compute all load vectors for this element*/ 1756 1755 ElementVector* pe1=CreatePVectorCouplingMacAyealStokesViscous(); … … 1794 1793 Input* vy_input=inputs->GetInput(VyEnum); _assert_(vy_input); 1795 1794 Input* vz_input=inputs->GetInput(VzEnum); _assert_(vz_input); 1796 Input* vz pattyn_input=inputs->GetInput(VzMacAyealEnum); _assert_(vzpattyn_input);1795 Input* vzmacayeal_input=inputs->GetInput(VzMacAyealEnum); _assert_(vzmacayeal_input); 1797 1796 1798 1797 /* Start looping on the number of gaussian points: */ … … 1806 1805 GetNodalFunctionsP1Derivatives(&dh1dh6[0][0],&xyz_list[0][0], gauss); 1807 1806 1808 vz pattyn_input->GetParameterDerivativeValue(&dw[0],&xyz_list[0][0],gauss);1807 vzmacayeal_input->GetParameterDerivativeValue(&dw[0],&xyz_list[0][0],gauss); 1809 1808 1810 1809 this->GetStrainRate3d(&epsilon[0],&xyz_list[0][0],gauss,vx_input,vy_input,vz_input); … … 1859 1858 Input* vy_input=inputs->GetInput(VyEnum); _assert_(vy_input); 1860 1859 Input* vz_input=inputs->GetInput(VzEnum); _assert_(vz_input); 1861 Input* vz pattyn_input=inputs->GetInput(VzMacAyealEnum); _assert_(vzpattyn_input);1860 Input* vzmacayeal_input=inputs->GetInput(VzMacAyealEnum); _assert_(vzmacayeal_input); 1862 1861 1863 1862 for(i=0;i<NUMVERTICES2D;i++) for(j=0;j<3;j++) xyz_list_tria[i][j]=xyz_list[i][j]; … … 1875 1874 GetNodalFunctionsP1(l1l6, gauss); 1876 1875 1877 vz pattyn_input->GetParameterValue(&w, gauss);1878 vz pattyn_input->GetParameterDerivativeValue(&dw[0],&xyz_list[0][0],gauss);1876 vzmacayeal_input->GetParameterValue(&w, gauss); 1877 vzmacayeal_input->GetParameterDerivativeValue(&dw[0],&xyz_list[0][0],gauss); 1879 1878 1880 1879 BedNormal(&bed_normal[0],xyz_list_tria); … … 2460 2459 Input* vy_input=inputs->GetInput(VyEnum); _assert_(vy_input); 2461 2460 Input* vzstokes_input=NULL; 2462 if(approximation==PattynStokesApproximationEnum ){2461 if(approximation==PattynStokesApproximationEnum || approximation==MacAyealStokesApproximationEnum){ 2463 2462 vzstokes_input=inputs->GetInput(VzStokesEnum); _assert_(vzstokes_input); 2464 2463 } … … 2475 2474 vx_input->GetParameterDerivativeValue(&du[0],&xyz_list[0][0],gauss); 2476 2475 vy_input->GetParameterDerivativeValue(&dv[0],&xyz_list[0][0],gauss); 2477 if(approximation==PattynStokesApproximationEnum ){2476 if(approximation==PattynStokesApproximationEnum || approximation==MacAyealStokesApproximationEnum){ 2478 2477 vzstokes_input->GetParameterDerivativeValue(&dw[0],&xyz_list[0][0],gauss); 2479 2478 dwdz=dw[2]; -
issm/trunk/src/c/objects/Elements/Tria.cpp
r6423 r6934 1644 1644 Input* vy_input=inputs->GetInput(VyEnum); _assert_(vy_input); 1645 1645 Input* vzstokes_input=NULL; 1646 if(approximation==PattynStokesApproximationEnum ){1646 if(approximation==PattynStokesApproximationEnum || approximation==MacAyealStokesApproximationEnum){ 1647 1647 vzstokes_input=inputs->GetInput(VzStokesEnum); _assert_(vzstokes_input); 1648 1648 } … … 1658 1658 vx_input->GetParameterValue(&vx, gauss); 1659 1659 vy_input->GetParameterValue(&vy, gauss); 1660 if(approximation==PattynStokesApproximationEnum ){1660 if(approximation==PattynStokesApproximationEnum || approximation==MacAyealStokesApproximationEnum){ 1661 1661 vzstokes_input->GetParameterValue(&vz, gauss); 1662 1662 }
Note:
See TracChangeset
for help on using the changeset viewer.