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

Click For Summary
SUMMARY

This discussion focuses on applying boundary conditions in finite element analysis (FEA) using C++. The user successfully built the global stiffness matrix and load vector but seeks guidance on implementing boundary conditions through the elimination approach. They reference a book on finite element methods (FEM) that includes an algorithm for transient heat conduction using a lumped capacity matrix. The user specifically inquires about correcting the nodal heat vector for boundary conditions before iterating the time loop.

PREREQUISITES
  • Understanding of finite element methods (FEM)
  • Familiarity with C++ programming
  • Knowledge of global stiffness matrix and load vector concepts
  • Basic principles of transient heat conduction
NEXT STEPS
  • Research the elimination approach for applying boundary conditions in FEA
  • Study the explicit forward difference method for time-stepping in transient heat conduction
  • Learn about nodal heat vector corrections in finite element algorithms
  • Explore resources on lumped capacity matrix techniques in FEA
USEFUL FOR

This discussion is beneficial for software developers, engineering students, and researchers interested in implementing finite element analysis in C++ and understanding the nuances of boundary condition applications.

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.
 

Similar threads

  • · Replies 9 ·
Replies
9
Views
3K
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 3 ·
Replies
3
Views
10K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 7 ·
Replies
7
Views
5K