Element stiffness matrix for 4 noded quadrilateral - Code Answer Flashcards
1
Q
What does the ‘for in = 1 : nnode;’ loop consist of?
A
elcod(in, 1 : ndime) = coord(lnods(ielem, in), 1 : ndime);
2
Q
What line (2 statements) comes under ‘%Set local coordinates xi and eta at the current gauss point position’?
A
xi = posgp(igaus, 1); eta = posgp(igaus, 2);
3
Q
What line comes under ‘[jac, jaci, detJ, cartd] = jacob(ndime, nnode, elcod, xi, eta, shape, deriv);’?
A
dvolu = detJ * weigp(igaus) * thick;
4
Q
What THREE LINES come under ‘%Form DB matrix and element stiffness matrix’?
A
dbmat = dmatx * bmatx; bdbmt = bmatx * dbmat; estif = estif + bdbmt * dvolu;