How to Apply Boundary Conditions in Finite Element Analysis Using C++?

AI Thread Summary
The discussion focuses on applying boundary conditions in a finite element analysis program using C++. The user successfully assembled the global stiffness matrix and load vector and is now seeking guidance on implementing boundary conditions through the elimination approach. They have found a book that outlines an algorithm for transient heat conduction but are unclear about the step involving the correction of the nodal heat vector for boundary conditions after each time iteration. The user emphasizes their need for hints or guidance on this specific aspect, indicating a desire to learn more about finite element methods. Clarification on boundary condition corrections during time-stepping is the primary request for assistance.
dinaharchery
Messages
22
Reaction score
0
Hello all,

I am trying to create a simple finite element program in C++ and have been able to build and assemble the GLOBAL stiffness matrix as well as the load vector. I want to apply the boundary conditions using the elimination approach, can anyone tell me how to do this?

I am sorry for the simplicity of the problem but I have been unable to find any information on this particular issue. Thanks in advance.
 
Engineering news on Phys.org
Well, I figured out the boundary "elimination" approach to the GLOBAL stiffness matrix as well as the vector Load/Heat-Rate:smile: (I finally got a book on FEM)

The book has a section on transient heat conduction using a LUMPED capacity matrix - complete with algorithm. However, there is one step in the algorithm that I am not sure about.

The last step before iterating the time-loop again is to "correct" the just determined nodal heat vector (i.e. solution vector at current time) for boundary conditions. Can anyone please explain what is meant by correcting the solution vector for boundary conditions, I thought the bounds were set-up before entering the Time-Loop?

BTW, the algorithm is explicit forward difference for LUMPED capacity matrix. I really need some help if anyone has a hint?

Thank you
 
Anyone?

I just need some kind of hint in the direction to go for the application of boundary corrections at each time step. I am not an engineer but am trying to learn finite element for a program.

Once again, thank you.
 
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...
Back
Top