Adding C2D4 shape function

This commit is contained in:
ovainola
2015-06-07 13:43:01 +03:00
parent f0b68f9707
commit e7c0b63ba0
+11
View File
@@ -1,3 +1,14 @@
function test(a)
return a*2
end
function C2D4(xx)
chi = xx[1]
eta = xx[2]
return = [(1 - chi) * (1 - eta),
chi * (1 - eta),
chi * eta,
(1 - chi) * eta]
end