Tetrahedron Simplex Shape Functions in FEA

AI Thread Summary
The discussion focuses on challenges in implementing tetrahedron Finite Element shape functions, specifically regarding the setup of the shape coefficient matrix and the calculation of coefficient quantities. The user is seeking guidance on ensuring a positive determinant for the coefficient matrix and the correct ordering of tetrahedron points. They mention difficulties with specific calculations in their Matlab code, particularly with obtaining expected results for coefficients and interpolants. Recommendations for resources include books that detail the implementation of FEM in Matlab, emphasizing the need for clarity on 3D shape functions. The user expresses a willingness to explore further or ask more targeted questions if needed.
doenn1616
Messages
4
Reaction score
0
TL;DR Summary
Have tested 2D triangular shape functions successfully but having trouble with 3D.
Hi, 2 part question trying to get tetrahedron Finite Element shape functions working: 1) How do I properly setup the shape coefficient matrix and 2) How do I build the coefficient quantities in the shape functions properly? ANY tips or corrections may unblock me and would be of much value!

Following J.T. Oden's "Finite Elements of Nonlinear Continua" (McGraw Hill), general simplex:

1617601127614.png


Tetrahedron Simplex:

1617601216941.png


Permutation symbol steps and shape coefficient matrix (C) description:

1617601289523.png


I attached the full Matlab test. I don't mind if this works in Matlab or anything else, as long as I can understand. Flow of my Matlab:

Tetrahedron points. I read the ordering of these is critical so that the coefficient matrix is positive (not sure if this is true?):
Code:
p1 = [2,0,8]
p2 = [2,0,0]
p3 = [12,0,0]
p4 = [2,8,0]
Code:
points = buildPoints(p1,p2,p3,p4)      % Just organization of points
shapeCoeff = buildShapeCoeff(p1,p2,p3,p4)

First struggle:
Within buildShapeCoeff() I did this (Line 100) in order to get a positive determinant... Is this needed? I tried without and the bNi coefficient in 10.105b kept coming up zero?

shapeCoeffRes = shapeCoeffRes' % Transpose rowmajor versus colmajor

Lines 45 and 46 yield 1/6C or -1/6C as required:
Code:
aCoeffPrefix = buildACoeffPrefix(shapeCoeff)  %Line 45
bCoeffPrefix = buildBCoeffPrefix(shapeCoeff)   %Line 46
Then I try calculating aN and bNi (Figures 10.105a and 10.105b) with the following:

Code:
aVals = calcAVals(aCoeffPrefix, points) % Line 48

bVals = calcBVals(bCoeffPrefix, points) % Line 50

Finally at line 62 I try calculating Figure 10.101b. The result is not 0 but it is out of range of expectations. If ANY more detail is required, I can provide quickly.
 

Attachments

Last edited by a moderator:
Engineering news on Phys.org
There are some good books about the implementation of FEM in Matlab that can be helpful for you. Personally I recommend "The Finite Element Method Using Matlab" Y.W. Kwon. It features a Matlab code for 3D elements, among others.
 
Hi, I've bought several books on this and related topics including "Peter I. Kattan MATLAB Guide to Finite Elements An Interactive Approach" which I just found out has a download link here
https://extras.springer.com/2008/978-3-540-70697-7.zip

Does the book you mention cover details on 3D shape functions (of any order)? I looked in the sample PDFs and it includes ~3 pages on "Three Dimensional Frame Element"s on pages 265-268.

The Matlab book I have has functions on calculating the volume term (attached) and then goes straight into stiffness matrices. Looking to specifically get the interpolant step down.

(Oden's book's are nice since they show general formulas to generalize the shape functions to different simplex types and higher orders. If this thread leads to a dead-end, I'll just keep trying to experiment, ask smaller questions, or ask about a step I may be missing in this generalization instead.)

Other attachments:
My latest attempt is attached as well: FiniteElement_2021-04-07 Result val shows 23.6 regardless of test point, which I think is wrong. My FiniteElement_2D uses Oden's method and yields a final val of 35.285714285714285 which I think is correct. Other test points interpolate correctly as well.
 

Attachments

Here's a video by “driving 4 answers” who seems to me to be well versed on the details of Internal Combustion engines. The video does cover something that's a bit shrouded in 'conspiracy theory', and he touches on that, but of course for phys.org, I'm only interested in the actual science involved. He analyzes the claim of achieving 100 mpg with a 427 cubic inch V8 1970 Ford Galaxy in 1977. Only the fuel supply system was modified. I was surprised that he feels the claim could have been...
Thread 'Turbocharging carbureted petrol 2 stroke engines'
Hi everyone, online I ve seen some images about 2 stroke carbureted turbo (motorcycle derivation engine). Now.. In the past in this forum some members spoke about turbocharging 2 stroke but not in sufficient detail. The intake and the exhaust are open at the same time and there are no valves like a 4 stroke. But if you search online you can find carbureted 2stroke turbo sled or the Am6 turbo. The question is: Is really possible turbocharge a 2 stroke carburated(NOT EFI)petrol engine and...
Back
Top