mirror of
https://github.com/JuliaFEM/JuliaFEM.jl.git
synced 2026-08-06 04:21:33 +00:00
Adding C2D4 shape function
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user