MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / commitSensitivity

Method commitSensitivity

SRC/element/brick/BbarBrickWithSensitivity.cpp:1993–2216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1991
1992
1993int
1994BbarBrickWithSensitivity::commitSensitivity(int gradNumber, int numGrads)
1995{
1996/* const Vector &disp1 = theNodes[0]->getDispSensitivity(gradNumber);
1997 const Vector &disp2 = theNodes[1]->getDispSensitivity(gradNumber);
1998 const Vector &disp3 = theNodes[2]->getDispSensitivity(gradNumber);
1999 const Vector &disp4 = theNodes[3]->getDispSensitivity(gradNumber);
2000
2001 static double u[2][4];
2002
2003 u[0][0] = disp1(0);
2004 u[1][0] = disp1(1);
2005 u[0][1] = disp2(0);
2006 u[1][1] = disp2(1);
2007 u[0][2] = disp3(0);
2008 u[1][2] = disp3(1);
2009 u[0][3] = disp4(0);
2010 u[1][3] = disp4(1);
2011
2012
2013 refer
2014 sens(0) = theNodes[0]->getDispSensitivity(1,gradNumber);
2015 sens(1) = theNodes[0]->getDispSensitivity(2,gradNumber);
2016 sens(2) = theNodes[1]->getDispSensitivity(1,gradNumber);
2017 sens(3) = theNodes[1]->getDispSensitivity(2,gradNumber);
2018 sens(4) = theNodes[2]->getDispSensitivity(1,gradNumber);
2019 sens(5) = theNodes[2]->getDispSensitivity(2,gradNumber);
2020 sens(6) = theNodes[3]->getDispSensitivity(1,gradNumber);
2021 sens(7) = theNodes[3]->getDispSensitivity(2,gradNumber);
2022
2023*/
2024
2025 //strains ordered : eps11, eps22, eps33, 2*eps12, 2*eps23, 2*eps31
2026
2027
2028 static int markGUU=0;
2029
2030 const int ndm = 3 ;
2031
2032 const int ndf = 3 ;
2033
2034 const int nstress = 6 ;
2035
2036 const int numberNodes = 8 ;
2037
2038 const int numberGauss = 8 ;
2039
2040 const int nShape = 4 ;
2041
2042 int i, j, k, p, q ;
2043// int jj, kk ;
2044
2045 int success ;
2046
2047 double volume ;
2048
2049 double xsj ; // determinant jacaobian matrix
2050

Callers

nothing calls this directly

Calls 4

shp3dFunction · 0.85
ZeroMethod · 0.45
getDispSensitivityMethod · 0.45
addMatrixVectorMethod · 0.45

Tested by

no test coverage detected