How to find gradient of a variable in 3D mapped finite element domain

Click For Summary
SUMMARY

The discussion centers on calculating the gradient of a field variable within a 3D mapped finite element mesh using custom C code. The user is specifically working with mapped 3D hexahedral finite elements as part of solving differential equations. While one participant mentions previous experience using MATLAB for similar calculations, the focus remains on developing an effective method in C. The need for clarity on the programming environment is emphasized to provide tailored solutions.

PREREQUISITES
  • Understanding of finite element analysis (FEA)
  • Proficiency in C programming language
  • Knowledge of gradient calculation techniques
  • Familiarity with 3D hexahedral elements in FEA
NEXT STEPS
  • Research numerical methods for gradient calculation in finite element analysis
  • Explore libraries for finite element analysis in C, such as FEniCS or deal.II
  • Learn about implementing differential equations in finite element frameworks
  • Investigate MATLAB functions for gradient calculation for comparative analysis
USEFUL FOR

Engineers, researchers, and developers involved in computational mechanics, particularly those implementing finite element methods in C programming.

Stacky
Messages
8
Reaction score
0
Hello,
I know the value of a field variable in a 3d mapped finite element mesh. Can anyone suggest an effective method/methods to find its gradient throughout the mesh.
 
Engineering news on Phys.org
We're going to need more information than that mate. What program are you using etc.
 
Yeah, I am not using any readymade sofware, I am writing a code in c language. Calculating gradient of a variable is a part of solving a differential equation through finite element. I am using mapped 3d hexahedral finite element. I am just enquiring an effective approach/method to calculate the gradient of a variable.
 
Ah that makes it easier. I've done it before, but in Matlab. Was a long time ago though. Let me refresh my memory.
 

Similar threads

  • · Replies 0 ·
Replies
0
Views
1K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
10K
  • · Replies 5 ·
Replies
5
Views
16K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 5 ·
Replies
5
Views
7K