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

AI Thread Summary
To find the gradient of a field variable in a 3D mapped finite element mesh, users suggest implementing a numerical differentiation approach within custom C code. The discussion highlights the importance of the specific finite element type, with a focus on mapped 3D hexahedral elements. Participants note that while they have experience with similar calculations in other programming environments like Matlab, the principles can be adapted to C. Effective methods may involve using finite difference techniques or shape function derivatives. Overall, the conversation emphasizes the need for tailored coding solutions to achieve accurate gradient calculations in finite element analysis.
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.
 
How did you find PF?: Via Google search Hi, I have a vessel I 3D printed to investigate single bubble rise. The vessel has a 4 mm gap separated by acrylic panels. This is essentially my viewing chamber where I can record the bubble motion. The vessel is open to atmosphere. The bubble generation mechanism is composed of a syringe pump and glass capillary tube (Internal Diameter of 0.45 mm). I connect a 1/4” air line hose from the syringe to the capillary The bubble is formed at the tip...
Thread 'Physics of Stretch: What pressure does a band apply on a cylinder?'
Scenario 1 (figure 1) A continuous loop of elastic material is stretched around two metal bars. The top bar is attached to a load cell that reads force. The lower bar can be moved downwards to stretch the elastic material. The lower bar is moved downwards until the two bars are 1190mm apart, stretching the elastic material. The bars are 5mm thick, so the total internal loop length is 1200mm (1190mm + 5mm + 5mm). At this level of stretch, the load cell reads 45N tensile force. Key numbers...
I'd like to create a thread with links to 3-D Printer resources, including printers and software package suggestions. My motivations are selfish, as I have a 3-D printed project that I'm working on, and I'd like to buy a simple printer and use low cost software to make the first prototype. There are some previous threads about 3-D printing like this: https://www.physicsforums.com/threads/are-3d-printers-easy-to-use-yet.917489/ but none that address the overall topic (unless I've missed...

Similar threads

Back
Top