From e7c0b63ba0ba03e93bb138bc01b2069e592ec0a8 Mon Sep 17 00:00:00 2001 From: ovainola Date: Sun, 7 Jun 2015 13:43:01 +0300 Subject: [PATCH] Adding C2D4 shape function --- src/shape_functions.jl | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/shape_functions.jl b/src/shape_functions.jl index adc0e66..1b858d7 100644 --- a/src/shape_functions.jl +++ b/src/shape_functions.jl @@ -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 +