Changeset 5851
- Timestamp:
- 09/16/10 15:19:29 (15 years ago)
- Location:
- issm/trunk/src/c/objects/Elements
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Elements/Penta.cpp
r5850 r5851 2002 2002 void Penta::CreateKMatrixCouplingMacAyealPattyn( Mat Kgg){ 2003 2003 2004 this->CreateKMatrixCouplingMacAyealPattynViscous(Kgg); 2005 this->CreateKMatrixCouplingMacAyealPattynFriction(Kgg); 2006 } 2007 /*}}}*/ 2008 /*FUNCTION Penta::CreateKMatrixCouplingMacAyealPattynViscous{{{1*/ 2009 void Penta::CreateKMatrixCouplingMacAyealPattynViscous( Mat Kgg){ 2010 2004 2011 /* local declarations */ 2005 2012 int i,j; … … 2120 2127 MatSetValues(Kgg,numdofm,doflistm,numdofp,doflistp,(const double*)Ke_gg_transp,ADD_VALUES); 2121 2128 2122 //Deal with 2d friction at the bedrock interface2123 if(IsOnBed() && !IsOnShelf()){2124 2125 /*Build a tria element using the 3 grids of the base of the penta. Then use2126 * the tria functionality to build a friction stiffness matrix on these 32127 * grids: */2128 2129 tria->CreateKMatrixCouplingMacAyealPattynFriction(Kgg);2130 }2131 2132 delete tria->matice; delete tria;2133 2134 2129 xfree((void**)&doflistm); 2135 2130 xfree((void**)&doflistp); 2131 delete tria->matice; delete tria; 2136 2132 delete gauss; 2137 2133 delete gauss_tria; 2134 } 2135 /*}}}*/ 2136 /*FUNCTION Penta::CreateKMatrixCouplingMacAyealPattynFriction{{{1*/ 2137 void Penta::CreateKMatrixCouplingMacAyealPattynFriction( Mat Kgg){ 2138 2139 /*Initialize Element matrix and return if necessary*/ 2140 if(IsOnWater() || IsOnShelf() || !IsOnBed()) return; 2141 2142 Tria* tria=(Tria*)SpawnTria(0,1,2); //grids 0, 1 and 2 make the new tria. 2143 tria->CreateKMatrixCouplingMacAyealPattynFriction(Kgg); 2144 delete tria->matice; delete tria; 2138 2145 } 2139 2146 /*}}}*/ -
issm/trunk/src/c/objects/Elements/Penta.h
r5850 r5851 124 124 void CreateKMatrixBalancedvelocities(Mat Kggg); 125 125 void CreateKMatrixCouplingMacAyealPattyn( Mat Kgg); 126 void CreateKMatrixCouplingMacAyealPattynViscous( Mat Kgg); 127 void CreateKMatrixCouplingMacAyealPattynFriction( Mat Kgg); 126 128 void CreateKMatrixCouplingPattynStokes( Mat Kgg); 127 129 void CreateKMatrixDiagnosticHoriz( Mat Kgg);
Note:
See TracChangeset
for help on using the changeset viewer.