Writing Finite Element Code for Structural Analysis

Click For Summary
The discussion centers on the challenges of writing finite element code for 3D structural analysis, particularly in assembling the global stiffness matrix and managing boundary conditions. The original poster, Hassan, expressed concerns about the complexity of his code, especially when reducing degrees of freedom and applying boundary conditions. Respondents requested more details about the types of boundary conditions used and the programming language employed. Hassan clarified that he utilizes various boundary conditions, assembles matrices for unknowns only, and chose Java for its advantages in visualization despite its limitations for solvers. The conversation highlights common complexities in finite element analysis coding and the importance of sharing experiences in the development process.
Hassan2
Messages
422
Reaction score
5
Structural Analysis-Writing Finite Element Code,

Dear all,

I have written a code ( in fact it is a software) for 3D finite element structural analysis. While developing the code I found that assembling global stiffness matrix is quite complicated. The complication is even more when we want to reduce the degree of freedom of some of the nodes. Also for giving boundary condition, when we set one or two components of deformation rather that all the three. Now these parts of my code has become so complicated even to myself.
My code works well now but I am wondering if the complexity is usual or if I am doing the job in an ineffective way. Since I have not discussed my methods with anyone else, I thought it would be helpful if I post the problem here. Perhaps some of you have experiences to share.

Regards,

Hassan
 
Engineering news on Phys.org
Dear Hassan, I also developed finite element Solver and automatic mesh generation program in Java, but for 2D only. I getting accurate result for elliptical, parabolic and hyperbolic governing equations. Your description is short.
Please describe complete problem.
Could you give information of following questions?
1. What type of boundary condition you applied: Dirichlet or Neumann?
2. which technique, you are using for elimination of boundary nodes?
3. which language, you used for software?
 
Thanks mdn for the reply.

The post is almost two years old and the problems are solved now. For your information the answer to your questions are the following:

1. I use a variety of boundary conditions. In fact they are not limited to the boundary. I may have Dirichlet/ Neumann/Periodic boundary conditions, or "sliders". By sliders, I mean a certain component of the displacement at a defined region is fixed ( usually to zero).

2. I assemble the matrix for the unknowns only. this may make the matrix construction a bit complicated though but I am satisfied with it.

3. I use Java programming language. The language may not be advantageous for the solvers but since I have also developed the visualization software and that is easier in Java using Java3D library, I keep using Java for the solver too.

Thanks again.
 
Had my central air system checked when it sortta wasn't working. I guess I hadn't replaced the filter. Guy suggested I might want to get a UV filter accessory. He said it would "kill bugs and particulates". I know UV can kill the former, not sure how he thinks it's gonna murder the latter. Now I'm finding out there's more than one type of UV filter: one for the air flow and one for the coil. He was suggesting we might get one for the air flow, but now we'll have to change the bulb...

Similar threads

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